• Resolved jerminatorx

    (@jerminatorx)


    Getting blank pages after update to PHP 8.2. Here are the errors:

    Uncaught (in promise) Error: apiPost failed with error: The response is not a valid JSON response.
    at index.2f331b47060c19033fcf.js?ver=2f331b47060c19033fcf:1:18201Understand this error
    index.2f331b47060c19033fcf.js?ver=2f331b47060c19033fcf:1 Error: apiGet failed with error: The response is not a valid JSON response.
    at index.2f331b47060c19033fcf.js?ver=2f331b47060c19033fcf:1:18087
    at async fetchFieldsData (index.2f331b47060c19033fcf.js?ver=2f331b47060c19033fcf:1:13252)
    (anonymous) @ index.2f331b47060c19033fcf.js?ver=2f331b47060c19033fcf:1Understand this error
    index.2f331b47060c19033fcf.js?ver=2f331b47060c19033fcf:1 Uncaught (in promise) TypeError: Cannot destructure property ‘fields’ of ‘(intermediate value)’ as it is undefined.
    at fetchFieldsData (index.2f331b47060c19033fcf.js?ver=2f331b47060c19033fcf:1:13230)

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Jarno Vos

    (@jarnovos)

    Hi @jerminatorx,

    This usually happens when the Permalinks rules from WordPress are no longer present in your .htaccess file, which can affect the REST API as this causes pages to redirect to a 404 Not Found page.

    I recommend making sure that you’ve updated the Really Simple Security plugin to the latest version (9.5.0.2), then navigate to Settings -> Permalinks in your WordPress Dashboard, and click the Save button on this page (without making any change to the actual permalinks configuration; just click Save once).

    If this was indeed the cause of the issue, re-saving the Permalinks once should do the trick.

    Kind regards, Jarno

    • This reply was modified 9 months ago by Jarno Vos.
    Thread Starter jerminatorx

    (@jerminatorx)

    Well, I did save the permalinks settings, but unfortunately it didn’t fix the problem. We still can’t see the Dashboard or Settings page contents. We are on version 9.5.0.2, and the latest version of WordPress.

    Plugin Support Jarno Vos

    (@jarnovos)

    Hi @jerminatorx,

    Could you provide an URL to the website in question, so we can have a look as well? Maybe there’s an error on the REST API of your site which causes this instead.

    Kind regards, Jarno

    Thread Starter jerminatorx

    (@jerminatorx)

    Sure! The website in question is https://www.hotspringshealth-nc.org.

    Plugin Support Jarno Vos

    (@jarnovos)

    Hi @jerminatorx,

    Thanks, I think the issue is that WordFence is blocking access to the REST API which prevents the plugin’s dashboard and settings pages from loading as a result.

    Try visiting your domain with /wp-json/ added to the URL (e.g., example.com/wp-json). If I do this on your site, this results in a WordFence block page instead of the expected data.

    As soon as this endpoint can be reached by the plugin once more, things should start to work fine.

    Kind regards, Jarno

    Thread Starter jerminatorx

    (@jerminatorx)

    We’ve gotten it fixed, thanks for your guidance!

    Thread Starter jerminatorx

    (@jerminatorx)

    Working now, was a comment line on the JSON file that was the issue.

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

The topic ‘Blank Dashboard and Settings pages – JSON errors’ is closed to new replies.