Support » Plugin: WP Statistics » Widgets not staying in Admin

  • Resolved 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 Contributor Greg Ross


    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?

    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 Contributor Greg Ross


    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 Contributor Greg Ross


    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 1 year, 2 months 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 ?


    • This reply was modified 1 year, 2 months 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 Contributor Greg Ross


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

    Plugin Contributor Greg Ross


    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)
  • The topic ‘Widgets not staying in Admin’ is closed to new replies.