Title: Fatal error saving posts: WP_Error::get_data() in class-astra-elementor.php
Last modified: July 7, 2026

---

# Fatal error saving posts: WP_Error::get_data() in class-astra-elementor.php

 *  [Percula](https://wordpress.org/support/users/percula/)
 * (@percula)
 * [11 hours, 34 minutes ago](https://wordpress.org/support/topic/fatal-error-saving-posts-wp_errorget_data-in-class-astra-elementor-php/)
 * Hi there,
 * I’m running into a fatal error that’s preventing me from saving or publishing
   posts in WordPress. The error appears in my server’s error log and coincides 
   exactly with the “The response is not a valid JSON response” error I see in the
   block editor when trying to update a post.
 * **Error details:**
 * PHP Fatal error: Uncaught Error: Call to undefined method WP_Error::get_data()
   in
   /wp-content/themes/astra/inc/compatibility/class-astra-elementor.php:388
 * **Environment:**
    - Astra theme version: 4.13.5
    - Elementor version: 4.1.4
    - This happens on both new posts and existing posts, so it doesn’t appear to
      be content-specific.
    - I’ve already ruled out plugin conflicts (tested with all other plugins deactivated)
      and confirmed the WordPress REST API itself is working correctly.
    - Temporarily switching to the Twenty Twenty-Four theme allows posts to save
      without issue, which points to this being an Astra/Elementor compatibility
      conflict specifically.
 * This may be related to a missing check before calling `get_data()` on a `WP_Error`
   object (rather than a proper `WP_REST_Response`) — similar to a bug pattern I’ve
   seen mentioned in other plugin fixes.
 * Could someone confirm if this is a known issue, and if a fix is planned? Happy
   to provide any additional debug info if needed.
 * Thanks!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-error-saving-posts-wp_errorget_data-in-class-astra-elementor-php%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [BSF – Humayon Kabir](https://wordpress.org/support/users/humayonk/)
 * (@humayonk)
 * [8 hours, 15 minutes ago](https://wordpress.org/support/topic/fatal-error-saving-posts-wp_errorget_data-in-class-astra-elementor-php/#post-18957999)
 * Hi [@percula](https://wordpress.org/support/users/percula/)
 * Thanks for reaching out to us.
 * Yes, we were able to reproduce the issue on our end, and our team has resolved
   the issue in this dev version.
 * Please [download it from here](https://d.pr/f/oxqe1S) and install it like a normal
   theme. If it asks to overwrite, then proceed with overwriting.
 * Also, it will be adjusted with a future release.
 * With Regards
    Humayon

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-error-saving-posts-wp_errorget_data-in-class-astra-elementor-php%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/astra/4.13.6/screenshot.jpg)
 * Astra
 * [Support Threads](https://wordpress.org/support/theme/astra/)
 * [Active Topics](https://wordpress.org/support/theme/astra/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/astra/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/astra/reviews/)

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)
 * [json](https://wordpress.org/support/topic-tag/json/)
 * [save error](https://wordpress.org/support/topic-tag/save-error/)

 * 1 reply
 * 2 participants
 * Last reply from: [BSF – Humayon Kabir](https://wordpress.org/support/users/humayonk/)
 * Last activity: [8 hours, 15 minutes ago](https://wordpress.org/support/topic/fatal-error-saving-posts-wp_errorget_data-in-class-astra-elementor-php/#post-18957999)
 * Status: not resolved