Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Site showing white screen – theme error

  • Hi guys
    I’m getting a whitescreen on site details below
    My host has sent me a screenshot of what error is showing up
    Can you please direct me on what to do?

    Thanks so much for your help.

    Cheers Jodie

  • Hi guys

    Further to this I have created a staging site to see what changes I’d made recently may have caused the issue. I rolled back my website to a previous version without those changes and everything was functioning normally.

    I have identified what broke the site. I moved a Generate Press Blocks element that was a hook attached to the WPHead and displayed across the entire site to the trash. And that’s what causes the white screen.

    Can you help me fix this please?

    Here is the code snippet

    “<script type=”text/javascript”>!function(e,t){(e=t.createElement(“script”)).src=”https://cdn.convertbox.com/convertbox/js/embed.js&#8221;,e.id=”app-convertbox-script”,e.async=true,e.dataset.uuid=”e764b433-e368-4a32-9296-7e5447bbcd75″,document.getElementsByTagName(“head”)[0].appendChild(e)}(window,document);</script>”

    Cheers Jodie

  • Hi there,

    what happens if you use a Hook Element ( not a Block Element ) to add that code ?

  • Hi David

    Thanks so much for getting back to me.

    I don’t want this code on my site anymore. Sorry it is a Hook Element already not a Block.
    When I tried to remove that Hook element and send it to Trash, it broke the site.
    I’m trying to work out how I can remove that hook element without causing the dreaded white screen!

    Cheers Jodie

  • Oh, thats weird moving it to trash shouldn’t break anything.
    Are there any of hook elements ?

  • Hi David

    I’ve shared a screen cast video with you below.

    Cheers Jodie

  • Hi Jodie,

    Is there any other code, section, or stuff on your site dependent on that code?

    Can you try using the Parent theme, before putting that Hook Element to thrash to see if the same thing would happen? If you have a staging site, it would be better to test there instead.

  • Thanks very much for your reply Fernando.

    I’m still investigating whether ther is something that’s not been found yet dependant on that code.

    I will do as you suggest re the Themes and see how I go.

    Cheers Jodie

  • Hi Fernando

    So I tested on the staging site if the same issue persists when changing over to the Parent Theme and it does.

    There is nothing else on the site that is using this code.
    I’ve added another screenshare video for you to see what I did.

    What else can I try?

    Cheers Jodie

  • That’s really odd.

    Can you share admin login credentials to this Staging site?

  • Yes of course details below

    Thanks so much Fernando.

  • So the issue is with the scripts in the Google Analytics Element.
    It has several <script> tags some of which are not closed ie. they are missing their </script> .
    And this results in a broken < tag. Which the browser tries to repair and fails miserably resulting in a broken site.

    The convert kit script in the other element was inadvertently closing the last script tag, so the error went unnoticed until that element was removed.

    I added the missing closing tags in the Google Analytics Element, and the staging site is now good.
    You can compare it to your live site to see what i did

  • YOU ARE A CHAMPION!! Thanks so much David. Thank goodness you found the issue.
    I will take a look at what you have done so I can understand.

    Thanks again David, I really appreciate all you guys do.

    Cheers Jodie

  • You’re very welcome – glad to be of help!

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.