Site logo

[Resolved] PHP8 forced update breaks website Generate Block plugin causes it to crash

Home Forums Support [Resolved] PHP8 forced update breaks website Generate Block plugin causes it to crash

Home Forums Support PHP8 forced update breaks website Generate Block plugin causes it to crash

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2419421
    Alexander

    Hi Support,

    My hosting company is forcing me to upgrade to PHP8. They did so last night, after which my site broke. I’ve updated all plugins, themes and GP premium, but it is pretty clear that GenerateBlocks is causing my site to crash, because when I disable the plugin my site loads and shows things (the layout is just completely messed up because of the blocks plugin not working :/).

    Is it possible to make GenerateBlocks PHP8 compatible? Or some other solution that prevents me from having to rebuild my website completely. I’ve included the error log I can extract through my hosting company in the private information to review.

    Kind regards,
    AJ

    #2419555
    David
    Staff
    Customer Support

    Hi there,

    do you have any Block Element Templates ?
    If so – does the error pass if you temporarily disable the Element module ?

    #2419675
    Alexander

    I have one hook element active, but it does not seem to matter if I delete that, I still get an error trying to view the page.

    #2420009
    David
    Staff
    Customer Support

    Could we get an admin login to the site ?

    #2420155
    Alexander

    See private information tab. Let me know if that works.

    #2420267
    Jean Paiva
    Developer

    Hello Alexander, I could not replicate this problem in my local environment, but I logged in to your site and went to GenerateBlocks > Settings, and regenerated the CSS files and it fixed the issue. Although, I think it does not fixes the real problem which is the WP filesystem not being able to connect to the FTP server. We will look to improve our code to avoid giving users critical errors.

    If the problem shows up again you could change the CSS Print Method to “Inline embedding”, or regenerate the CSS.

    I’ve also opened a GitHub issue to improve our code and prevent broken websites in cases similar to yours.
    https://github.com/tomusborne/generateblocks/issues/773

    #2420348
    Alexander

    Super. Thanks guys, highly appreciated for the quick turnaround and fix (especially since I’ve got a discount promotion scheduled next week and it would have totally sucked if my website had not been working O.o). Thanks again!

    #2420385
    Jean Paiva
    Developer

    Glad to help Alexander, you can always count on us!

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