• Resolved pradiyi

    (@pradiyi)


    First at all. I’ve tried the diagnostics mode and the issue is caused ONLY by the Jetpack plugin in both of my installed themes (Bento and the default twenty-one theme).

    When I get into the widgets page I get multiple error lines in the head of the page, anyway, this does not affect the performance of the page: “Error in wp-admin/includes/misc.php on line 1433”

    The important thing is the JSON issue in the post/page editor. I cannot work properly with images. Featured image keeps loading forever and all the images plugins from Jetpack gets back with json errors.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support MadHatter (a11n)

    (@madhattersez)

    Hello, there.

    Can you provide the JSON errors you’re seeing in your console for your post and page editor as well as what is on line 1433 of the misc.php from the widgets page? We’ll take a look for clues. Thanks!

    Thread Starter pradiyi

    (@pradiyi)

    The message I get in the widgets page is as follows, repeated like 30 times:
    Warning: Undefined property: stdClass::$post_status in /usr/home/estudiosbabel.es/web/wp-admin/includes/misc.php on line 1433

    This is what I have on misc.php line 1433:
    if ( ‘draft’ === $page->post_status && ‘privacy’ === get_current_screen()->id ) {

    What I get trying to load a featured image or any image in a Jetpack block in the editor, following errors:

    https://c0.wp.com/c/5.6.1/wp-includes/js/dist/api-fetch.min.js
    GET https://www.estudiosbabel.es/wp-json/wp/v2/media/%5Bdifferent numbers]?context=edit&_locale=user 404

    https://c0.wp.com/c/5.6.1/wp-includes/js/dist/data.min.js data.min.js:2 Uncaught (in promise) {code: “rest_post_invalid_id”, message: “El ID de la entrada no es válido.”, data: {…}}

    https://c0.wp.com/c/5.6.1/wp-includes/js/dist/data.min.js data.min.js:2 Uncaught (in promise) {code: “invalid_json”, message: “Las respuesta no es una respuesta JSON válida.”}

    Thanks for helping!

    Plugin Contributor Ryan C.

    (@ryancowles)

    Hey @pradiyi, thanks for the additional information! I noticed that your site is currently on a server running PHP 8.0. The issue that you describe sounds similar to some other reports we’ve received about PHP 8.0 compatibility:

    As a next step, I’d like to see if this is related to the Widget Visibility feature in Jetpack. Can you try temporarily disabling that feature? You can follow the instructions at the top of this page to do so:

    The only difference is instead of toggling it on, you’ll toggle it off.

    After doing so, then check to see if you receive the same errors as reported above. That will allow us to confirm or deny that this is related to a known issue with the Widget Visibility feature.

    Please let us know how that works for you and we’ll go from there!

    Thread Starter pradiyi

    (@pradiyi)

    Thank you.
    – Toggling off the widget visibility fixes the warning lines on Widgets page.

    – About the Github thread, I’m not that expert to understand everything what is on it. So the issues and the console errors on the editor are keeping in there. Waiting for a plugin update or other way to fix it for ‘dummies’. Do you recommend me to downgrade the PHP version of the server?

    Thanks a lot

    Plugin Contributor Dan (a11n)

    (@drawmyface)

    Hi @pradiyi

    Toggling off the widget visibility fixes the warning lines on Widgets page.

    Thanks for confirming. This is indeed a known issue, and you can follow this Github issue for updates on that:
    https://github.com/Automattic/jetpack/issues/18616

    About the Github thread, I’m not that expert to understand everything what is on it. So the issues and the console errors on the editor are keeping in there. Waiting for a plugin update or other way to fix it for ‘dummies’. Do you recommend me to downgrade the PHP version of the server?

    If you need this feature, then your options are to wait for it to be fixed (or a workaround to be offered), or downgrade to PHP 7.4.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error in widgets and json in post editor’ is closed to new replies.