-
jodiemorgan
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
-
jodiemorgan
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”,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 ?
-
jodiemorgan
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 ? -
jodiemorgan
Hi David
I’ve shared a screen cast video with you below.
Cheers Jodie
-
Fernando
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.
-
jodiemorgan
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
-
jodiemorgan
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
-
Fernando
That’s really odd.
Can you share admin login credentials to this Staging site?
-
jodiemorgan
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 -
jodiemorgan
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!
- You must be logged in to reply to this topic.