podlove / podlove-publisher

Podlove Podcast Publisher for WordPress
https://wordpress.org/plugins/podlove-podcasting-plugin-for-wordpress/
MIT License
296 stars 82 forks source link

Analytics Episode Details: Graphs not showing up #1407

Open kl1lercher opened 10 months ago

kl1lercher commented 10 months ago

Expected behavior

Episode Details in Analytics used to show bars and filtering was available by clicking on different properties

Actual behavior

Analytics Episode Details not showing up after i've updated to 4.x. Analytics Overview, the startpage, is showing data. To be fair, i recently reactivated analytics after it was disabled for years.

Episode Details not displaying charts

Analytics Overview is working as expected

System information (see Podlove > Support menu)

Website https://techtelmechtel-podcast.at PHP Version 8.1.25 WordPress Version 6.4.1 WordPress Theme Twenty Nineteen v2.7 Active Plugins

0 errors 0 notices Nice, Everything looks fine!

eteubert commented 10 months ago

Thanks for the report! Fixed in next release.

kl1lercher commented 10 months ago

Hate to do this, but graphs are unfortunately still not showing up. Console just showing a Server Error 500 for i guess the necessary component

Screenshot 2023-11-21 at 08 49 17
eteubert commented 10 months ago

@kl1lercher can you check your PHP error log? The 500 response means the PHP script fails for some reason.

You may need to enable debug logging first, see https://wordpress.org/documentation/article/debugging-in-wordpress/

kl1lercher commented 10 months ago

here you go

`[21-Nov-2023 10:45:29 UTC] PHP Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /usr/www/users/xxx/yyy/wp-includes/functions.php on line 7241 [21-Nov-2023 10:45:29 UTC] PHP Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /usr/www/users/xxx/yyy/wp-includes/functions.php on line 2187 [21-Nov-2023 10:45:31 UTC] PHP Fatal error: Uncaught DivisionByZeroError: Division by zero in /usr/www/users/xxx/yyy/wp-content/plugins/podlove-podcasting-plugin-for-wordpress/lib/ajax/ajax.php:229 Stack trace:

0 [internal function]: Podlove\AJAX\Ajax->Podlove\AJAX{closure}()

1 /usr/www/users/xxx/yyy/wp-content/plugins/podlove-podcasting-plugin-for-wordpress/lib/ajax/ajax.php(230): array_map()

2 /usr/www/users/xxx/yyy/wp-includes/class-wp-hook.php(324): Podlove\AJAX\Ajax->analytics_episode_average_downloads_per_hour()

3 /usr/www/users/xxx/yyy/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()

4 /usr/www/users/xxx/yyy/wp-includes/plugin.php(517): WP_Hook->do_action()

5 /usr/www/users/xxx/yyy/wp-admin/admin-ajax.php(188): do_action()

6 {main}

thrown in /usr/www/users/xxx/yyy/wp-content/plugins/podlove-podcasting-plugin-for-wordpress/lib/ajax/ajax.php on line 229`

eteubert commented 9 months ago

Well dividing by zero is tough 😬

PHP Fatal error: Uncaught DivisionByZeroError: Division by zero in [...]/podlove-podcasting-plugin-for-wordpress/lib/ajax/ajax.php:229

Should be an easy fix, thanks for looking up the error!