Fatal error saving posts: WP_Error::get_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:388Environment:
- 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 aWP_Errorobject (rather than a properWP_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 to see the link]
You must be logged in to reply to this topic.
