• Resolved lh822184

    (@lh822184)


    I am seeing “Warning: Ilegal string offset XXXXX in /home/site/folder/wp-content/plugins/wp-statistics/includes/classes/statistics.class.php on line 144. XXXX is replaced by dashboard_set or editor_set. This warning is displayed at the top of the dashboard page, and when I edit or add a new post or page.
    As far as I can tell, the plugin is working correctly. I am using PHP 7.1, so I think that it might be a compatibility issue.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Contributor Greg Ross

    (@gregross)

    There’s another report of this warning in PHP 7.1 in this thread: https://www.ads-software.com/support/topic/widgets-not-staying-in-admin/

    I don’t have 7.1 setup yet so I’m not sure why it’s happening.

    Thread Starter lh822184

    (@lh822184)

    I reverted back to PHP 7.0.14 and the warning message remains. At this point it isn’t a major problem, and just an inconvenience, but I wanted to make you aware of it.

    Plugin Contributor Greg Ross

    (@gregross)

    I suspect it’s something to do with 7.1 which get’s written to the database, but I haven’t been able to reproduce it yet.

    Thanks for letting me know.

    Plugin Contributor Greg Ross

    (@gregross)

    By any chance are you using a non-default table prefix?

    Thread Starter lh822184

    (@lh822184)

    Not that I am aware of. I don’t think I’ve touched the database at all.

    Thread Starter lh822184

    (@lh822184)

    Hello, just checking back and wondering if you have made any progress on fixing this issue, or have any suggestions for how I can remove this warning message.
    Thanks.

    Plugin Contributor Greg Ross

    (@gregross)

    Thread Starter lh822184

    (@lh822184)

    Okay, 2 things I’d like to clarify.
    Will need to revert back to PHP 5.6? Or will it work with 7.0.15?
    In the table usermeta, am I supposed to delete the row with meta_key wp_statistics (the meta_value is 1, if that makes any difference) or am I supposed to delete the entire table?
    Thanks for your help.

    Plugin Contributor Greg Ross

    (@gregross)

    I haven’t tested with 7.0.15, but 7.0.12 was fine so I don’t expect there would be any issues with .15.

    Just delete the row’s with the meta_key name of wp_statistics. That ‘1’ in the meta_value is what’s causing the issue.

    Thread Starter lh822184

    (@lh822184)

    Instead of deleting the row, I actually just removed the 1 from meta_value and the error message is gone. Thanks! This makes the dashboard look so much nicer.

    Plugin Contributor Greg Ross

    (@gregross)

    That’s fine as well, the rows would have been automatically recreated the next time the user logged in if you had deleted them instead.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Warning with PHP 7.1’ is closed to new replies.