Open-Web-Analytics / owa-wordpress-plugin

The official integration plugin for adding Open Web Analytics tracking to WordPress websites and applications.
GNU General Public License v2.0
12 stars 9 forks source link

"The site is experiencing technical difficulties." anter enabling owa plugin. #2

Open mehdiMj-ir opened 2 years ago

mehdiMj-ir commented 2 years ago

Describe the bug you encountered:

"The site is experiencing technical difficulties. Please check your site admin email inbox for instructions." And HTTP 500 error form this plugin on browser console log.

How did you install owa-wordpress-plugin?

From WordPress plugin installer.

Tracking Issue I enabled WordPress debug display true in wp-config.php and here is an error.

Deprecated: Required parameter $options follows optional parameter $params in /var/www/*****/wp-content/plugins/open-web-analytics/src/settings/field.php on line 31

Apache Error Log [Fri Nov 19 00:58:26.100451 2021] [proxy_fcgi:error] [pid 764303:tid 140290527495936] [client ***.***.***.***:11334] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to a member function createSites() on string in /var/www/*****/wp-content/plugins/open-web-analytics/owa-plugin.php:1191\nStack trace:\n#0 /var/www/*****/wp-includes/class-wp-hook.php(303): owaWp_plugin->getSitesFromOwa()\n#1 /var/www/*****/wp-includes/plugin.php(189): WP_Hook->apply_filters()\n#2 /var/www/*****/wp-content/plugins/open-web-analytics/src/settings/fields/select.php(19): apply_filters()\n#3 /var/www/*****/wp-admin/includes/template.php(1743): owaWp\\settings\\fields\\select->render()\n#4 /var/www/*****/wp-content/plugins/open-web-analytics/src/settings/page.php(428): do_settings_fields()\n#5 /var/www/*****/wp-content/plugins/open-web-analytics/src/settings/page.php(289): owaWp\\settings\\page->doTabbedSettingsSections()\n#6 /var/www/*****/wp-includes/class-wp-hook.php(303): owaWp\\settings\\page->renderPage()\n#7 /var/www/*****/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()\n#8 /var/www/*****/wp-includes/plugin.php

More Info I use GNU/Linux Ubuntu 20.04 with Apache/2.4.41, MariaDB/10.5.13 and PHP 8.0.12. The both OWA and WP are on the same VPS.