New 2.0.11 Install troubles

Hi,



I have just installed 2.0.11 into a clean folder in a subdirectory of a current site (which happens to be running 2.0.8 ). The install runs as expected and I have setup a secondary dB for the new install to run with.



However, when I then try and view the site it returns a 404 error that the page cannot be found.



I really wanted to do a completely fresh install for my client rather than have to do three upgrades to get to the same place as they haven’t actually used the site yet… they have been too busy making money in the real shop ! but wanted to check everything worked first…



Any ideas as to why it errors on the freshly installed copy ? Would it be because I have it running in a folder within the site ?



Regards,



m-space

Are you certain that you are getting a 404 (Not Found) error page?



Could it possibly be a 500 error page (Internal Server Error) instead?

Spiral,



The page itself identifies itself as a 404. which is strange.



[url]http://loveisboutique.co.uk/newbuild[/url]



is where the site is hosted.



When I check the firebug output the page is shown as from the newbuild directory but the css is being called from the top level directory where a previous version of cs-cart is running.

Might be a file path issue in your config.php file

[quote name=‘racingsolution’]Might be a file path issue in your config.php file[/QUOTE]



I had a look at that but couldn’t see anything obviously wrong. In my config.local.php everything points to the subdirectory - whereas in the config.php it uses the unified path function to return the working directory on the server.



I just double checked the prepare.php file and the only difference between an older version of cs-cart and the new one is that the old one read like this:


define('DIR_ROOT', fn_unified_path(realpath(dirname(__FILE__)))); // Real path to the directory where software is installed




whereas the new version reads:


define('DIR_ROOT', fn_unified_path(dirname(__FILE__))); // Real path to the directory where software is installed




I have changed the code to read as the previous but this hasn’t made any difference…



I am stumped. I also tried installing into the main root directory and then I received error 500 instead !



regards,



m-space

*** Resolved ***



The installation script is not setting the appropriate permissions on index.php nor admin.php.



Having changed them manually to 755 everything is working as expected. Now the task of bringing over all the data from 2.0.8 to 2.0.11 - I think i’ll do this manually for each part as my client hasn’t used the site much…



Regards & thanks,



m-space

[quote name=‘m-space’]*** Resolved ***



The installation script is not setting the appropriate permissions on index.php nor admin.php.



Having changed them manually to 755 everything is working as expected. Now the task of bringing over all the data from 2.0.8 to 2.0.11 - I think i’ll do this manually for each part as my client hasn’t used the site much…



Regards & thanks,



m-space[/QUOTE]



Don’t forget to rename Admin.php :slight_smile:

[quote name=‘Spiral’]Are you certain that you are getting a 404 (Not Found) error page?



Could it possibly be a 500 error page (Internal Server Error) instead?[/QUOTE]



Not wishing to piggy back here, just interested. What would be the cause of a 500 error in this situation?



I have to done installed into a subdirectory of an existing cart exactly as m-space has done and am stuck trying to fix the 500 error…



Fleety

No need to apologise for piggy backing - hopefully this will set a few people straight when installing this version as a clean install. It was the same error - just change the permissions on the index.php and admin.php files to 755 and you will be good to go.



All the best with your cart - I am now transferring over all my mods to the new site :smiley: I really need to learn how to use hooks for future sites !

[quote name=‘m-space’]No need to apologise for piggy backing - hopefully this will set a few people straight when installing this version as a clean install. It was the same error - just change the permissions on the index.php and admin.php files to 755 and you will be good to go.



All the best with your cart - I am now transferring over all my mods to the new site :smiley: I really need to learn how to use hooks for future sites ![/quote]



The files should have a 644 permission, not 755.

thanks for the info, i’ll change them to that and see if everything still works :slight_smile:

Good input folks, many thanks.



Wishing everyone a happy and prosperous 2010.

May your year bring you stable code and trouble free upgrades.



-Fleety