Fatal error: Call to a member function GetAll() on a non-object in /home/tokoqcom/ms/modules/frontend.php on line 23
It shows in ms.tokoq.com, line #23 is $query1 from the code below:
<?php
defined('_VALID_') or die('Direct Access to this location is not allowed.');
// Latest news
$query1 = "
SELECT pages_id, category_id, pages_date, headline, description
FROM pages
WHERE status = 'online'
AND category_id = '5'
ORDER BY pages_date DESC
LIMIT " . MAXVIEW_news . "";
$news = $DB->GetAll($query1);
$i=0;
if($news){
foreach($news as $rows) {
$description = stripslashes($rows['description']);
$headline = stripslashes($rows['headline']);
$description = CutCharacter($description,'200');
$news[$i++]=array(
'pages_id'=>$rows['pages_id'],
'category_id'=>$rows['category_id'],
'pages_date'=>$rows['pages_date'],
'headline'=>$headline,
'description'=>$description);
}
$tpl->assign('news',$news);
}
...
what is the possible error that cause this?
my development machine using PHP 5.2.5 while the host using 5.2.6, with the latest smarty and adodb. It works on my dev machine but failed in host machine.
I tried to google it but as far as I read it cause by people upgrade from php 5.1 to 5.2 and that's not what I have.
Thank you for your help.