glennlawre Posted November 20, 2019 Share Posted November 20, 2019 (edited) Hello All, I am trying to update a PS v1.6.0.6 site via the 1-Click Upgrade module and I am seeing the below error when I click "Configure" on the module. Fatal error: require(): Failed opening required '/' (include_path='.:/opt/alt/php70/usr/share/pear') in /classes/PrestaShopAutoload.php on line 122 I have updated to the latest version of the 1-Click Upgrade module, v4.9.0 I have searched high and low and cannot find a mention of this being fixed anywhere. Anyone any ideas...? Many thanks in advance. Edited January 7, 2020 by glennlawre Issue resolved (well worked around) (see edit history) Link to comment Share on other sites More sharing options...
tuk66 Posted November 22, 2019 Share Posted November 22, 2019 This error message isn't too descriptive. Can you see something in the error log? Link to comment Share on other sites More sharing options...
glennlawre Posted November 22, 2019 Author Share Posted November 22, 2019 The below is from my "error_log" in my root directory, Not sure if it will help though as I've just re-created the error and the log has not update. Last time of update was yesterday. Quote [20-Nov-2019 21:12:42 Europe/Dublin] PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in classes/db/MySQL.php:37 Stack trace: #0 classes/db/Db.php(260): MySQLCore->connect() #1 classes/db/Db.php(204): DbCore->__construct #2 config/alias.php(64): DbCore::getInstance() #3 classes/shop/Shop.php(324): pSQL('honda50.ie') #4 config/config.inc.php(94): ShopCore::initialize() #5 index.php(27): require('/...') #6 {main} thrown in classes/db/MySQL.php on line 37 [20-Nov-2019 21:12:42 Europe/Dublin] PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in classes/db/MySQL.php:37 Stack trace: #0 classes/db/Db.php(260): MySQLCore->connect() #1 classes/db/Db.php(204): DbCore->__construct #2 config/alias.php(64): DbCore::getInstance() #3 classes/shop/Shop.php(324): pSQL('honda50.ie') #4 config/config.inc.php(94): ShopCore::initialize() #5 index.php(27): require('/...') #6 {main} thrown in classes/db/MySQL.php on line 37 [20-Nov-2019 21:12:59 Europe/Dublin] PHP Fatal error: Uncaught Error: [] operator not supported for strings in classes/db/DbQuery.php:70 Stack trace: #0 classes/ObjectModel.php(198): DbQueryCore->from('shop', 'a') #1 classes/shop/Shop.php(131): ObjectModelCore->__construct('1', NULL, NULL) #2 classes/shop/Shop.php(388): ShopCore->__construct('1') #3 config/config.inc.php(94): ShopCore::initialize() #4 index.php(27): require('/...') #5 {main} thrown in classes/db/DbQuery.php on line 70 [20-Nov-2019 21:13:04 Europe/Dublin] PHP Fatal error: Uncaught Error: [] operator not supported for strings in classes/db/DbQuery.php:70 Stack trace: #0 classes/ObjectModel.php(198): DbQueryCore->from('shop', 'a') #1 classes/shop/Shop.php(131): ObjectModelCore->__construct('1', NULL, NULL) #2 classes/shop/Shop.php(388): ShopCore->__construct('1') #3 config/config.inc.php(94): ShopCore::initialize() #4 index.php(27): require('/...') #5 {main} thrown in classes/db/DbQuery.php on line 70 [20-Nov-2019 21:13:04 Europe/Dublin] PHP Fatal error: Uncaught Error: [] operator not supported for strings in classes/db/DbQuery.php:70 Stack trace: #0 classes/ObjectModel.php(198): DbQueryCore->from('shop', 'a') #1 classes/shop/Shop.php(131): ObjectModelCore->__construct('1', NULL, NULL) #2 classes/shop/Shop.php(388): ShopCore->__construct('1') #3 config/config.inc.php(94): ShopCore::initialize() #4 index.php(27): require('/...') #5 {main} thrown in classes/db/DbQuery.php on line 70 [20-Nov-2019 21:13:17 Europe/Dublin] PHP Fatal error: Uncaught Error: [] operator not supported for strings in classes/db/DbQuery.php:70 Stack trace: #0 classes/ObjectModel.php(198): DbQueryCore->from('shop', 'a') #1 classes/shop/Shop.php(131): ObjectModelCore->__construct('1', NULL, NULL) #2 classes/shop/Shop.php(388): ShopCore->__construct('1') #3 config/config.inc.php(94): ShopCore::initialize() #4 index.php(27): require('/...') #5 {main} thrown in classes/db/DbQuery.php on line 70 [20-Nov-2019 21:13:17 Europe/Dublin] PHP Fatal error: Uncaught Error: [] operator not supported for strings in classes/db/DbQuery.php:70 Stack trace: #0 classes/ObjectModel.php(198): DbQueryCore->from('shop', 'a') #1 classes/shop/Shop.php(131): ObjectModelCore->__construct('1', NULL, NULL) #2 classes/shop/Shop.php(388): ShopCore->__construct('1') #3 config/config.inc.php(94): ShopCore::initialize() #4 index.php(27): require('/...') #5 {main} thrown in classes/db/DbQuery.php on line 70 [20-Nov-2019 21:58:49 Europe/Dublin] PHP Fatal error: Call to undefined function mb_convert_encoding() in cache/smarty/compile/d3/4b/36/d34b36d5677a55f600699f3639556714f7036ff6.file.header.tpl.php on line 126 [20-Nov-2019 21:58:52 Europe/Dublin] PHP Fatal error: Call to undefined function mb_convert_encoding() in cache/smarty/compile/d3/4b/36/d34b36d5677a55f600699f3639556714f7036ff6.file.header.tpl.php on line 126 [20-Nov-2019 21:59:07 Europe/Dublin] PHP Fatal error: Call to undefined function mb_convert_encoding() in cache/smarty/compile/d3/4b/36/d34b36d5677a55f600699f3639556714f7036ff6.file.header.tpl.php on line 126 [20-Nov-2019 22:06:17 Europe/Dublin] PHP Warning: require_once(config/autoload.php): failed to open stream: No such file or directory in config/config.inc.php on line 53 [20-Nov-2019 22:06:17 Europe/Dublin] PHP Fatal error: require_once(): Failed opening required 'config/autoload.php' (include_path='.:/opt/alt/php70/usr/share/pear') in config/config.inc.php on line 53 [21-Nov-2019 07:49:11 Europe/Dublin] PHP Warning: Invalid argument supplied for foreach() in controllers/front/SearchController.php on line 98 Link to comment Share on other sites More sharing options...
glennlawre Posted November 22, 2019 Author Share Posted November 22, 2019 One other thing, In case it helps. I am running PHP 7.0 on this site. If I change to any later version the site stops working, hence the reason for wanting to upgrade... Link to comment Share on other sites More sharing options...
glennlawre Posted January 7, 2020 Author Share Posted January 7, 2020 Anyone have any further ideas on this? I really need to update the PS version on this site and this error is preventing me from doing so. Any other workarounds even to get the site updated would be very much appreciated... Link to comment Share on other sites More sharing options...
glennlawre Posted January 7, 2020 Author Share Posted January 7, 2020 Managed to get the site updated following the manual upgrade process. Not without having to jump through a few hoops first though (creating missing DB tables, changing PHP version and settings etc.), but we got it updated in the end. Link to comment Share on other sites More sharing options...
Akileine13 Posted January 11, 2021 Share Posted January 11, 2021 Hello, i have same problem (php7.0 and prestashop 1.6.0.1), i have need to update to 1.6.24.1. how did you solve the problem? Thanks Link to comment Share on other sites More sharing options...
glennlawre Posted January 12, 2021 Author Share Posted January 12, 2021 As this was over 1 year ago, I'm trying to remember exactly what I did... As far as I recall, I think I used the Auto-Upgrade module and selected the "*Local directory" option to complete the upgrade. To do this you need to upload an un-zipped version of the install files (for the version you want to upgrade to) to the directory highlighted in the image below and then select the various options before clicking to perform the update. Just be sure to do a full back-up of all files and your DB before attempting as I have had this fail in the past and had to restore. I hope this helps... Link to comment Share on other sites More sharing options...
Akileine13 Posted January 12, 2021 Share Posted January 12, 2021 thanks for your response, but i have this problem : I am trying to update a PS v1.6.0.6 site via the 1-Click Upgrade module and I am seeing the below error when I click "Configure" on the module. Fatal error: require(): Failed opening required '/' (include_path='.:/opt/alt/php70/usr/share/pear') in /classes/PrestaShopAutoload.php on line 122 I tested the module, but I have the same error thanks Link to comment Share on other sites More sharing options...
glennlawre Posted January 12, 2021 Author Share Posted January 12, 2021 I have also had many problems with this module over the years and there never seemed to be much support on it. Given it's an official PS module it really should have better support from PS. All I can recommend to do in this case is to get the original module files, maybe for a different version, and replace these in your "modules" folder. You might need to download a version of PS to get the original module files from the extraction. Or you might be able to find a download of just the module files somewhere. I have had to do this in the past to get over issues with this module.. If this doesn't work and you can't resolve the issue with the module you may be looking at a complete "manual" upgrade which involves downloading the site and running locally using WAMP or similar and updating before re-uploading back to your site. Messy process but sometimes required... There's documentation on this on the PS site. Let me know if you can't find and I'll dig out s link. 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