Title: Error in widgets and json in post editor
Last modified: February 12, 2021

---

# Error in widgets and json in post editor

 *  Resolved [pradiyi](https://wordpress.org/support/users/pradiyi/)
 * (@pradiyi)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/error-in-widgets-and-json-in-post-editor/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-in-widgets-and-json-in-post-editor%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [MadHatter (a11n)](https://wordpress.org/support/users/madhattersez/)
 * (@madhattersez)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/error-in-widgets-and-json-in-post-editor/#post-14041745)
 * 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](https://wordpress.org/support/users/pradiyi/)
 * (@pradiyi)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/error-in-widgets-and-json-in-post-editor/#post-14041814)
 * 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](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](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](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](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!
 *  [Ryan C.](https://wordpress.org/support/users/ryanc413/)
 * (@ryanc413)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/error-in-widgets-and-json-in-post-editor/#post-14042865)
 * Hey [@pradiyi](https://wordpress.org/support/users/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:
    - [https://github.com/Automattic/jetpack/issues/17166](https://github.com/Automattic/jetpack/issues/17166)
 * 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:
    - [https://jetpack.com/support/widget-visibility/](https://jetpack.com/support/widget-visibility/)
 * 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](https://wordpress.org/support/users/pradiyi/)
 * (@pradiyi)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/error-in-widgets-and-json-in-post-editor/#post-14044237)
 * 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)](https://wordpress.org/support/users/drawmyface/)
 * (@drawmyface)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/error-in-widgets-and-json-in-post-editor/#post-14052733)
 * Hi [@pradiyi](https://wordpress.org/support/users/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](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.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

## Tags

 * [PHP 8.0](https://wordpress.org/support/topic-tag/php-8-0/)

 * 5 replies
 * 4 participants
 * Last reply from: [Dan (a11n)](https://wordpress.org/support/users/drawmyface/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/error-in-widgets-and-json-in-post-editor/#post-14052733)
 * Status: resolved