• Resolved Rhand

    (@rhand)


    https://ww.wp.xz.cn/support/topic/error-php-8-1/ I read and now on our site we get some similar error though we have the latest OMGF Pro , emptied Redis Object Cache, WP Rocket Cache, use PHP 8.0.

    Every time I open an Oxygen Builder page I get a white screen of death and error 500 and in logs we see this:

    [Wed Jan 25 05:10:51.077635 2023] [lsapi:warn] [pid 3123358:tid 139916965025536] [client 195.191.219.130:34012] [host site.com] Backend log: view\n
    [Wed Jan 25 05:10:51.087654 2023] [lsapi:warn] [pid 3123358:tid 139916965025536] [client 195.191.219.130:34012] [host site.com] Backend log: view\n
    [Wed Jan 25 05:10:51.099148 2023] [lsapi:warn] [pid 3123358:tid 139916965025536] [client 195.191.219.130:34012] [host site.com] Backend log: view\n
    [Wed Jan 25 05:10:51.175656 2023] [lsapi:error] [pid 3123358:tid 139916965025536] [client 195.191.219.130:34012] [host site.com] Backend fatal error: 
    PHP Fatal error:  Uncaught Error: Undefined constant "OMGF_FONT_PROCESSING" in 
    /home/deb102xxxxx/domains/site.com/public_html/wp-content/plugins/host-google-fonts-pro/includes/frontend/class-optimize.php:228\nStack 
    trace:\n#0 /home/deb102xxxxx/domains/site.com/public_html/wp-content/plugins/host-google-fonts-pro/includes/frontend/class-optimize.php(218): 
    OmgfPro_Frontend_Optimize->optimize()\n#1 [internal function]: OmgfPro_Frontend_Optimize->init()\n#2 
    /home/deb10xxxxx/domains/site.com/public_html/wp-includes/functions.php(5279): ob_end_flush()\n#3 
    /home/deb102xxxxx/domains/site.com/public_html/wp-includes/class-wp-hook.php(308): wp_ob_end_flush_all()\n#4 
    /home/deb102xxxxx/domains/site.com/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()\n#5 
    /home/deb102xxxxx/domains/site.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()\n#6 
    /home/deb102xxxxx/domains/site.com/public_html/wp-includes/load.php(1124): do_action()\n#7 
    [internal function]: shutdown_action_hook()\n#8 {main}\n  thrown in 
    /home/deb102xxxxx/domains/site.com/public_html/wp-content/plugins/host-google-fonts-pro/includes/frontend/class-optimize.php on line 228\n
    • This topic was modified 3 years, 4 months ago by Rhand.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Rhand

    (@rhand)

    Does seem to be OMGF causing the issue. Again on loading page in Oxygen edit mode I get these

    [Wed Jan 25 05:45:18.001327 2023] [lsapi:error] [pid 102467:tid 139917828949760] [client 2404:8000:1001:5cc:4884:f4:d012:bab:56461] [host site.com] Backend fatal error: PHP Fatal error:  
    Uncaught Error: Undefined constant "OMGF_FONT_PROCESSING" in /home/deb102xxxxx/domains/site.com/public_html/wp-content/plugins/host-google-fonts-pro/includes/frontend/class-optimize.php:228\nStack trace:
    \n#0 /home/deb102xxxxx/domains/site.com/public_html/wp-content/plugins/host-google-fonts-pro/includes/frontend/class-optimize.php(218): OmgfPro_Frontend_Optimize->optimize()
    \n#1 [internal function]: OmgfPro_Frontend_Optimize->init()\n#2 /home/deb102xxxxx/domains/site.com/public_html/wp-includes/functions.php(5279): ob_end_flush()
    \n#3 /home/deb102xxxxx/domains/site.com/public_html/wp-includes/class-wp-hook.php(308): wp_ob_end_flush_all()
    \n#4 /home/deb102xxxxx/domains/site.com/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    \n#5 /home/deb102xxxxx/domains/site.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    \n#6 /home/deb102xxxxx/domains/site.com/public_html/wp-includes/load.php(1124): do_action()
    \n#7 [internal function]: shutdown_action_hook()\n#8 {main}\n  thrown in 
    /home/deb102xxxxx/domains/site.com/public_html/wp-content/plugins/host-google-fonts-pro/includes/frontend/class-optimize.php on line 228\n, referer: https://site.com/wp-admin/edit.php?post_type=page

    Also tested with Pro off now and with the Pro version deactivated Oxygen Builder can edit the page. OMGF basic or free version can be used without issues.

    • This reply was modified 3 years, 4 months ago by Rhand.
    • This reply was modified 3 years, 4 months ago by Rhand.
    Plugin Author Daan van den Bergh

    (@daanvandenbergh)

    Hi!

    This version is for support for the free version only. But to answer your question: I think you’re running an outdated version of OMGF Pro. It can’t find the OMGF_FONT_PROCESSING constant, which doesn’t exist anymore in recent version of OMGF. Apparently, your version of OMGF Pro is still trying to use this constant.

    Update OMGF Pro to v3.7.3, and that should resolve your issue 🙂

    Thread Starter Rhand

    (@rhand)

    Just realized the license has expired so asked client to update it at https://daan.dev/account/ . The correct license key with beautiful checkmark initially threw me off. Thought all was good. Then I checked expiry data and thought end this month.. but was end of January last year.

    Plugin Author Daan van den Bergh

    (@daanvandenbergh)

    Well, there you go 🙂

    Let me know if you need anything else (and remember, help for Pro-users can be found here: https://daan.dev/contact/ — response times are much quicker there, too)

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Uncaught Error: Undefined constant “OMGF_FONT_PROCESSING”’ is closed to new replies.