• Resolved mlieb42

    (@mlieb42)


    Hello, unfortunately I get an error when I press Save & Optimize.

    I get then from wordpress the page with the Critical Error displayed.If I go back I see the spinning circle, but nothing happens anymore.

    I use WordPress 6.1.1 and PHP 7 and I use the OMGF plugin 5.5.2.

    Many greetings
    Matthias

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    hi!

    would you mind sharing the error? Usually it’s sent to you by email or, even debug mode is enabled, it’s shown on screen.

    Thread Starter mlieb42

    (@mlieb42)

    Hi Daan,
    thank you for your fast response!

    I just enabled logging so I get an appropriate error message:

    Parse error: syntax error, unexpected ')' in?/var/www/wordpress/wp-content/plugins/host-webfonts-local/includes/optimize/class-run.php?on line?142

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Hi!

    Would you mind trying this beta? This should fix it: https://filetransfer.io/data-package/9DzRTUoo#link

    Thread Starter mlieb42

    (@mlieb42)

    Hi Daan,
    thank for the beta version!
    I have just installed and tested the new version.

    The critical error no longer appears, but an error message is now generated in the plugin:


    OMGF encountered an error while fetching this site’s frontend HTML: http_request_failed – cURL error 60: SSL certificate problem: certificate has expired

    It is a Letsencrypt certificate with a validity until March.

    Any ideas?

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Well, it says: “certificate has expired”, so I’d suggest you look into that. Is the certificate you mentioned actually used? Might be that another certificate is in use, which wasn’t timely renewed, maybe?

    Thread Starter mlieb42

    (@mlieb42)

    Thanks for the great support!
    In my case, the reason for the expired certificate was that an outdated Trust Store (DST Root CA X3) was stored.
    After updating certbot and:

    certbot certonly --standalone --preferred-chain "ISRG Root X1" -d DOMAIN

    helped.

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Thanks for sharing your solution!

    If someone needs a quick fix for this:

    Parse error: syntax error, unexpected ')' in?/var/www/wordpress/wp-content/plugins/host-webfonts-local/includes/optimize/class-run.php?on line?142

    You just need to remove the “,” at the end of line 141.

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Yes, exactly. That’s the change made in the beta linked to above. Let me see if I can release it as a stable now.

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Done. Just released 5.5.3 which includes the fix.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘critical error message after pressing save / optimize’ is closed to new replies.