Elementor Theme Builder JSON.parse Error Caused by is_feed() Warning from Theme Code

This topic has 2 replies, 2 voices, and was last updated 1 weeks, 4 days ago ago by Jack Richardson

  • Avatar: Papuna
    Papuna
    Participant
    July 15, 2025 at 16:03

    Issue Summary:

    I am encountering a critical issue when attempting to use Elementor Theme Builder. The UI fails to load properly and throws the following JavaScript error in Elementor theme builder:

    SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

    What I’ve Found:

    All network (XHR) requests show a 200 OK status in DevTools

    However, inspecting the response body of those requests shows that they contain a PHP Notice instead of valid JSON

    The notice (in Georgian) says:

    Notice: ფუნქცია is_feed გამოძახებულია არასწორად. პირობითი ტეგები არ მუშაობს, სანამ მოთხოვნა გაშვებულია. ამ მომენტამდე ის ყოველთვის დააბრუნებს false-ს. გთხოვთ იხილოთ გამართვა WordPress-ში დამატებითი ინფორმაციისათვის. (ეს შეტყობინება გაიგზავნა 3.1.0 ვერსიიდან.) in /wp-includes/functions.php on line 6121

    Translated, it reads:

    Notice: The function is_feed() was called incorrectly. Conditional tags do not work before the query is run. Before then, it will always return false. Please see Debugging in WordPress for more information. This notice was triggered in version 3.1.0.

    What I Need from You:

    Please review your theme’s code (or any bundled plugins or child themes) and locate any early calls to is_feed() outside the correct hook context (e.g., before wp, template_redirect, etc.).

    It’s likely the function is being called too early — which triggers the PHP notice and corrupts AJAX responses.

    Content is visible for topic creator and
    support staff only.
    1 Answer
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    July 15, 2025 at 17:44

    Hello @Papuna,

    We hope this message finds you well.

    Upon reviewing our theme code, we have identified that the function in question is used only in two instances:

    1. Within the “the_content” filter (reference: https://developer.wordpress.org/reference/hooks/the_content/), as shown here: https://gyazo.com/701e2dbc1cf1596fa020180166879ab7 — located in xstore/framework/features/lazyload.php.

    2. Within the “wp_title” filter (reference: https://developer.wordpress.org/reference/hooks/wp_title/), as shown here: https://gyazo.com/f3e9395d84db210cd21876e3215781f7 — located in xstore/framework/features/optimization.php.

    Based on our analysis, the use of this function within these filters should not cause the issue you are experiencing.

    We kindly recommend disabling WordPress debugging and then checking whether the Theme Builder loads correctly. It is possible that the issue may be caused by one of the plugins installed on your website. Unfortunately, we are unable to verify the list of active plugins, as the access you provided does not grant us administrative privileges.

    For more information on debugging in WordPress, please refer to the official documentation: https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/

    Should you require further assistance, please do not hesitate to contact us.

    Best regards,
    Jack Richardson
    The 8Theme Team

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

Helpful Topics

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.