Errors on my website that I am unable to fix and can’t find a solution

This topic has 2 replies, 2 voices, and was last updated 4 weeks ago ago by Andrew Mitchell

  • Avatar: _glennnnn
    _glennnnn
    Participant
    May 8, 2025 at 21:48

    1. Description of Error:

    I am encountering multiple PHP warnings on my WordPress site that appear to be related to missing plugin files. The warnings are generated by the file_get_contents() function in wp-includes/functions.php on line 6893, and they indicate that WordPress is trying to access plugin files that do not exist in their expected directories.

    Sample of warnings in attachment

    Request:
    Could you please investigate this issue? I suspect either a failed update, incomplete migration, or server-level problem (such as corrupted file permissions or deleted plugin files). Guidance on how to resolve or safely reinstall the affected plugins would be appreciated.

    _______________________________________________________________

    2. Description of Issue:

    When attempting to publish or update a post/blog on my WordPress site, I encounter the following error:

    Updating failed. The response is not a valid JSON response.

    – This issue occurs inconsistently but often when saving or updating posts/pages.
    – It prevents the post from being published or updated successfully.
    – I have tested this with different browsers and posts, and the problem persists.

    Request:
    Could you help identify the root cause of this JSON response error and recommend steps to resolve it? If it’s related to the REST API or a plugin conflict, I’d appreciate help diagnosing which plugin(s) may be interfering.

    Files is visible for topic creator and
    support staff only.
    1 Answer
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    May 9, 2025 at 14:06

    Hello, _glennnnn,

    Thank you for reaching out to us and providing detailed information regarding the issues you are experiencing on your WordPress site.

    1. Regarding the PHP Warnings:

    The warnings you are encountering related to the file_get_contents() function typically occur when WordPress attempts to access plugin files that are either missing or have incorrect file paths. This can indeed be caused by an incomplete plugin update, a failed migration, or server-level issues such as incorrect file permissions or deleted files.

    To assist you further, we kindly recommend the following steps:

    – Please ensure that all your plugins are fully updated. You may try deactivating and then reactivating the affected plugins, or reinstalling them from the official source to ensure all necessary files are present.
    – Check your server’s file permissions to confirm that WordPress has the appropriate access to the plugin directories.
    – If the issue occurred after a recent migration, it may be helpful to verify that all plugin files were correctly transferred to the new server.

    If you could provide us with the list of active plugins and a copy of the warnings (as mentioned in your attachment), we would be happy to investigate further and provide more specific guidance.

    2. Regarding the JSON Response Error:

    The “Updating failed. The response is not a valid JSON response.” error is commonly related to issues with the REST API, which can be affected by:

    – Plugin or theme conflicts
    – Server configuration (e.g., mod_security, .htaccess rules)
    – Permalink structure or SSL settings

    To help resolve this issue, we suggest the following troubleshooting steps:

    – Temporarily deactivate all plugins except for the default WordPress ones and try updating a post again. If the issue is resolved, reactivate the plugins one by one to identify the conflicting plugin.
    – Switch to a default WordPress theme (such as Twenty Twenty-Four) to rule out a theme-related conflict.
    – Ensure that your site URL and WordPress URL (under Settings > General) are correctly set and use the same protocol (http or https).
    – Check your browser’s developer console or the server error logs for any additional clues.

    Best Regards,
    8Theme’s 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.