1
babay
XOOPS error after PHP upgrade
  • 2016/1/10 20:10

  • babay

  • Just popping in

  • Posts: 6

  • Since: 2003/12/28


Hello! I use xoops ver 2.3.
Hosting upgrade PHP. Now PHP 5.5
After upgrade site no open.
Blank screen and this:
PHP Fatal error: Call to a member function prefix() on a non-object in /home/u***/***.ru/www/kernel/configitem.php on line 294

function getObjects($criteria null$id_as_key false)
    {
        
$ret = array();
        
$limit $start 0;
        
$sql 'SELECT * FROM '.$this->db->prefix('config');
        if (isset(
$criteria) && is_subclass_of($criteria'criteriaelement')) {
            
$sql .= ' '.$criteria->renderWhere();
            
$sql .= ' ORDER BY conf_order ASC';
            
$limit $criteria->getLimit();
            
$start $criteria->getStart();
        }
        
$result $this->db->query($sql$limit$start);
        if (!
$result) {
            return 
false;
        }
        while (
$myrow $this->db->fetchArray($result)) {
            
$config = new XoopsConfigItem();
            
$config->assignVars($myrow);
            if (!
$id_as_key) {
                
$ret[] =& $config;
            } else {
                
$ret[$myrow['conf_id']] =& $config;
            }
            unset(
$config);
        }
        return 
$ret;
    }

Line 294 this:
$sql 'SELECT * FROM '.$this->db->prefix('config');


how to solve a problem?*/

2
Mamba
Re: XOOPS error after PHP upgrade
  • 2016/1/10 23:36

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Quote:
how to solve a problem?*/

Please upgrade to XOOPS 2.5.7.2

Please read the XOOPS Installation Guide, and in particular the chapter:

Upgrading from XOOPS 2.0. above 2.0.14 and 2.2

Please make sure that you also update your modules that you're currently using, otherwise you'll have the same problems with PHP version not being compatible.
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

3
babay
Re: XOOPS error after PHP upgrade
  • 2016/1/12 20:50

  • babay

  • Just popping in

  • Posts: 6

  • Since: 2003/12/28


Many thanks! All ok!

4
Mamba
Re: XOOPS error after PHP upgrade
  • 2016/1/13 0:38

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Great to hear that we have another happy user!
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

Login

Who's Online

308 user(s) are online (108 user(s) are browsing Support Forums)


Members: 0


Guests: 308


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits