Fatal Error

Permalink
When I try to access my site:

http://www.woodstock-manor.com/Tosspot/...

This is what shows up:

Fatal error: Call to a member function getBlockTypeHandle() on a non-object in /hermes/bosweb/web099/b992/nf.woodstock-manor/public_html/woodstock-manor.com/Tosspot/concrete/libraries/block_view_template.php on line 41

I've only edited content inside of blocks and have not gone into much else. What do you think happened or better yet, how can I fix it?

 
andrewsturm replied on at Permalink Reply
Have you had a look at the file itself? The function it's calling is:
public function __construct($obj) {
   $this->btHandle = $obj->getBlockTypeHandle();
   $this->obj = $obj;
   if ($obj instanceof Block) {
      $this->bFilename = $obj->getBlockFilename();
   }
   $this->computeView();
}


Are you using the default blocks that come with concrete5 or is this a custom block / marketplace add-on? If so you will need to contact the developer of the block for real help.

Is there any other information you can provide? What type of block is it?
Tosspot replied on at Permalink Reply
Thanks for the quick reply. I'm not sure what block it is as that is what it shows when I try to access my site so I can't get in an edit it.
andrewsturm replied on at Permalink Best Answer Reply
You'll be able to get to your site by trying to login:
http://www.woodstock-manor.com/Tosspot/index.php/login...

If you are redirected to the home page after login and it's still crashing, go here to see the site map:

http://www.woodstock-manor.com/Tosspot/index.php/dashboard/sitemap/...

Generally you need to get to your Sitemap. From there you can find the last page you've edited which is probably your homepage.

Click on it and then click "Versions" from the pop up menu.

Roll back a version by checking the second to last version and clicking approve.

After that visit the page and see if it works.
Tosspot replied on at Permalink Reply
I'm thinking it must be theme related as when I switch themes the site works. Not sure what happened, but I was using Greek Yogurt and now I can not find it...
theotty replied on at Permalink Reply
theotty
I had the exact same error after editing a page. The solution for me has been quite simple, if not obvious from the start :) :
I just cleared the whole cache in the system-settings of C5. That was it, now all works like a charm.

Cheers