Help! Home shows an error and no longer loads. 'Call to a member function setBlockObject() on null'
Permalink
Hello, I was editing a container layout on the Home page, but when I was finished and clicked 'save' on the layout toolbar, something broke. I get the following error when trying to load the page:
An unexpected error occurred.
Call to a member function setBlockObject() on null
I tried approving an earlier version, deleting the version that broke it, changing page layouts, and clearing cache but nothing has worked so far.
Any ideas? Thanks in advance.
An unexpected error occurred.
Call to a member function setBlockObject() on null
I tried approving an earlier version, deleting the version that broke it, changing page layouts, and clearing cache but nothing has worked so far.
Any ideas? Thanks in advance.
Hi,
what version of Concrete5 are you using?
If 5.7 are you able to turn debug on in the dashboard to get a better error message?
This should give more of a clue as to where the issue is.
what version of Concrete5 are you using?
If 5.7 are you able to turn debug on in the dashboard to get a better error message?
This should give more of a clue as to where the issue is.
Using 5.7.5.4. It gives me the same error with debug on in addition to the current c5 config.
Whoops\Exception\ErrorException thrown with message "Call to a member function setBlockObject() on null"
Stacktrace:
#0 in /www/html/concrete/blocks/core_area_layout/controller.php:64
I also just tried to update to the newest version (5.7.5.6) and got another error 'Call to a member function getVersion() on null'- related maybe?
Whoops\Exception\ErrorException thrown with message "Call to a member function setBlockObject() on null"
Stacktrace:
#0 in /www/html/concrete/blocks/core_area_layout/controller.php:64
I also just tried to update to the newest version (5.7.5.6) and got another error 'Call to a member function getVersion() on null'- related maybe?
same problem. How can I fix?
I have restored a previous version of the page and now it works
Glad you got it figured out. I ended up having to reinstall c5 and
recovering my site from a backup.
recovering my site from a backup.
Thanks!