• Resolved worpressy

    (@worpressy)


    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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    if you use regular memcached , does this same error show up on that ?

    Best regards,

    Thread Starter worpressy

    (@worpressy)

    Hi @qtwrk

    Not with regular memcached.

    Currently regular memcached has been disabled and not installed, only LiteSpeed Memcached (LSMCD) is enabled.

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    if it works with normal memcached but not LSMCD , then it’s more likely LSMCD-side issue instead of plugin-side issue

    please create a ticket on LiteSpeed websites for LSMCD issue

    Best regards,

    • This reply was modified 3 years, 1 month ago by qtwrk.
    Thread Starter worpressy

    (@worpressy)

    Hi @qtwrk

    Thanks for the link. I will create a ticket there.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Object Cache and LiteSpeed Memcached (LSMCD) When Enabled Generating PHP Errors.’ is closed to new replies.