Fatal error: Call to a member function get() on a non-object
Posted: Fri Jan 13, 2017 3:00 am
Hello,
I've been searching for a long time and can't find a solution to my problem, it is causing some serious issues as we have orders which have been placed, but we cannot access our site to fulfill them so we are very concerned!
I am using opencart-2.0.1.1
Our website has been running fine for a couple of years with no problems after setting it up. We have made no changes recently and suddenly a few days ago have started receiving an error message when trying to log into our admin back end. The error reads:
Fatal error: Call to a member function get() on a non-object in /var/sites/p/paper-jungle.co.uk/public_html/admin/index.php on line 83
Line 83 of index.php reads:
I have checked my config.php and it appears to be in order and hasn't been changed anyway. I found a suggestion to check session.php and config.php under the system/library directory of my store, I tried changing the permissions to both files to see if increasing the permissions would help, no luck. I also tried re-uploading the entire library directory from a local folder, no luck.
The only progress I have had so far was following a suggestion to change the code in my session.php file from:
To
This made the error message disappear on the login page, however, it didn't actually fix the problem, the page just continues to refresh upon entering our credentials.
Please if anyone could shed any light on this it would be a real help!
I've been searching for a long time and can't find a solution to my problem, it is causing some serious issues as we have orders which have been placed, but we cannot access our site to fulfill them so we are very concerned!
I am using opencart-2.0.1.1
Our website has been running fine for a couple of years with no problems after setting it up. We have made no changes recently and suddenly a few days ago have started receiving an error message when trying to log into our admin back end. The error reads:
Fatal error: Call to a member function get() on a non-object in /var/sites/p/paper-jungle.co.uk/public_html/admin/index.php on line 83
Line 83 of index.php reads:
Code: Select all
if ($config->get('config_error_display')) {
echo '<b>' . $error . '</b>: ' . $errstr . ' in <b>' . $errfile . '</b> on line <b>' . $errline . '</b>';
The only progress I have had so far was following a suggestion to change the code in my session.php file from:
Code: Select all
session_start();
Code: Select all
session_save_path(realpath(dirname($_SERVER['DOCUMENT_ROOT']) . '/../tmp'));
Please if anyone could shed any light on this it would be a real help!