Object of class WP_Post could not be converted to string
-
This is for VSEL v.14.2 and v.14.3 (which I understand just updated in the past 24 hours).
I’m getting this error as reported by WP’s built-in email alerts:
An error of type E_ERROR was caused in line 40 of the file /[redacted]/wp-content/plugins/very-simple-event-list/vsel-acf.php. Error message: Uncaught Error: Object of class WP_Post could not be converted to string in /[redacted]/wp-content/plugins/very-simple-event-list/vsel-acf.php:40
I first noticed that one particular Event I created has an error on its single event page, whereby it only shows the title and featured image, and the rest of the page cuts off there – no event details, the website footer doesn’t appear, etc.
I’m still trying to figure out why this happens – I’ve tried removing the featured image, removing all the blocks leaving only the title, changing the dates, and still the page cuts off.
After encountering that issue, I then tried to edit a Page where I added the [vsel] shortcode, and that’s when I got a Critical Error message from WP causing the above error to be e-mailed to me. Probably related to the same Event. I don’t get the error on pages without the shortcode.
I’m on WordPress 6.0 and PHP 7.4.28. Hope this is enough info! Thanks in advance for any help.
- The topic ‘Object of class WP_Post could not be converted to string’ is closed to new replies.