Object Cache and LiteSpeed Memcached (LSMCD) When Enabled Generating PHP Errors.
-
Hello,
I have recently installed LiteSpeed Memcached (LSMCD), and enabled Object Cache.
Everything seems to be working OK, but when checking error logs we discovered that Object Cache was generating PHP fatal errors.
Because of this , we have currently disabled Object cache until we can resolve the issue.
Report number: YAELUYJX
Sample of PHP errors below (this is just one of many):
[11-Oct-2021 13:55:42 UTC] PHP Warning: get_object_vars() expects parameter 1 to be object, array given in /public_html/wp-includes/class-wp-post.php on line 265
[11-Oct-2021 13:55:42 UTC] PHP Warning: Invalid argument supplied for foreach() in /public_html/wp-includes/class-wp-post.php on line 265
[11-Oct-2021 13:55:42 UTC] PHP Fatal error: Uncaught Error: Cannot use object of type stdClass as array in /public_html/wp-includes/meta.php:594
Stack trace:
#0 /public_html/wp-includes/meta.php(509): get_metadata_raw(‘post’, 46688, ‘_wp_attached_fi…’, true)#1 /public_html/wp-includes/post.php(2303): get_metadata(‘post’, 46688, ‘_wp_attached_fi…’, true)
#2 /public_html/wp-includes/post.php(555): get_post_meta(46688, ‘_wp_attached_fi…’, true)
#3 /public_html/wp-includes/post.php(6583): get_attached_file(46688)
#4 /public_html/wp-includes/post.php(6636): wp_attachment_is(‘image’, Object(WP_Post))
#5 /public_html/wp-includes/media.php(192): wp_attachment_is_image(46688)
#6 /public_html/wp-includes/media.php(953): image_downsize(46688, ‘post-thumbnail’)
#7 /public_html/wp-includes/media.php(1028): wp_get_attachment_image_src(46688, ‘post-thumbnail’, false)
#8 /public_html/wp-include in /public_html/wp-includes/meta.php on line 594
- The topic ‘Object Cache and LiteSpeed Memcached (LSMCD) When Enabled Generating PHP Errors.’ is closed to new replies.