Closed Brain8torm closed 2 years ago
The function is defined right in fields\typography\google-fonts.php
, I think the file itself isn't included for you. Do you maybe have a google-fonts.php
file within your theme?
The error starts with version 4.4.7, previous versions do not have such an error. File fields\typography\google-fonts.php there is, there is no similar file in theme.
@Brain8torm I think that there's an issue including the file google-fonts.php
probably because you've backslash \
as a directory separator, but I'm not sure.
The error was detected on a local server on Windows, where the directory separator is a backslash. There is no such error on linux hosting.
This error exists in Linux hosting too. Seems to have something to do with the ULF::include_plugin_file
function.
Error Details
=============
An error of type E_ERROR was caused in line 389 of the file /public_html/wp-content/plugins/wp-ulike/admin/settings/fields/typography/typography.php. Error message: Uncaught Error: Call to undefined function ulf_get_google_fonts() in /public_html/wp-content/plugins/wp-ulike/admin/settings/fields/typography/typography.php:389
Stack trace:
#0 /public_html/wp-content/plugins/wp-ulike/admin/settings/classes/setup.class.php(611): ULF_Field_typography->enqueue()
#1 /public_html/wp-includes/class-wp-hook.php(303): ULF::add_admin_enqueue_scripts('toplevel_page_x...')
#2 /public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)
#3 /public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
#4 /public_html/wp-admin/admin-header.php(102): do_action('admin_enqueue_s...', 'toplevel_page_x...')
#5 /public_html/wp-admin/admin.php(239): require_once('/home/customer/...')
#6 {main}
thrown
This issue has been fixed inside the new version.
I can't install plugin. On settings pages - error
Fatal error: Uncaught Error: Call to undefined function ulf_get_google_fonts() in \wp-content\plugins\wp-ulike\admin\settings\fields\typography\typography.php:389
WP ULike - 4.5.6 -latest from Wordpress.org Wordpress - 5.8.1