• Resolved dragon013

    (@dragon013)


    Hello,

    I just installed version 5.0.3 and with that, the dashboard stops working properly (wordpress version is 6.2). The graphs of slimstat are not shown, also other graphs of other plugins are not showing up when slimstat enabled.
    The menu of wordpress in the upper right corner where you choose which boxes are to be shown does not open anymore and also no icons react on any clicks.
    I am getting this error when Slimstats enabled and loading the dashboard:

    PHP Warning Undefined array key "v3" in /<path to wp>/wp-content/plugins/wp-slimstat/admin/view/wp-slimstat-reports.php on line 1250
    
    PHP Fatal error Uncaught TypeError: implode(): Argument #1 ($pieces) must be of type array, string given in /<path to wp>/wp-content/plugins/wp-slimstat/admin/view/wp-slimstat-reports.php:1250
    
    Stack trace:
    
    #0 /<path to wp>/wp-content/plugins/wp-slimstat/admin/view/wp-slimstat-reports.php(1250): implode(',', NULL)
    #1 /<path to wp>/wp-content/plugins/wp-slimstat/admin/view/wp-slimstat-reports.php(956): wp_slimstat_reports::show_chart(Array)
    #2 /<path to wp>/wp-admin/includes/template.php(1445): wp_slimstat_reports::callback_wrapper('', Array)
    #3 /<path to wp>/wp-admin/includes/dashboard.php(277): do_meta_boxes(Object(WP_Screen), 'column3', '')
    #4 /<path to wp>/wp-admin/index.php(203): wp_dashboard()
    #5 {main}
    thrown in /<path to wp>/wp-content/plugins/wp-slimstat/admin/view/wp-slimstat-reports.php on line 1250

    Any help appreciated!

    Edit: I found the reason for this error. In the settings, 3rd tab (the one for the reports), 2nd value I had 30 days instead of 28. When I switch to 28 days the dashboard and all graphs are loaded correctly. When putting in 30, the graphs and dashboard is broken. Maybe this helps for fixing the error.

    • This topic was modified 2 years, 1 month ago by dragon013.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter dragon013

    (@dragon013)

    The value for the cron job which deletes data was set to 28 days. The one for display to 30 – that was the problem: less data there than display needed. There should be a check to prevent those values being not compatible to each other.

    • This reply was modified 2 years, 1 month ago by dragon013.
    Plugin Author Mostafa Soufi

    (@mostafas1990)

    Hey,

    Sorry for late reply, just wanted to note that this issue is fixed on v5.0.4.

    Thread Starter dragon013

    (@dragon013)

    Hello,

    just installed 5.0.4 and tested – all seems fine now. Thanks!

    Plugin Author Mostafa Soufi

    (@mostafas1990)

    Good to hear!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Dashboard stops working when Slimstat is enabled’ is closed to new replies.