Jump to content

1-Click Upgrade Fatal Error (Issue resolved, well worked around)


glennlawre

Recommended Posts

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 by glennlawre
Issue resolved (well worked around) (see edit history)
Link to comment
Share on other sites

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

  • 1 month later...
  • 1 year later...

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...

image.thumb.png.82bc77fc45e9f42ef0370efd8efa8090.png

Link to comment
Share on other sites

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...