Page 1 of 1

updating an old Phoenix to current 1.0.8.1 error

Posted: Sat Nov 05, 2022 11:14 pm
by kudos
HI
i am trying to bring my website up to date, i have go to version 1.0.8.0
all runs fine and tests ok, things work

when i try to update to verion 1.0.8.1 i get a blank screen accessing the admin section, the store front end works fine it seems

the error i have is

Code: Select all

PHP Notice:  Undefined index: db in /xxx/xxx/xxx/includes/system/versioned/1.0.8.1/hooks.php on line 65
[05-Nov-2022 23:01:29 Europe/London] PHP Fatal error:  Uncaught Error: Call to a member function query() on null in /xxx/xxx/xxx/includes/system/versioned/1.0.8.1/hooks.php:65
Stack trace:
#0 /xxx/xxx/xxx/includes/system/versioned/1.0.8.1/hooks.php(121): hooks->load('system')
#1 /xxx/xxx/xxx/phonixadmin/includes/application_top.php(33): hooks->register('system')
#2/xxx/xxx/xxx/phonixadmin/version_check.php(13): require('/home/innovativ...')
#3 {main}
  thrown in /xxx/xxx/xxx/includes/system/versioned/1.0.8.1/hooks.php on line 65
seems to be where a tep_db_query is changed to a $GLOBALS['db'] so maybe an update did not update properly?

any one any ideas?

thanks, rob

Re: updating an old Phoenix to current 1.0.8.1 error

Posted: Sun Nov 06, 2022 12:31 am
by ecartz
kudos wrote: Sat Nov 05, 2022 11:14 pm $GLOBALS['db'] so maybe an update did not update properly?
Check that you are using a version of includes/application_top.php with

Code: Select all

  $db = new Database() or die('Unable to connect to database server!');
E.g. https://github.com/CE-PhoenixCart/Phoen ... on_top.php

After that, look for a DB connection error in your logs.

Re: updating an old Phoenix to current 1.0.8.1 error

Posted: Sun Nov 06, 2022 10:25 am
by kudos
hi
that fixed the issues
seemed that this file did not get updated in the update script or something.

thanks