• Resolved Li-An

    (@li-an)


    Hello, I tested your plugin on one of my site and I’ve got this error

    Warning: Array to string conversion in /home/***/wp-content/plugins/host-webfonts-local/includes/frontend/class-functions.php on line 252

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

    (@daanvandenbergh)

    Thanks for notifying me! It’ll be fixed in the next release!

    irishetcher

    (@irishetcher)

    I am seeing this error as well. Initially it was just an error printed to the top of my site. I disabled and then saw the 4.5.17 update and applied this only to have the website a complete error on the front end so disabled again.

    https://www.vaughanprint.com/

    Just seeing the same on other sites on update of OMGF so rolling back to previous versions. Using the Divi Theme on all sites. Could be a conflict with that theme? Here is the error output:

    Fatal error: Uncaught Error: Undefined constant "OMGF_DEBUG_MODE" in /home/customer/www/vaughanprint.com/public_html/wp-content/plugins/host-webfonts-local/includes/class-omgf.php:375 Stack trace: #0 /home/customer/www/vaughanprint.com/public_html/wp-content/plugins/host-webfonts-local/includes/frontend/class-functions.php(248): OMGF::debug('Found 2 stylesh...') #1 /home/customer/www/vaughanprint.com/public_html/wp-content/plugins/host-webfonts-local/includes/frontend/class-functions.php(161): OMGF_Frontend_Functions->detect_registered_stylesheets(Array) #2 /home/customer/www/vaughanprint.com/public_html/wp-includes/class-wp-hook.php(307): OMGF_Frontend_Functions->replace_registered_stylesheets('') #3 /home/customer/www/vaughanprint.com/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #4 /home/customer/www/vaughanprint.com/public_html/wp-includes/plugin.php(474): WP_Hook->do_action(Array) #5 /home/customer/www/vaughanprint.com/public_html/wp-includes/functions.wp-styles.php(57): do_action('wp_print_styles') #6 /home/customer/www/vaughanprint.com/public_html/wp-includes/class-wp-hook.php(307): wp_print_styles(false) #7 /home/customer/www/vaughanprint.com/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #8 /home/customer/www/vaughanprint.com/public_html/wp-includes/plugin.php(474): WP_Hook->do_action(Array) #9 /home/customer/www/vaughanprint.com/public_html/wp-includes/general-template.php(3042): do_action('wp_head') #10 /home/customer/www/vaughanprint.com/public_html/wp-content/themes/Divi/header.php(27): wp_head() #11 /home/customer/www/vaughanprint.com/public_html/wp-includes/template.php(770): require_once('/home/customer/...') #12 /home/customer/www/vaughanprint.com/public_html/wp-includes/template.php(716): load_template('/home/customer/...', true, Array) #13 /home/customer/www/vaughanprint.com/public_html/wp-includes/general-template.php(48): locate_template(Array, true, true, Array) #14 /home/customer/www/vaughanprint.com/public_html/wp-content/themes/Divi/page.php(3): get_header() #15 /home/customer/www/vaughanprint.com/public_html/wp-includes/template-loader.php(106): include('/home/customer/...') #16 /home/customer/www/vaughanprint.com/public_html/wp-blog-header.php(19): require_once('/home/customer/...') #17 /home/customer/www/vaughanprint.com/public_html/index.php(17): require('/home/customer/...') #18 {main} thrown in /home/customer/www/vaughanprint.com/public_html/wp-content/plugins/host-webfonts-local/includes/class-omgf.php on line 375
    There has been a critical error on this website.
    Koen

    (@drhnews)

    Also error after updating:
    Warning: Use of undefined constant OMGF_DEBUG_MODE - assumed 'OMGF_DEBUG_MODE' (this will throw an Error in a future version of PHP) in */wp-content/plugins/host-webfonts-local/includes/class-omgf.php on line 375

    markmapstone

    (@markmapstone)

    I have the same error too:

    ‘Warning: Use of undefined constant OMGF_DEBUG_MODE – assumed ‘OMGF_DEBUG_MODE’ (this will throw an Error in a future version of PHP) in wp-content/plugins/host-webfonts-local/includes/class-omgf.php on line 375

    using the latest version 4.5.17. I’ll disable the plugin for now and try again later ??

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Sorry guys, just released 4.5.18 which fixes the undefined constant error.

    irishetcher

    (@irishetcher)

    Ok, 4.5.18 seems to sort things out as far as I can see. Will go through sites with the update and will report back if there are any issues.

    irishetcher

    (@irishetcher)

    Thanks Dean for the quick response to this issue

    markmapstone

    (@markmapstone)

    Excellent. Thanks ??

    Thread Starter Li-An

    (@li-an)

    Thanks

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    No problem, everyone! If you’d like to return the favor, please write a review! It’d help me out a bunch ??

    Thread Starter Li-An

    (@li-an)

    I will probably write a post about the plugin on my own blog.

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    That’d be awesome! Make sure to let me know, so I can share the post on my own social media!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Error after activation’ is closed to new replies.