Topic: install error - just need the quick reply
Hi,
I've seen this topic posted a few times but the workaround doesn't seem to be working for me.
Fatal error: Call to a member function query() on a non-object in /home/allameri/public_html/jobs/_includes/class.Job.php on line 1025
No matter how many times I've re-installed, deleted the database, created a new one, imported the .sql file again, etc - I still get this error.
My server is php 5.2.5, the MySql version is 5.0.45. I know that this isn't a technical incompatability issue. I've changed the structure in config.php according to the readme instructions, too.
My line 1065 in the class.Job.php file is
public function GetJobsCountForAllCategs()
{
global $db;
$categs = get_categories();
$result = array();
foreach ($categs as $categ)
{
$count = $this->CountJobs($categ['id']);
$result[] = array('categ_name' => strtolower($categ['name']), 'categ_count' => $count, 'categ_varname' => $categ['var_name']);
}
return $result;
}
Can you let me know if this is just incorrect? Thanks!