1
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?*/