• Resolved dcivera

    (@dcivera)


    Ok, here’s a redo… with feelings. 2.1.1 Breaks themes, templates, and even push notifications (One Signal Push plugin). Tried FLUSHALL, but it didn’t help.

    Here’s the error log I get when the plugin is active, the Object Cache is active, and I try to save a blog post.

    
    [Mon Jul 18 17:43:37.496829 2022] [proxy_fcgi:error] [pid 167130:tid 139953193875200] [client IP:0] AH01071: Got error '
    PHP message: PHP Warning:  get_object_vars() expects parameter 1 to be object, bool given in /**wp_path**/wp-includes/class-wp-term.php on line 197
    PHP message: PHP Warning:  Invalid argument supplied for foreach() in /**wp_path**/wp-includes/class-wp-term.php on line 197
    PHP message: PHP Warning:  get_object_vars() expects parameter 1 to be object, bool given in /**wp_path**/wp-includes/class-wp-term.php on line 197
    PHP message: PHP Warning:  Invalid argument supplied for foreach() in /**wp_path**/wp-includes/class-wp-term.php on line 197
    PHP message: PHP Warning:  get_object_vars() expects parameter 1 to be object, bool given in /**wp_path**/wp-includes/class-wp-term.php on line 197
    PHP message: PHP Warning:  Invalid argument supplied for foreach() in /**wp_path**/wp-includes/class-wp-term.php on line 197
    PHP message: PHP Warning:  get_object_vars() expects parameter 1 to be object, bool given in /**wp_path**/wp-includes/class-wp-term.php on line 197
    PHP message: PHP Warning:  Invalid argument supplied for foreach() in /**wp_path**/wp-includes/class-wp-term.php on line 197
    PHP message: WordPress database error Duplicate entry '7761-0' for key 'wp__term_relationships.PRIMARY' for query INSERT INTO <code>wp__term_relationships</code> (<code>object_id</code>, <code>term_taxonomy_id</code>) VALUES (7761, 0) made by edit_post, wp_update_post, wp_insert_post, do_action('save_post'), WP_Hook->do_action, WP_Hook->apply_filters, PP_Notifications->action_save_post, PP_Notifications->post_set_users_to_notify, wp_set_object_terms, QM_DB->query
    PHP message: PHP Warning:  get_object_vars() expects parameter 1 to be object, bool given in /**wp_path**/wp-includes/class-wp-term.php on line 197
    PHP message: PHP Warning:  Invalid argument supplied for foreach() in /**wp_path**/wp-includes/class-wp-term.php on line 197
    PHP message: PHP Warning:  get_object_vars() expects parameter 1 to be object, bool given in /**wp_path**/wp-includes/class-wp-term.php on line 197
    PHP message: PHP Warning:  Invalid argument supplied for foreach() in /**wp_path**/wp-includes/class-wp-term.php on line 197
    PHP message: WordPress database error Duplicate entry '7761-0' for key 'wp__term_relationships.PRIMARY' for query INSERT INTO <code>wp__term_relationships</code> (<code>object_id</code>, <code>term_taxonomy_id</code>) VALUES (7761, 0) made by edit_post, wp_update_post, wp_insert_post, do_action('save_post'), WP_Hook->do_action, WP_Hook->apply_filters, PP_Notifications->action_save_post, PP_Notifications->post_set_users_to_notify, wp_set_object_terms, QM_DB->query
    PHP message: PHP Warning:  get_object_vars() expects parameter 1 to be object, bool given in /**wp_path**/wp-includes/class-wp-term.php on line 197
    PHP message: PHP Warning:  Invalid argument supplied for foreach() in /**wp_path**/wp-includes/class-wp-term.php on line 197
    PHP message: PHP Warning:  get_object_vars() expects parameter 1 to be object, bool given in /**wp_path**/wp-includes/class-wp-term.php on line 197
    PHP message: PHP Warning:  Invalid argument supplied for foreach() in /**wp_path**/wp-includes/class-wp-term.php on line 197
    PHP message: PHP Warning:  get_object_vars() expects parameter 1 to be object, bool given in /**wp_path**/wp-includes/class-wp-term.php on line 197
    PHP message: PHP Warning:  Invalid argument supplied for foreach() in /**wp_path**/wp-includes/class-wp-term.php on line 197', referer: https://willowdalechurch.ca/wp-admin/post.php?post=7761&action=edit
    
Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Till Krüss

    (@tillkruess)

    Can you post your diagnostics?

    Thread Starter dcivera

    (@dcivera)

    Status: Connected
    Client: PhpRedis (v5.1.1)
    Drop-in: Valid
    Disabled: No
    Ping: 1
    Errors: []
    PhpRedis: 5.1.1
    Relay: Not loaded
    Predis: Not loaded
    Credis: Not loaded
    PHP Version: 7.4.3
    Plugin Version: 2.1.1
    Redis Version: 5.0.7
    Multisite: No
    Metrics: Enabled
    Metrics recorded: 135
    Filesystem: Working
    Global Prefix: "wp_"
    Blog Prefix: "wp_"
    WP_REDIS_HOST: "127.0.0.1"
    WP_REDIS_DATABASE: 1
    WP_REDIS_PREFIX: "wp"
    WP_CACHE_KEY_SALT: "wp"
    WP_REDIS_PASSWORD: ????????
    Global Groups: [
        "blog-details",
        "blog-id-cache",
        "blog-lookup",
        "global-posts",
        "networks",
        "rss",
        "sites",
        "site-details",
        "site-lookup",
        "site-options",
        "site-transient",
        "users",
        "useremail",
        "userlogins",
        "usermeta",
        "user_meta",
        "userslugs",
        "redis-cache",
        "blog_meta"
    ]
    Ignored Groups: [
        "counts",
        "plugins",
        "themes",
        "WPForms_Entry_Handler"
    ]
    Unflushable Groups: []
    Groups Types: {
        "blog-details": "global",
        "blog-id-cache": "global",
        "blog-lookup": "global",
        "global-posts": "global",
        "networks": "global",
        "rss": "global",
        "sites": "global",
        "site-details": "global",
        "site-lookup": "global",
        "site-options": "global",
        "site-transient": "global",
        "users": "global",
        "useremail": "global",
        "userlogins": "global",
        "usermeta": "global",
        "user_meta": "global",
        "userslugs": "global",
        "redis-cache": "global",
        "counts": "ignored",
        "plugins": "ignored",
        "themes": "ignored",
        "blog_meta": "global",
        "WPForms_Entry_Handler": "ignored"
    }
    Drop-ins: [
        "advanced-cache.php v by ",
        "Query Monitor Database Class (Drop-in) v3.9.0 by John Blackbourn",
        "Redis Object Cache Drop-In v2.1.1 by Till Krüss"
    ]
    
    Plugin Author Till Krüss

    (@tillkruess)

    Thanks, I changed the stable tag to v2.0.26 and will investigate this and post an update in this thread once it’s resolved.

    Plugin Author Till Krüss

    (@tillkruess)

    I just published v2.1.2 on GitHub, give that version a try. Make sure you update your object-cache.php drop-in as well.

    https://github.com/rhubarbgroup/redis-cache/releases/tag/2.1.2

    Thread Starter dcivera

    (@dcivera)

    Trying. I made a mistake previously

    • This reply was modified 2 years, 7 months ago by dcivera.
    Thread Starter dcivera

    (@dcivera)

    Ok, some things work well but I’m experiencing strange behaviors. Push notifications with the One Signal plugin work again and I don’t get an error message when I’m experiencing strange behaviors.

    1. For example, when the object cache is enabled, I cannot choose two categories for a blog post at the same time. It only keeps one.

    2. When enabled, all blog posts become video blog posts (under format). Activating Object Cache literally changes all blog posts’ format to “Video”. Deactivating reverts back to “Standard”.

    Plugin Author Till Krüss

    (@tillkruess)

    Does v2.1.2 release generate any error messages?

    Try flushing the cache for all other issues.

    Thread Starter dcivera

    (@dcivera)

    No it doesn’t, but then again, technically, it doesn’t look like an error. It looks like the plugin changes certain properties. For instance, standard blog posts become video posts once activated.

    Would you like me to record a screencast?

    Plugin Author Till Krüss

    (@tillkruess)

    Sure, make sure you do a full cache flush before the recording.

    Thread Starter dcivera

    (@dcivera)

    Well, the recording proved useful, but for me, not so much for you ??

    Good news: 2.1.2 seems to work great.

    Video: https://cloud.civera.ca/RBumkdob

    In the video, you’ll see what I was talking about. At 2:50, you see the website before activating Object Cache and at 2.55, you see what it looks like after. There are issues. However, they all disappear after a few refreshes on Safari.

    Similarly, at 3:30, you see that the CMS has issues. However, after a refresh at 3:45, all is well again.

    I’ve also kept using the plugin for a while, and the issues seen above have not reappeared.

    Thank you so much for your patience.

    Plugin Author Till Krüss

    (@tillkruess)

    Good news: 2.1.2 seems to work great.

    @dcivera: Fantastic, just sounds like either your browser or CDN has some corrupt assets after the v2.1.1 breakage.

    I’ll wait for another 1-2 people to report that v2.1.2 works before publishing it live.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘2.1.1 Breaks Things (Log included)’ is closed to new replies.