tiapeterson

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!

tiapeterson

Re: install error - just need the quick reply

This is the error I'm receiving now:
Fatal error: Call to a member function fetch_assoc() on a non-object in /home/allameri/public_html/jobs/_includes/class.Job.php on line 1026

I had to change the database name in my config file. I got an error about the Db.MySql.php, so I change that back to normal and re-uploaded the config file, and this fetch error is now what I'm getting.

Argh! I know the answer is right under my nose

tiapeterson

Re: install error - just need the quick reply

FIGURED IT OUT!! yay smile

justincone

Re: install error - just need the quick reply

Could you please tell us how you fixed it? I'm having the same trouble...