Archived topic
Customizer crashes whenever any Premium options are checked
11 replies · Started by Joseph on January 16, 2019
I had this problem before, which somehow resolved when I unchecked all of the options and then just reactivated them.
Options = Colors, copyright, Elements, etc.
This time, it will not reset, and will crash anytime at least one GP option is activated.
This was my previous problem:
Before it would only crash if I tried to do something in the customize tab. Now, it crashes a moment after loading the tab.
It just sends me back to the website. The website still works. Cache, browser all cleared. I disabled all plugins, customize works. I activate JUST GP premium. It crashes again.
I removed all CSS and it still crashes.
Since this is the second time on the same install, I'm getting kind of leery of why it is happening. Is there a way to "reinstall" everything but keep all settings? I am using the Pivot gallery site.
Hi there,
That's weird. Any custom functions etc?
So the customizer works fine if GP premium is deactivated?
What would a custom function be?
Yes if GP premium is deactivated, works fine. Also, if I disable all GP Premium modules, but leave GP Premium plugin active, it works fine. As soon as I activate any GP Premium module, any of them, Customizer crashes.
When you say it crashes, are you getting a white screen?
Can you check if it's this issue?
https://docs.generatepress.com/article/increasing-php-memory-limit/
No, it'll just refresh and it'll be the normal site, no more Wp Dashboard/customer etc.
I've done that config edit already the previous time.
No, it’ll just refresh and it’ll be the normal site, no more Wp Dashboard/customer etc.
Any chance you can show us a screenshot/video of what you mean? I can't really picture it.
Let me know :)
Ok I'm about to board a flight home and will do so. But in the end, I'm just going to delete and reinstall. I've saved all my CSS etc. and see if that fixes it.
I want to do this before really digging in.
Sounds good - we'll figure out what's going on :)
Okay. I was able to track it down to one element. My chat code which is:
<script src="//www.apex.live/scripts/invitation.ashx?company=severeaccidents"async></script>
Any idea why that would crash the Customizer? It's been on my site since the very beginning, and sometimes it crashes, and sometimes it doesn't. Right now it is crashing.
Can I put the code somewhere else not in elements? Modify one of the templates (but then have to modify every time it updates).
That script is in Elements? If so, maybe try this:
<?php if ( ! is_customize_preview() ) : ?>
<script src="//www.apex.live/scripts/invitation.ashx?company=severeaccidents"async></script>
<?php endif; ?>
Then make sure you check the "Execute PHP" checkbox.
That should prevent it from loading within the Customizer?
Boom! It worked :D
Awesome :)