Jump to content

upgrade to 1.7.6.7 - Fatal error: Uncaught Error: Class 'Db' not found in /home/bbhand5/public_html/test/config/alias.php:47 Stack trace


skara

Recommended Posts

Hi,

I have just upgraded from PS 1.6.20 (yes I know a big jump ...😉) to PS 1.7.6.7. 

I receive HTTP ERROR 500 for both BO and shop (http://bbhands/test)

remark: PHP version is 7.2.33 (inherited), althouth in PHP info I see 7.0.33 

Enabling debug mode receive:

Warning: rename(/tmp/class_index.phplWTFjw,/home/bbhand5/public_html/test/var/cache/dev/class_index.php): No such file or directory in /home/bbhand5/public_html/test/classes/PrestaShopAutoload.php on line 264

Warning: rename(/tmp/class_stub.php78OhmF,/home/bbhand5/public_html/test/var/cache/dev/class_stub.php): No such file or directory in /home/bbhand5/public_html/test/classes/PrestaShopAutoload.php on line 264

Warning: rename(/tmp/namespaced_class_stub.phpGyMToO,/home/bbhand5/public_html/test/var/cache/dev/namespaced_class_stub.php): No such file or directory in /home/bbhand5/public_html/test/classes/PrestaShopAutoload.php on line 264

Warning: rename(/tmp/class_index.phpQRbEqY,/home/bbhand5/public_html/test/var/cache/dev/class_index.php): No such file or directory in /home/bbhand5/public_html/test/classes/PrestaShopAutoload.php on line 264

Warning: rename(/tmp/class_stub.phpSo9is8,/home/bbhand5/public_html/test/var/cache/dev/class_stub.php): No such file or directory in /home/bbhand5/public_html/test/classes/PrestaShopAutoload.php on line 264

Warning: rename(/tmp/namespaced_class_stub.phpSk9Vti,/home/bbhand5/public_html/test/var/cache/dev/namespaced_class_stub.php): No such file or directory in /home/bbhand5/public_html/test/classes/PrestaShopAutoload.php on line 264

Warning: rename(/tmp/class_index.php9sGcvt,/home/bbhand5/public_html/test/var/cache/dev/class_index.php): No such file or directory in /home/bbhand5/public_html/test/classes/PrestaShopAutoload.php on line 264

Warning: rename(/tmp/class_stub.php48rrwE,/home/bbhand5/public_html/test/var/cache/dev/class_stub.php): No such file or directory in /home/bbhand5/public_html/test/classes/PrestaShopAutoload.php on line 264

Warning: rename(/tmp/namespaced_class_stub.phpXi4VxP,/home/bbhand5/public_html/test/var/cache/dev/namespaced_class_stub.php): No such file or directory in /home/bbhand5/public_html/test/classes/PrestaShopAutoload.php on line 264

Fatal error: Uncaught Error: Class 'Db' not found in /home/bbhand5/public_html/test/config/alias.php:47 Stack trace: #0 /home/bbhand5/public_html/test/config/alias.php(52): pSQL('configuration') #1 /home/bbhand5/public_html/test/classes/Configuration.php(155): bqSQL('configuration') #2 /home/bbhand5/public_html/test/classes/Configuration.php(209): ConfigurationCore::loadConfiguration() #3 /home/bbhand5/public_html/test/classes/PrestaShopAutoload.php(171): ConfigurationCore::get('PS_DISABLE_OVER...') #4 /home/bbhand5/public_html/test/classes/PrestaShopAutoload.php(130): PrestaShopAutoload->generateIndex() #5 [internal function]: PrestaShopAutoload->load('Db') #6 /home/bbhand5/public_html/test/config/alias.php(47): spl_autoload_call('Db') #7 /home/bbhand5/public_html/test/config/alias.php(52): pSQL('configuration') #8 /home/bbhand5/public_html/test/classes/Configuration.php(155): bqSQL('configuration') #9 /home/bbhand5/public_html/test/classes/Configuration.php(209): ConfigurationCore::loadConfiguration() #10 /home/bbhand5/ in /home/bbhand5/public_html/test/config/alias.php on line 47

 

Any help is much appreciated ...

 

Thank you.

Regards

 

Pierangelo

 

 

Edited by skara
added tags (see edit history)
Link to comment
Share on other sites

  • 3 weeks later...

Class not found errors are sometimes caused because the class file is missing or has size zero. This was in PS 1.6. For 1.7 there may be other problem places but I still know its file labyrinth insufficiently to be sure about other locations.

The fix: Make a fresh PS installation of the same version and copy the classes and controllers directories.

Link to comment
Share on other sites

  • 1 month later...

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