• Hi,
    I have a problem with the WordPress editor for about a week.
    If I try to modify the functions.php file or the CSS I do not get any type of save and the following sentence is presented: “There was an error. Your changes may not have been saved. Try again. There is a possibility that you have to manually resolve the problem and upload the file via FTP. “. If I upload files via FTP, everything works correctly, but I would like to be able to use the editor as well.
    I have already tried to disable all plugins and activate the default theme but the problem persists. I also installed the “Health Check & Troubleshooting” plugin to find out if there was any other kind of problem but even then everything works correctly.
    By opening the web inspector and trying to save the functions.php file update the error that occurs is as follows:
    <!DOCTYPE HTML PUBLIC “-//IETF//DTD HTML 2.0//EN”>
    <html><head>
    <title>410 Gone</title>
    </head><body>
    <h1>Gone</h1>
    <p>The requested resource<br />/wp-admin/admin-ajax.php<br />
    is no longer available on this server and there is no forwarding address.
    Please remove all references to this resource.</p>
    </body></html>
    Thanks.

Viewing 1 replies (of 1 total)
  • Are you able to upload/update plugins without FTP credentials from the WordPress backend area?

    Assuming you can, here are a couple things you can do to troubleshoot the issue you are experiencing:

    1. Check theme permissions

      If you’re running your site from shared hosting, you’re probably fine here. If you’re using VPS or Cloud hosting, make sure the user account that has access to the web server (Nginx or Apache HTTP) also has access to your theme files.

    2. Are you using any security plugins?

      I know you said after disabling all plugins this issue persisted, but it’s a common cause of this error message, so it’s worth repeating to disable those while troubleshooting your backend access of the theme editor.

    3. Are you using cloud-based security WAF? Or Cloudflare?

      If so, try disabling WAF, flush cache and try saving changes through the theme editor again. This can happened with Cloudflare, depending on your host and WAF settings, where Cloudflare WAF challenges (does not allow) “Update files” requests at the site level (like your WordPress backend dashboard).

      You can access your Cloudflare firewall logs from your CF account dashboard. If you find this is the cause (you’ll see “challenge” under the “action taken” column), you can whitelist your IP in the Cloudflare WAF event details to resolve.

Viewing 1 replies (of 1 total)
  • The topic ‘Error editor functions.php’ is closed to new replies.