nutman Posted December 1, 2004 Share Posted December 1, 2004 What I've done is copied the /catalog directory and renamed it /shop. I have both online... I changed the /shop/includes/configure.php and /shop/admin/includes/configure.php files referencing "shop" instead of "catalog". The reason for doing this is because I'm redoing this company's website and I want to stay live with the old and work on the new in a live environment using the same database so the products remain in tact... but... it's not working as easily as I thought... I can get to the new /shop/admin area but the page is blank when I goto /shop... obviously in a browser... Any suggestions? Thanks in advance... Ken Link to comment Share on other sites More sharing options...
Guest Posted December 1, 2004 Share Posted December 1, 2004 create another database, and restore from the live store to the development store, separate databases. also keep one copy locally and develop there, push up to the dev server for 'semi live testing' then when satisfied merge it with the live site. Link to comment Share on other sites More sharing options...
Guest Posted December 1, 2004 Share Posted December 1, 2004 Ken, It should work if the configure.php files were modified correctly. What do you mean by "blank"? The browser is one big white screen? There's an error message? The browser acts like it's loading but never displays anything? ed Link to comment Share on other sites More sharing options...
nutman Posted December 1, 2004 Author Share Posted December 1, 2004 Ken, It should work if the configure.php files were modified correctly. What do you mean by "blank"? The browser is one big white screen? There's an error message? The browser acts like it's loading but never displays anything? ed <{POST_SNAPBACK}> Ed... there's just a blank white screen... it acts like it loads but doesn't... the /catalog still loads fine. I've altered the configure.php files on other sites before and just renamed the dirs... I've checked both files a number of times and they look right... Link to comment Share on other sites More sharing options...
Guest Posted December 1, 2004 Share Posted December 1, 2004 Strange. I'd say post the top 15 or so lines from configure.php. I know you fixed it but something must be wrong. Mibble's suggestion is a good idea. If your changes result in adding or changing columns in the database, you could accidentally break the live store. ed Link to comment Share on other sites More sharing options...
♥Vger Posted December 1, 2004 Share Posted December 1, 2004 I have both online Are they both online on the same domain? If not you'd need specific permission to access the database on one domain from another domain. Vger Link to comment Share on other sites More sharing options...
nutman Posted December 1, 2004 Author Share Posted December 1, 2004 Strange. I'd say post the top 15 or so lines from configure.php. I know you fixed it but something must be wrong. Mibble's suggestion is a good idea. If your changes result in adding or changing columns in the database, you could accidentally break the live store. ed <{POST_SNAPBACK}> Here are the only lines touched: /shop/includes/configure.php define('HTTP_COOKIE_PATH', '/shop/'); define('DIR_WS_HTTP_CATALOG', '/shop/'); define('DIR_FS_CATALOG', '/usr/local/etc/httpd/vhosts/www.rim1.com/shop/'); define('DIR_FS_WORK', '/usr/local/etc/httpd/vhosts/www.rim1.com/shop/oscommerce_data/'); and /shop/admin/includes/configure.php define('DIR_FS_DOCUMENT_ROOT', '/usr/local/etc/httpd/vhosts/www.rim1.com/shop/'); define('DIR_WS_ADMIN', '/shop/admin/'); define('DIR_FS_ADMIN', '/usr/local/etc/httpd/vhosts/www.rim1.com/shop/admin/'); define('DIR_WS_CATALOG', '/shop/'); // absolute path required define('DIR_FS_CATALOG', '/usr/local/etc/httpd/vhosts/www.rim1.com/shop/'); define('DIR_FS_WORK', '/usr/local/etc/httpd/vhosts/www.rim1.com/shop/oscommerce_data/'); Link to comment Share on other sites More sharing options...
nutman Posted December 1, 2004 Author Share Posted December 1, 2004 Are they both online on the same domain? If not you'd need specific permission to access the database on one domain from another domain. Vger <{POST_SNAPBACK}> Yes Link to comment Share on other sites More sharing options...
♥Vger Posted December 1, 2004 Share Posted December 1, 2004 I'm assuming you've added page files to the oscommerce_data directory you have created? Have you added them to filenames.php? Vger Link to comment Share on other sites More sharing options...
nutman Posted December 1, 2004 Author Share Posted December 1, 2004 I'm assuming you've added page files to the oscommerce_data directory you have created? Have you added them to filenames.php? Vger <{POST_SNAPBACK}> I haven't added anything... the only thing I've done so far is copy the /catalog dir, rename it /shop, upload so both are online and altered the 2 configure files in the new /shop... Link to comment Share on other sites More sharing options...
Guest Posted December 1, 2004 Share Posted December 1, 2004 Ken, Do you have some redirection going on at the domain or subdomain level? I get the white page when I go to www.rim1.com/shop. I get it at www.rim1.com/catalog. But I get a perfectly functioning osCommerce page when I go to www.rim1.com and click on Enter. Only, I get sent to www.rimsone.com/catalog. ed Link to comment Share on other sites More sharing options...
♥Vger Posted December 1, 2004 Share Posted December 1, 2004 Okay, so we've got rim1.com, rimone.com, and rimsone.com - that's really cleared things up. Vger Link to comment Share on other sites More sharing options...
nutman Posted December 1, 2004 Author Share Posted December 1, 2004 What I've done is copied the /catalog directory and renamed it /shop. I have both online... I changed the /shop/includes/configure.php and /shop/admin/includes/configure.php files referencing "shop" instead of "catalog". <{POST_SNAPBACK}> The above is the only thing I needed to do. The issue was on this end. Thanks for all who posted... KB Link to comment Share on other sites More sharing options...
Guest Posted December 1, 2004 Share Posted December 1, 2004 Hey Mibble, I do something very similar to this with a local "test" shop and then a upload to live shop. But what/how do you to a merge of the database? I do a file synic from ftp for the site files, but then normally do an overwrite of the database (my site isn't "live" yet in the since of having customers so I don't lose any info. but once is does start to have customers it could be a real problem.) Thanks RW create another database, and restore from the live store to the development store, separate databases.also keep one copy locally and develop there, push up to the dev server for 'semi live testing' then when satisfied merge it with the live site. <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.