• Resolved Geren

    (@geren)


    I’m getting an e-mail from WordPress that it has detected an error condition in Jetpack. I am also noticing a slew of errors when I attempt to make changes to widgets from the Appearance menu tab.

    PLEASE NOTE that this is occurring on MORE THAN ONE SITE, each with different combinations of plug-ins and themes. I HAVE ALREADY TRIED disabling other plug-ins on all sites. I have also tested using the 2021 theme. THE ONLY THING THAT CLEARS THE ERRORS is disabling Jetpack.

    The public-facing appearance and functionality of the websites is not affected.

    Here’s the error logging info that was included in the e-mail I received from one site during testing:

    ————————————-

    WordPress version 5.8
    Current theme: Basic (version 1.3.12)
    Current plugin: Jetpack (version 9.9.1)
    PHP version 8.0.2
    
    Error Details
    =============
    An error of type E_ERROR was caused in line 440 of the file /home/gerenm/www/trains/wp-content/plugins/jetpack/vendor/automattic/jetpack-sync/src/class-sender.php. Error message: Uncaught TypeError: strlen(): Argument #1 ($string) must be of type string, array given in /home/gerenm/www/trains/wp-content/plugins/jetpack/vendor/automattic/jetpack-sync/src/class-sender.php:440
    Stack trace:
    #0 /home/gerenm/www/trains/wp-content/plugins/jetpack/vendor/automattic/jetpack-sync/src/class-sender.php(440): strlen(Array)
    #1 /home/gerenm/www/trains/wp-content/plugins/jetpack/vendor/automattic/jetpack-sync/src/class-rest-sender.php(64): Automattic\Jetpack\Sync\Sender->get_items_to_send(Object(Automattic\Jetpack\Sync\Queue_Buffer), NULL)
    #2 /home/gerenm/www/trains/wp-content/plugins/jetpack/vendor/automattic/jetpack-sync/src/class-rest-endpoints.php(580): Automattic\Jetpack\Sync\REST_Sender->queue_pull('sync', '100', Array)
    #3 /home/gerenm/www/trains/wp-includes/rest-api/class-wp-rest-server.php(1140): Automattic\Jetpack\Sync\REST_Endpoints::checkout(Object(WP_REST_Request))
    #4 /home/gerenm/www/trains/wp-includes/rest-api/class-wp-rest-server.php(987): WP_REST_Server->respond_to_request(Object(WP_REST_Request), '/jetpack/v4/syn...', Array, NULL)
    #5 /home/gerenm/www/trains/wp-includes/rest-api/class-wp-rest-server.php(414): WP_REST_Server->dispatch(Object(WP_REST_Request))
    #6 /home/gerenm/www/trains/wp-includes/rest-api.php(370): WP_REST_Server->serve_request('/jetpack/v4/syn...')
    #7 /home/gerenm/www/trains/wp-includes/class-wp-hook.php(303): rest_api_loaded(Object(WP))
    #8 /home/gerenm/www/trains/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters('', Array)
    #9 /home/gerenm/www/trains/wp-includes/plugin.php(518): WP_Hook->do_action(Array)
    #10 /home/gerenm/www/trains/wp-includes/class-wp.php(388): do_action_ref_array('parse_request', Array)
    #11 /home/gerenm/www/trains/wp-includes/class-wp.php(750): WP->parse_request('')
    #12 /home/gerenm/www/trains/wp-includes/functions.php(1291): WP->main('')
    #13 /home/gerenm/www/trains/wp-blog-header.php(16): wp()
    #14 /home/gerenm/www/trains/index.php(17): require('/home/gerenm/ww...')
    #15 {main}
      thrown

    ————————————-

    Your assistance is greatly appreciated.

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Contributor Dan (a11n)

    (@drawmyface)

    Hi @geren

    I’ve asked a developer to look into that and we’ll get back to you as soon as we can.

    Plugin Contributor Dan (a11n)

    (@drawmyface)

    Hi again

    This is a known issue, which is due to be fixed in the next Jetpack update:
    https://github.com/Automattic/jetpack/pull/20444

    Hope that helps!

    Thread Starter Geren

    (@geren)

    It does, Dan. Thanks so much!

    Thread Starter Geren

    (@geren)

    Well, a Jetpack update came last night, and I’m still seeing the same errors on multiple sites.

    Plugin Contributor Dan (a11n)

    (@drawmyface)

    @geren sorry to hear that, I’ve reported this to the developers here:
    https://github.com/Automattic/jetpack/issues/20552#issuecomment-893469015

    Plugin Contributor Dan (a11n)

    (@drawmyface)

    Hi @geren

    Could you provide a fresh report of the error message you’re seeing? We want to see if the line numbers have changed since Jetpack 10.0

    Thanks

    Thread Starter Geren

    (@geren)

    I haven’t gotten the e-mail yet again. However, the result that I see when attempting to use the ‘Customize’ tools in the Appearance tab (for instance ‘Widgets’) are the same as I was getting before. Deactivating Jetpack clears up the errors. So, when I go to ‘Customize’ or ‘Widgets’ I see:

    Warning: Undefined property: stdClass::$post_status in /home/gerenm/www/www/wp-admin/includes/misc.php on line 1433
    
    Warning: Undefined property: stdClass::$post_status in /home/gerenm/www/www/wp-admin/includes/misc.php on line 1433
    
    Warning: Undefined property: stdClass::$post_status in /home/gerenm/www/www/wp-admin/includes/misc.php on line 1433
    
    Warning: Undefined property: stdClass::$post_status in /home/gerenm/www/www/wp-admin/includes/misc.php on line 1433
    
    Warning: Undefined property: stdClass::$post_status in /home/gerenm/www/www/wp-admin/includes/misc.php on line 1433
    
    Warning: Undefined property: stdClass::$post_status in /home/gerenm/www/www/wp-admin/includes/misc.php on line 1433
    
    Warning: Undefined property: stdClass::$post_status in /home/gerenm/www/www/wp-admin/includes/misc.php on line 1433
    
    Warning: Undefined property: stdClass::$post_status in /home/gerenm/www/www/wp-admin/includes/misc.php on line 1433
    
    Warning: Undefined property: stdClass::$post_status in /home/gerenm/www/www/wp-admin/includes/misc.php on line 1433
    
    Warning: Undefined property: stdClass::$post_status in /home/gerenm/www/www/wp-admin/includes/misc.php on line 1433
    
    Warning: Undefined property: stdClass::$post_status in /home/gerenm/www/www/wp-admin/includes/misc.php on line 1433
    
    Warning: Undefined property: stdClass::$post_status in /home/gerenm/www/www/wp-admin/includes/misc.php on line 1433
    
    Warning: Undefined property: stdClass::$post_status in /home/gerenm/www/www/wp-admin/includes/misc.php on line 1433
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/gerenm/www/www/wp-admin/includes/misc.php:1433) in /home/gerenm/www/www/wp-admin/customize.php on line 126

    Note that in the very last line, the final line number may vary, depending upon the customize option I choose. Appearance=>Customize throws line 126, Appearace=>Widgets throws line 9, for instance.

    Now that I’ve poked at this a bunch, I may get the error e-mail again. If I do, I’ll add it.

    Plugin Contributor Dan (a11n)

    (@drawmyface)

    Hi @geren

    Turns out this is a different issue, which is currently being tracked here:

    https://github.com/Automattic/jetpack/issues/18616

    Thread Starter Geren

    (@geren)

    Ugh. Thanks, Dan, for digging into this for me.

    If I’m reading the code for widget-conditions.php correctly, it appears that {$wpdb->posts}.post_status has been added in version 10.0 of Jetpack as suggested by user wunc. Disabling the widget visibility option in Jetpack settings does still make the errors go away, but of course, breaks the ability to conditionally show or hide a widget, which is something that I do use on some sites.

    Thanks again.

    Plugin Contributor Dan (a11n)

    (@drawmyface)

    Hi @geren

    No, that fix hasn’t been added yet, but you can edit the file yourself to add that as a temporary patch until a permanent fix is released.

    I may be having the same problem. I can no longer access my site. I got this message:

    An error of type E_ERROR was caused in line 244 of the file /hermes/bosnacweb04/bosnacweb04af/b1258/ipg.grumpyjohnnet/wp-content/plugins/jetpack/vendor/automattic/jetpack-connection/legacy/class-jetpack-signature.php. Error message: Uncaught Error: Call to undefined function ctype_digit() in /hermes/bosnacweb04/bosnacweb04af/b1258/ipg.grumpyjohnnet/wp-content/plugins/jetpack/vendor/automattic/jetpack-connection/legacy/class-jetpack-signature.php:244
    Stack trace:
    #0 /hermes/bosnacweb04/bosnacweb04af/b1258/ipg.grumpyjohnnet/wp-content/plugins/jetpack/vendor/automattic/jetpack-connection/src/class-client.php(143): Jetpack_Signature->sign_request('pkqR(Ueldk^!*8&...', 1628648102, 'Zn00wHJOYK', '5kLaf9TlRySjcXb...', 'POST', 'https://jetpack...', '
    Plugin Support Animesh Gaurav (a11n)

    (@bizanimesh)

    Hi @jhbaker916

    Could you please start your own thread, as per the Forum Welcome?
    https://www.ads-software.com/support/plugin/jetpack#new-post

    However, I have reported the issue to check if that one is related to the main thread.

    Plugin Support Animesh Gaurav (a11n)

    (@bizanimesh)

    Hi @jhbaker916

    Your issue is different from this thread. It looks like ctype PHP extension is not enabled on your server. You can reach to your hosting provider and let them know about this.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Error of type E_ERROR was caused in line 440’ is closed to new replies.