• Resolved Edward Stoever

    (@ec1warc1)


    I disabled slimstat because it is causing an error on a webpage that displays a table wpDataTables from a shortcode. It occurs when the user who loads the page is not an admin. The error is:

    [Mon Aug 14 21:19:34.956248 2017] [:error] [pid 6447] [client 181.63.249.241:51472] PHP Fatal error:  Access to undeclared static property: wp_slimstat_db::$hidden_filters in /var/www/html/wordpress/wp-content/plugins/wp-slimstat/admin/view/wp-slimstat-db.php on line 148, referer: http://dash.lol/info/
    
Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Edward Stoever

    (@ec1warc1)

    ok, as a workaround, I commented out that one line of code. I have documented it in case I ever update slimstat. Strange error.
    Here is the line I commented out:
    //self::$hidden_filters[ 'author' ] = 1;

    Thread Starter Edward Stoever

    (@ec1warc1)

    This error occurred when I upgraded from version 4.6.8 to 4.6.9.1. File in question is:
    wp-slimstat/admin/view/wp-slimstat-db.php

    Same here, with only two site ( the other is ok ) do you have user role editor and woocommerce?
    Happen with two user with customized shop manager capability ( and not administrator ).

    Thread Starter Edward Stoever

    (@ec1warc1)

    I don’t have woocommerce and I don’t have role editor. It might be related to the plugin wpDataTables, which on the page with error indicated shows a table from that plugin. That is all the page does!

    Ah, i don’t have that plugin installed on my side.
    I will wait for author answer.
    For now i use you fix, thank you

    Plugin Author Jason Crouse

    (@coolmann)

    Hi all,

    thank you for reporting this issue. I can confirm that commenting out that line of code is indeed the correct way to fix it. We will include a patch in the next update, which should be released early next week.

    Best,
    Jason

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘PHP Fatal error: Access to undeclared static property’ is closed to new replies.