jbskaggs Posted February 14, 2013 Share Posted February 14, 2013 My upgrade runs until it gets to upgrade database then it stops and gives: [Ajax / Server Error] textStatus: "error" errorThrown:"Internal Server Error" jqXHR: " This error occurs whether on my shared hosted site or on my local wamp server. I have tried each of the solutions I found in the forums but either I don't know what I am doing or they dont apply. Following is error log from my wamp apache error log [Thu Feb 14 11:42:33 2013] [notice] Parent: Received shutdown signal -- Shutting down the server. [Thu Feb 14 11:42:33 2013] [notice] Child 7648: Exit event signaled. Child process is ending. [Thu Feb 14 11:42:34 2013] [notice] Child 7648: Released the start mutex [Thu Feb 14 11:42:35 2013] [notice] Child 7648: All worker threads have exited. [Thu Feb 14 11:42:35 2013] [notice] Child 7648: Child process is exiting [Thu Feb 14 11:42:35 2013] [notice] Parent: Child process exited successfully. [Thu Feb 14 11:43:44 2013] [notice] Apache/2.2.22 (Win32) PHP/5.4.3 configured -- resuming normal operations [Thu Feb 14 11:43:44 2013] [notice] Server built: May 13 2012 13:32:42 [Thu Feb 14 11:43:44 2013] [notice] Parent: Created child process 7636 [Thu Feb 14 11:43:44 2013] [notice] Child 7636: Child process is running [Thu Feb 14 11:43:44 2013] [notice] Child 7636: Acquired the start mutex. [Thu Feb 14 11:43:44 2013] [notice] Child 7636: Starting 64 worker threads. [Thu Feb 14 11:43:44 2013] [notice] Child 7636: Starting thread to listen on port 80. [Thu Feb 14 11:43:44 2013] [notice] Child 7636: Starting thread to listen on port 80. [Thu Feb 14 11:45:32 2013] [error] [client ::1] PHP Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in C:\\wamp\\www\\skaggswoodbeds\\modules\\autoupgrade\\classes\\Upgrader.php on line 257, referer: http://localhost/skaggswoodbeds/sgadmin/index.php?tab=AdminSelfUpgrade&conf=6&token=4bf06d196e951147d96fbf4d7255d176 [Thu Feb 14 11:45:32 2013] [error] [client ::1] PHP Stack trace:, referer: http://localhost/skaggswoodbeds/sgadmin/index.php?tab=AdminSelfUpgrade&conf=6&token=4bf06d196e951147d96fbf4d7255d176 [Thu Feb 14 11:45:32 2013] [error] [client ::1] PHP 1. {main}() C:\\wamp\\www\\skaggswoodbeds\\sgadmin\\index.php:0, referer: http://localhost/skaggswoodbeds/sgadmin/index.php?tab=AdminSelfUpgrade&conf=6&token=4bf06d196e951147d96fbf4d7255d176 [Thu Feb 14 11:45:32 2013] [error] [client ::1] PHP 2. checkingTab() C:\\wamp\\www\\skaggswoodbeds\\sgadmin\\index.php:41, referer: http://localhost/skaggswoodbeds/sgadmin/index.php?tab=AdminSelfUpgrade&conf=6&token=4bf06d196e951147d96fbf4d7255d176 [Thu Feb 14 11:45:32 2013] [error] [client ::1] PHP 3. AdminSelfUpgrade->__construct() C:\\wamp\\www\\skaggswoodbeds\\sgadmin\\functions.php:265, referer: http://localhost/skaggswoodbeds/sgadmin/index.php?tab=AdminSelfUpgrade&conf=6&token=4bf06d196e951147d96fbf4d7255d176 [Thu Feb 14 11:45:32 2013] [error] [client ::1] PHP 4. AdminSelfUpgrade->init() C:\\wamp\\www\\skaggswoodbeds\\modules\\autoupgrade\\AdminSelfUpgrade.php:383, referer: http://localhost/skaggswoodbeds/sgadmin/index.php?tab=AdminSelfUpgrade&conf=6&token=4bf06d196e951147d96fbf4d7255d176 [Thu Feb 14 11:45:32 2013] [error] [client ::1] PHP 5. UpgraderCore->getApiAddons() C:\\wamp\\www\\skaggswoodbeds\\modules\\autoupgrade\\AdminSelfUpgrade.php:673, referer: http://localhost/skaggswoodbeds/sgadmin/index.php?tab=AdminSelfUpgrade&conf=6&token=4bf06d196e951147d96fbf4d7255d176 [Thu Feb 14 11:45:32 2013] [error] [client ::1] PHP 6. file_get_contents() C:\\wamp\\www\\skaggswoodbeds\\modules\\autoupgrade\\classes\\Upgrader.php:257, referer: http://localhost/skaggswoodbeds/sgadmin/index.php?tab=AdminSelfUpgrade&conf=6&token=4bf06d196e951147d96fbf4d7255d176 [Thu Feb 14 11:45:32 2013] [error] [client ::1] PHP Warning: file_get_contents(https://api.addons.prestashop.com): failed to open stream: Invalid argument in C:\\wamp\\www\\skaggswoodbeds\\modules\\autoupgrade\\classes\\Upgrader.php on line 257, referer: http://localhost/skaggswoodbeds/sgadmin/index.php?tab=AdminSelfUpgrade&conf=6&token=4bf06d196e951147d96fbf4d7255d176 [Thu Feb 14 11:45:32 2013] [error] [client ::1] PHP Stack trace:, referer: http://localhost/skaggswoodbeds/sgadmin/index.php?tab=AdminSelfUpgrade&conf=6&token=4bf06d196e951147d96fbf4d7255d176 [Thu Feb 14 11:45:32 2013] [error] [client ::1] PHP 1. {main}() C:\\wamp\\www\\skaggswoodbeds\\sgadmin\\index.php:0, referer: http://localhost/skaggswoodbeds/sgadmin/index.php?tab=AdminSelfUpgrade&conf=6&token=4bf06d196e951147d96fbf4d7255d176 [Thu Feb 14 11:45:32 2013] [error] [client ::1] PHP 2. checkingTab() C:\\wamp\\www\\skaggswoodbeds\\sgadmin\\index.php:41, referer: http://localhost/skaggswoodbeds/sgadmin/index.php?tab=AdminSelfUpgrade&conf=6&token=4bf06d196e951147d96fbf4d7255d176 [Thu Feb 14 11:45:32 2013] [error] [client ::1] PHP 3. AdminSelfUpgrade->__construct() C:\\wamp\\www\\skaggswoodbeds\\sgadmin\\functions.php:265, referer: http://localhost/skaggswoodbeds/sgadmin/index.php?tab=AdminSelfUpgrade&conf=6&token=4bf06d196e951147d96fbf4d7255d176 [Thu Feb 14 11:45:32 2013] [error] [client ::1] PHP 4. AdminSelfUpgrade->init() C:\\wamp\\www\\skaggswoodbeds\\modules\\autoupgrade\\AdminSelfUpgrade.php:383, referer: http://localhost/skaggswoodbeds/sgadmin/index.php?tab=AdminSelfUpgrade&conf=6&token=4bf06d196e951147d96fbf4d7255d176 [Thu Feb 14 11:45:32 2013] [error] [client ::1] PHP 5. UpgraderCore->getApiAddons() C:\\wamp\\www\\skaggswoodbeds\\modules\\autoupgrade\\AdminSelfUpgrade.php:673, referer: http://localhost/skaggswoodbeds/sgadmin/index.php?tab=AdminSelfUpgrade&conf=6&token=4bf06d196e951147d96fbf4d7255d176 [Thu Feb 14 11:45:32 2013] [error] [client ::1] PHP 6. file_get_contents() C:\\wamp\\www\\skaggswoodbeds\\modules\\autoupgrade\\classes\\Upgrader.php:257, referer: http://localhost/skaggswoodbeds/sgadmin/index.php?tab=AdminSelfUpgrade&conf=6&token=4bf06d196e951147d96fbf4d7255d176 [Thu Feb 14 11:47:13 2013] [error] [client ::1] PHP Warning: require_once(C:\\wamp\\www\\skaggswoodbeds\\sgadmin\\autoupgrade\\latest\\prestashop\\install\\php\\deactivate_custom_modules.php): failed to open stream: No such file or directory in C:\\wamp\\www\\skaggswoodbeds\\modules\\autoupgrade\\AdminSelfUpgrade.php on line 2075, referer: http://localhost/skaggswoodbeds/sgadmin/index.php?tab=AdminSelfUpgrade&conf=6&token=4bf06d196e951147d96fbf4d7255d176 [Thu Feb 14 11:47:13 2013] [error] [client ::1] PHP Stack trace:, referer: http://localhost/skaggswoodbeds/sgadmin/index.php?tab=AdminSelfUpgrade&conf=6&token=4bf06d196e951147d96fbf4d7255d176 [Thu Feb 14 11:47:13 2013] [error] [client ::1] PHP 1. {main}() C:\\wamp\\www\\skaggswoodbeds\\sgadmin\\autoupgrade\\ajax-upgradetab.php:0, referer: http://localhost/skaggswoodbeds/sgadmin/index.php?tab=AdminSelfUpgrade&conf=6&token=4bf06d196e951147d96fbf4d7255d176 [Thu Feb 14 11:47:13 2013] [error] [client ::1] PHP 2. AdminSelfUpgrade->ajaxProcessUpgradeDb() C:\\wamp\\www\\skaggswoodbeds\\sgadmin\\autoupgrade\\ajax-upgradetab.php:76, referer: http://localhost/skaggswoodbeds/sgadmin/index.php?tab=AdminSelfUpgrade&conf=6&token=4bf06d196e951147d96fbf4d7255d176 [Thu Feb 14 11:47:13 2013] [error] [client ::1] PHP 3. AdminSelfUpgrade->doUpgrade() C:\\wamp\\www\\skaggswoodbeds\\modules\\autoupgrade\\AdminSelfUpgrade.php:1843, referer: http://localhost/skaggswoodbeds/sgadmin/index.php?tab=AdminSelfUpgrade&conf=6&token=4bf06d196e951147d96fbf4d7255d176 [Thu Feb 14 11:47:13 2013] [error] [client ::1] PHP Fatal error: require_once(): Failed opening required 'C:\\wamp\\www\\skaggswoodbeds\\sgadmin\\autoupgrade\\latest\\prestashop\\install\\php\\deactivate_custom_modules.php' (include_path='.;C:\\php\\pear') in C:\\wamp\\www\\skaggswoodbeds\\modules\\autoupgrade\\AdminSelfUpgrade.php on line 2075, referer: http://localhost/skaggswoodbeds/sgadmin/index.php?tab=AdminSelfUpgrade&conf=6&token=4bf06d196e951147d96fbf4d7255d176 [Thu Feb 14 11:47:13 2013] [error] [client ::1] PHP Stack trace:, referer: http://localhost/skaggswoodbeds/sgadmin/index.php?tab=AdminSelfUpgrade&conf=6&token=4bf06d196e951147d96fbf4d7255d176 [Thu Feb 14 11:47:13 2013] [error] [client ::1] PHP 1. {main}() C:\\wamp\\www\\skaggswoodbeds\\sgadmin\\autoupgrade\\ajax-upgradetab.php:0, referer: http://localhost/skaggswoodbeds/sgadmin/index.php?tab=AdminSelfUpgrade&conf=6&token=4bf06d196e951147d96fbf4d7255d176 [Thu Feb 14 11:47:13 2013] [error] [client ::1] PHP 2. AdminSelfUpgrade->ajaxProcessUpgradeDb() C:\\wamp\\www\\skaggswoodbeds\\sgadmin\\autoupgrade\\ajax-upgradetab.php:76, referer: http://localhost/skaggswoodbeds/sgadmin/index.php?tab=AdminSelfUpgrade&conf=6&token=4bf06d196e951147d96fbf4d7255d176 [Thu Feb 14 11:47:13 2013] [error] [client ::1] PHP 3. AdminSelfUpgrade->doUpgrade() C:\\wamp\\www\\skaggswoodbeds\\modules\\autoupgrade\\AdminSelfUpgrade.php:1843, referer: http://localhost/skaggswoodbeds/sgadmin/index.php?tab=AdminSelfUpgrade&conf=6&token=4bf06d196e951147d96fbf4d7255d176 Thank you JB Skaggs Link to comment Share on other sites More sharing options...
jbskaggs Posted February 14, 2013 Author Share Posted February 14, 2013 I asked my hosting company to look into this and they got me upgraded: here is there comments: I investigated the case thoroughly and I found that during the failed upgrade the following error is being produced: Code: PHP Fatal error: Call to undefined method Tools::nl2br() in /home/skaggswo/public_html/modules/autoupgrade/db/Db.php on line 626 I checked line 626 of the aforementioned file and I found that the developers tried to use the PHP system function nl2br() as part of the Tools class, which is incorrect Code: $string = strip_tags(Tools::nl2br($string)); I commented that line and in its place I added Code: $string = strip_tags(nl2br($string)); Then the upgrade was successfully completed: Code: Upgrade Complete, but warnings has been found. [ERROR] SQL 1.4.6.0 1091 in ALTER TABLE `pss_compare_product` DROP `id_compare_product` , DROP `id_guest` , DROP `id_customer`: Can't DROP 'id_compare_product'; check that column/key exists [ERROR] SQL 1.4.6.0 1062 in ALTER TABLE `pss_compare_product` ADD `id_compare` int(10) unsigned NOT NULL, ADD PRIMARY KEY( `id_compare`, `id_product`): Duplicate entry '0-24' for key 'PRIMARY' [ERROR] SQL 1.4.6.0 1068 in ALTER TABLE `pss_address_format` ADD PRIMARY KEY (`id_country`): Multiple primary key defined [ERROR] SQL 1.4.6.0 1091 in ALTER TABLE `pss_address_format` DROP INDEX `country`: Can't DROP 'country'; check that column/key exists Warning detected during upgrade. At this point I believe that you can safely disregard these warnings. After the upgrade the following "To-Do" list was rendered: Code: Don't forget to reactivate your shop ! Please check your front-office theme is functionnal (try to make an order, check theme) Link to comment Share on other sites More sharing options...
TasosB Posted February 16, 2013 Share Posted February 16, 2013 I came back to this post to say Thank you for sharing this info with us. 1.4.1 to 1.4.9 worked perfect with 1-click upgrade in xampp (after days with ajax/server error) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now