Forums

[Plugin: LeagueManager] Cannot use string offset as an ar (5 posts)

  1. Monika
    Member
    Posted 3 years ago #

    Fatal error: Cannot use string offset as an array in ......./wp-content/plugins/leaguemanager/lib/shortcodes.php on line 243

    sometimes I see this failure and please explain me when this appears,
    so I can instruct the author

    because I can't simulate ;)

    PLugin Version 2.8
    WP2.7.1

    thanks

  2. Kolja
    Member
    Posted 3 years ago #

    I store some fields, like half-times for soccer, as a serialized string in the database and create an array from this. If there is no data inserted there is simply a string and this is not unserialized. Thus it is a string and no array. I thought that I'm doing a check if the variable is an array, but obviously not. Will check that.

  3. bardzo
    Member
    Posted 3 years ago #

    It happens when points2 column is empty in table wp_leaguemanager_matches

    You can manualy update this via phpmyadmin putting there the same you have in filled fields for this column. In my case it was a:1:{i:0;a:2:{s:4:"plus";s:0:"";s:5:"minus";s:0:"";}}

    I hope this will be fixed soon :)

    BTW. Thanks for this great plugin!

  4. bardzo
    Member
    Posted 3 years ago #

    or just press Update scores button on the bottom of your league admin page ;)

  5. Monika
    Member
    Posted 3 years ago #

    oh yes:-) I got it --press update button
    thanks :-)

Topic Closed

This topic has been closed to new replies.

About this Topic