Fatal error

Permalink 1 user found helpful
Fatal error: Call to a member function query() on a non-object in /home/iojumzft/htdocs/joomla/concrete/updates/concrete5.6.3.4/concrete/core/models/package.php on line 66

I was trying to find out the root file for the website I have created with Concrete 5 (I have done all the work directly form the dashboard. Hence, I don"t have any folder on my local drive for that). I generate the new password for Data bank in order to find the root file and look for files in myPHPadmin. I haven't found the files but above mentioned error for my website. Now I don't know where to find the particular file and what should I change.

Please kindly guide me with this as soon as possible. I am not too much into coding and specially PHP.

Thanks,
Amish

 
andrewjaff replied on at Permalink Best Answer Reply
andrewjaff
Hi,

It is because of database connection error.

Check your database setting in
Config/site.php file.
amish replied on at Permalink Reply
Hi Andrewjeff,

Thankso for the input. But the main problem is don't know how to access the config or root folder. As a matter of fact I don't know how can I access the databank. I have always worked from dashboard and from hosting account I was not abless to get into databank. Could you please help me with that.
andrewjaff replied on at Permalink Reply
andrewjaff
Hi,

You can access your file with following options:-
Using Cpanel ( Login to cpanel and visit file manager )
Using FTP ( Connect FTP it will open file manager )

if you have details of any you can access file .

Thanks
amish replied on at Permalink Reply
Unfortunately I couldn't find that on cpanel and FTP access is also not working.
andrewjaff replied on at Permalink Reply
andrewjaff
Let me know if you want some technical help .
amish replied on at Permalink Reply
Hi, finally i got the access to FTP.

below is the code line which cause the error.
Fatal error: Call to a member function query() on a non-object in /home/iojumzft/htdocs/joomla/concrete/updates/concrete5.6.3.4/concrete/core/models/package.php on line 66

$r = $db->query("select pkgID, pkgName, pkgIsInstalled, pkgDescription, pkgVersion, pkgHandle, pkgDateInstalled from Packages where pkgIsInstalled = ? order by pkgID asc", array($pkgIsInstalled));

could you please help me understand and solve the problem
amish replied on at Permalink Reply
Hi

Thanks a lot for your advice it was problem with the site.php as you have mentioned earlier.

It was of great help.

Thanks a lot.

Regards,
Amish
andrewjaff replied on at Permalink Reply
andrewjaff
ok good to know.. can you mark that best answer.
amish replied on at Permalink Reply
For sure :)
pakigreenl replied on at Permalink Reply
pakigreenl
I have the same issue. This is my error:

Fatal error: Call to a member function query() on a non-object in /home1/squidy85/public_html/updates/concrete5.6.3.4/concrete/core/models/package.php on line 66

My site.php file seems to be set correctly. Could it be something else? Or could you help me look at my config/site.php file to see if there is something wrong I'm not seeing please?
andrewjaff replied on at Permalink Reply
andrewjaff
Please inbox me.