_lecro_ Posted April 19, 2017 Share Posted April 19, 2017 A site i maintain has been running CC v3 for the last few years without any issue we decided it was time for an upgrade so followed the upgrade procedure when going to setup there is an error... " Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. " if i go past that to setup.install.php i get a different error ... "Fatal error: Call to undefined function chmod_writable() in /home/sexpisto/public_html/shop/setup/setup.install.php on line 43 " JFYI line 43 is "if (!chmod(CC_ROOT_DIR.'/'.$target, chmod_writable())) { Any thoughts ? Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted April 19, 2017 Share Posted April 19, 2017 It sounds like a file permission problem to me, but I could be completely off base with that. @havenswift-hosting is a good one to ask for help with this. Hopefully he'll see your post. Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted April 19, 2017 Share Posted April 19, 2017 Looks like missing or mix of old and new files. Please check and try again. Quote Link to comment Share on other sites More sharing options...
_lecro_ Posted April 19, 2017 Author Share Posted April 19, 2017 Ok well i check the perms , they looked ok then deleted all apart from images/ includes/global.inc.php includes/ini.inc.php language/ re uploaded new files , rechecked perms .. still same issue Maybe should have mentioned another issue i had to start, i first got " "PHP 5.2.14 detected. CubeCart requires PHP 5.4 or higher." the shared host has cubecart 6.1 as a softilicious install and suggested adding "AddType application/x-httpd-php56 .php " into the .htaccess file and replacing the php.ini (attached) with one they supplied although 5.2.14 detected error did go it gave the initial error i posted :/ php.ini Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 19, 2017 Share Posted April 19, 2017 The function chmod_writable() is in the file /includes/functions.inc.php. We need to learn if PHP cannot find or is being denied access to this file, or if this file is an older version that does not have this function. Quote Link to comment Share on other sites More sharing options...
_lecro_ Posted April 19, 2017 Author Share Posted April 19, 2017 12 minutes ago, bsmither said: The function chmod_writable() is in the file /includes/functions.inc.php. We need to learn if PHP cannot find or is being denied access to this file, or if this file is an older version that does not have this function. how would i establish if php cannot find it or being denied access to it ? functions.inc.php is 0644 and is the new file from the upgrade folder , if that helps Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 19, 2017 Share Posted April 19, 2017 Problems like this would show in the error log. Please create the error_log. You mention: " if i go past that to setup.install.php" If by that you mean you went straight to: www.mysite.com/setup/setup.install.php, please do not do that. Go to either: www.mysite.com or www.mysite.com/setup/index.php. Quote Link to comment Share on other sites More sharing options...
_lecro_ Posted April 19, 2017 Author Share Posted April 19, 2017 (edited) Ok ive created an error log as per instructions error_log Edited April 19, 2017 by _lecro_ didnt attach :P Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 19, 2017 Share Posted April 19, 2017 Those errors would not stop CubeCart from running the setup scripts. How far do you now get with going straight to www.mysite.com/setup/index.php ? Quote Link to comment Share on other sites More sharing options...
_lecro_ Posted April 19, 2017 Author Share Posted April 19, 2017 3 minutes ago, bsmither said: Those errors would not stop CubeCart from running the setup scripts. How far do you now get with going straight to www.mysite.com/setup/index.php ? Still the same 404 error Quote Link to comment Share on other sites More sharing options...
_lecro_ Posted April 19, 2017 Author Share Posted April 19, 2017 Ok in desperation i restored the old site files and all seems to work ok now but only after removing the code the hosts told me to add to the .htaccess file "suphp_configpath /home/sexpisto/public_html AddType application/x-httpd-php56 .php " ive created a test store for now but still getting the initial " PHP 5.2.14 detected. CubeCart requires PHP 5.4 or higher" problem. Is there a proper work around for this or will they have to upgrade the php version server side ? Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 19, 2017 Share Posted April 19, 2017 Depending what is given to you to manage your hosting account, you have a control panel, and in that panel is a tool to select what version of PHP you want running for it. Quote Link to comment Share on other sites More sharing options...
_lecro_ Posted April 19, 2017 Author Share Posted April 19, 2017 Yea thats one of the first things i tried but it only shows you the php config it doesnt allow you to change it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.