• 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

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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.

    bardzo

    (@bardzo)

    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!

    bardzo

    (@bardzo)

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

    Thread Starter Monika

    (@monika)

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

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘[Plugin: LeagueManager] Cannot use string offset as an ar’ is closed to new replies.