[Resolved] Customizer crashes whenever any Premium options are checked

Home Forums Support [Resolved] Customizer crashes whenever any Premium options are checked

Home Forums Support Customizer crashes whenever any Premium options are checked

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #783800
    Joseph

    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:

    https://generatepress.com/forums/topic/installed-ssl-now-customize-theme-in-dashboard-keeps-crashing/

    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.

    #783849
    Leo
    Staff
    Customer Support

    Hi there,

    That’s weird. Any custom functions etc?

    So the customizer works fine if GP premium is deactivated?

    #803258
    Joseph

    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.

    #803308
    Leo
    Staff
    Customer Support

    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/

    #807100
    Joseph

    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.

    #807441
    Tom
    Lead Developer
    Lead Developer

    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 ๐Ÿ™‚

    #808798
    Joseph

    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.

    #808834
    Tom
    Lead Developer
    Lead Developer

    Sounds good – we’ll figure out what’s going on ๐Ÿ™‚

    #813856
    Joseph

    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).

    #814077
    Tom
    Lead Developer
    Lead Developer

    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?

    #815922
    Joseph

    Boom! It worked ๐Ÿ˜€

    #816049
    Tom
    Lead Developer
    Lead Developer

    Awesome ๐Ÿ™‚

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