Support » Plugins and Hacks » WP Statistics » Widgets not staying in Admin

  • Resolved nomadmike

    (@nomadmike)


    I am running php 7.1 when I enable widgets in admin dash they do not stay only the quick stats stay ?

    any sugestions

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Greg Ross

    (@gregross)


    I haven’t done any testing with PHP 7.1, have you checked your error logs and see if there’s anything related in it?

    nomadmike

    (@nomadmike)


    Hi yes I just checked the logs

    Illegal string offset ‘dashboard_set’
    Type: PHP Warning
    Line: 144
    File: /plugins/wp-statistics/includes/classes/statistics.class.php

    // Store the value in the array.
    $this->user_options[$option] = $value;

    changed to php 7.0 and got the same

    Plugin Author Greg Ross

    (@gregross)


    That’s just a warning because the option hasn’t been saved yet.

    I have test on PHP 7 and can’t reproduce the error, can you try disabling any other plugins you may have (start with ones that add things to the dashboard obviously).

    Plugin Author Greg Ross

    (@gregross)


    Actually, before you do that, do you have access to phpMyAdmin? If so run the following SQL query on the wp_user_meta table:

    SELECT * FROM wp_usermeta WHERE meta_key LIKE 'wp_statistics'

    The results in the meta_value column should start with a:, let me know if they don’t.

    • This reply was modified 2 weeks ago by  Greg Ross.

    I get 0 results

    Showing rows 0 – 0 (1 total, Query took 0.0009 sec)

    I have tried on a fresh install that was the only plugin enabled just to see if something else was interfering. They apear when I select the tick boxes but if I leave and come back to the dahsboard they are not being saved – is there a mod I need enabled under php for it to work ?

    thanks

    • This reply was modified 1 week, 6 days ago by  nomadmike.

    I figured out wahts wrong if I install with default DB table ref wp_ it works as expected I use a different DB table ref

    Plugin Author Greg Ross

    (@gregross)


    Really… hummm, it should work with different table prefixes, let me test it and see if I can find the root cause.

    Plugin Author Greg Ross

    (@gregross)


    What table prefix were you using, I tried with a different table prefix and it seems to be working for me on PHP 7.0.

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.