Fatal PHP error
Permalink
Hi, I am new to Concrete5 and am trying to set up a "development" site so that I can try stuff before implementing it on a live site.
I keep getting the following error on many different pages:
Fatal error: Call to a member function GetRow() on a non-object in /home/advancew/public_html/conctest/concrete/models/user.php on line 77
however if I refresh the page it works OK. I have not modified any of the files and have tried two different themes.
Can anyone help?
I keep getting the following error on many different pages:
Fatal error: Call to a member function GetRow() on a non-object in /home/advancew/public_html/conctest/concrete/models/user.php on line 77
however if I refresh the page it works OK. I have not modified any of the files and have tried two different themes.
Can anyone help?
Install checklist was all OK. Baffling thing is that it works 80-90% of the time and when I refresh the page after the error it works.
Ok, I looked up GetRow() in the concrete5.org sitewide search and it seems that function has something to do with MySQL. I only saw error messages that had to do with switching a database from a windows computer to a linux computer, but maybe that'll give you a (slight) idea where to look for your problem. If I were you I would delete everything and start from scratch, with only the core files (no extra blocks or anything), and then keep track of what you do until (if) the error shows up again. You mentioned lots of pages, so either you have installed the default content, or you have your own stuff in there. If you switched from a windows computer to a *nix computer (or vice versa, I'm assuming), and you imported a database from another install, you'll have troubles with the tables being in the wrong case. There are some other threads in this forum that will fix those issues.
Also, I would definitely delete the cache and disable it for the dev environment. Cache is in sitewide settings, I think.
I am still learning about MySQL and PHP but I hope that helped! :-)
Also, I would definitely delete the cache and disable it for the dev environment. Cache is in sitewide settings, I think.
I am still learning about MySQL and PHP but I hope that helped! :-)
I'm using MAMP (for a mac) and it turned out well. Maybe you could try a different LAMP auto install program and see if that works.