updating an old Phoenix to current 1.0.8.1 error

Open to all! Ask other shopowners for help.
Post Reply
kudos
Member
Posts: 20
Joined: Sat Jan 16, 2021 8:48 pm
Phoenix Version:
Has thanked: 1 time

updating an old Phoenix to current 1.0.8.1 error

Post 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


Join The Code Co-op to get access to your library in the Code Co-op Forum
ecartz
Core Team
Posts: 3084
Joined: Tue Nov 05, 2019 6:02 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 208 times

Re: updating an old Phoenix to current 1.0.8.1 error

Post 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.
kudos
Member
Posts: 20
Joined: Sat Jan 16, 2021 8:48 pm
Phoenix Version:
Has thanked: 1 time

Re: updating an old Phoenix to current 1.0.8.1 error

Post by kudos »

hi
that fixed the issues
seemed that this file did not get updated in the update script or something.

thanks


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply