Replies: 0
I’ve just installed the latest plugin (4.4.5) from the plugin repository on a very simple site, and trying to save an event is returning a bunch of Warnings; unless I suppress errors display via wp-config, the editor does not save the result cleanly as I get ‘headers already sent’ errors and a white screen.
[20-Apr-2017 00:05:58 UTC] PHP Warning: Illegal string offset '_EventCost' in /home/xxxxxxx/public_html/wp-content/plugins/the-events-calendar/src/Tribe/API.php on line 160
[20-Apr-2017 00:05:58 UTC] PHP Warning: Illegal string offset '_thumbnail_id' in /home/xxxxxx/public_html/wp-content/plugins/the-events-calendar/src/Tribe/API.php on line 197
Looking at line 160, it’s trying to read metadata values, using the key
_tribe_modified_fields.
Examining the post meta fields in my database explains the issue – it looks like the plugin is expecting an array, but the storage of the value is inconsistent at the database level. Here’s a PHPMyAdmin cap:
https://www.dropbox.com/s/ibyx8g4a3kalri3/sshot-840.png?dl=0
Some values are the expected serialized arrays, some look like strings of serialized arrays.
The server is a cpanel box running PHP 5.5.29 and MySQL 5.6.35 .