Need help, edit mode shows no content

Permalink 1 user found helpful
I'm pretty desperate, so I appreciate all the help you can offer! I can't edit pages anymore on my biggest website. On every page of my website, if I click edit, I get an almost blank page. See the attachments for an example. You can see some background, but the content doesn't appear somehow. I think it has something to do with an update gone wrong.

I've tried rolling back to an older version. That didn't work (though I'm not an expert so I could've done something wrong)

I restored my database to the earliest backup that I have, but that didn't work.

I cleared the cache, that didn't work.

I use Chrome, Firefox didn't work either

I get a server status 500.

I tried using a different theme, that didn't work either. Just to check if I didn't mess up any header files.

Looking at the page source and comparing it to one of my websites that is working (same version 5.7.5.13 and same server) I see that some things aren't loading from the update, that are loading on the working website.

<link href="/updates/concrete5.7.5.13_remote_updater/concrete/css/font-awesome.css" rel="stylesheet" type="text/css" media="all">
<script type="text/javascript" src="/updates/concrete5.7.5.13_remote_updater/concrete/js/jquery.js"></script>
<!--[if lt IE 9]><script type="text/javascript" src="/updates/concrete5.7.5.13_remote_updater/concrete/js/ie/html5-shiv.js"></script><![endif]-->
<!--[if lt IE 9]><script type="text/javascript" src="/updates/concrete5.7.5.13_remote_updater/concrete/js/ie/respond.js"></script><![endif]-->
<link href="/application/files/cache/css/fc3fb33875204bd997924b1f4d0627233dcdc67d.css" rel="stylesheet" type="text/css" media="all" data-source="/updates/concrete5.7.5.13_remote_updater/concrete/css/account.css /updates/concrete5.7.5.13_remote_updater/concrete/css/app.css /updates/concrete5.7.5.13_remote_updater/concrete/css/jquery-ui.css /updates/concrete5.7.5.13_remote_updater/concrete/blocks/autonav/templates/responsive_header_navigation/view.css /packages/ig_spacer/blocks/ig_spacer/view.css">

This part is missing from the head, from the website that isn't working.

Everything else loads, for example, theme css, tracking code and even this piece:
<header>
    <div class="container">
        <div class="row">
            <div class="col-sm-4 col-xs-6">

which comes from the header.php file. After this there's nothing. This is where the content is missing.

How can I solve this?

1 Attachment

 
hutman replied on at Permalink Best Answer Reply
hutman
You say that you get a server status 500, what do your server's PHP Error logs say is causing that error?

The front end of your site looks to be working fine so it's really hard to say what might be happening here without being able to login.
MeisterCoach replied on at Permalink Reply
Thanks Hutman! I didn't know there was a php erro log. I spotted the error and deleted the source of the problem. Now everything works again.

I was messing around, trying to create a custom block from the form block. I never used it, but apparently it still messed up everything. A little weird...

But, problem solved! However... More things got messed up when I updated to a newer version. Now I see there's another custom block creating problems. This worked perfectly, but failed after I updated to a newer version. Now I get this error in the php error log:

Call to undefined method Application\Block\SocialBlog\Controller::getDefaultIndexedSearchTable() in /home/mikehoff/public_html/updates/concrete5.7.5.13_remote_updater/concrete/src/Attribute/Key/Key.php on line 32


But how can updates mess up a custom block in the application/block folder? Isn't the whole point of creating a custom block in this way, that updates won't break them?
hutman replied on at Permalink Reply
hutman
It looks like the function getDefaultIndexedSearchTable() doesn't exist in Application\Block\SocialBlog\Controller. I'm guessing this function was previously inherited somehow, but now it's not anymore.

Is this by chance something you overrode from ProBlog? If so I would recommend updating to the most recent version and see if that fixes it.
MeisterCoach replied on at Permalink Reply
I don't use ProBlog, so no...

Do you know how to fix this?
hutman replied on at Permalink Reply
hutman
Not without access to the code in your custom block that is throwing this error, can you post that?
MeisterCoach replied on at Permalink Reply
We're lucky to have you Hutman! I saw some of your responses on other questions, you're a real lifesaver.

I changed the custom block to a custom template. It was a minor change to the view.php file, so now I don't have to worry about updates changing functions anymore (I hope anyways, you never know!).

Thanks again, you taught me a lot!