Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix util class doesn't exist #5

Merged
merged 1 commit into from
Sep 11, 2022
Merged

Conversation

Nopraz
Copy link
Contributor

@Nopraz Nopraz commented Mar 19, 2022

Was using the extension on PHP 7.3 and found out this error when specifying a bad URL :
Fatal error: Uncaught Error: Class 'owaWp\settings\fields\util' not found in /var/www/html/wordpress/wp-content/plugins/open-web-analytics/src/settings/fields/url.php:67 Stack trace: #0 /var/www/html/wordpress/wp-content/plugins/open-web-analytics/src/settings/page.php(138): owaWp\settings\fields\url->isValid('') #1 /var/www/html/wordpress/wp-includes/class-wp-hook.php(309): owaWp\settings\page->validateAndSanitize(Array) #2 /var/www/html/wordpress/wp-includes/plugin.php(189): WP_Hook->apply_filters(Array, Array) #3 /var/www/html/wordpress/wp-includes/formatting.php(4976): apply_filters('sanitize_option...', Array, 'owa_wp', Array) #4 /var/www/html/wordpress/wp-includes/option.php(421): sanitize_option('owa_wp', Array) #5 /var/www/html/wordpress/wp-admin/options.php(322): update_option('owa_wp', Array) #6 {main} thrown in /var/www/html/wordpress/wp-content/plugins/open-web-analytics/src/settings/fields/url.php on line 67

So here is the fix.

@padams padams merged commit c581922 into Open-Web-Analytics:master Sep 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants