Support » Fixing WordPress » Unable to Edit PHP files

  • Hi there,

    I am freelance PHP Developer and new to WordPress(First Project) and need your guidance in following issue:
    My initial installation was WordPress 4.9 Version. Since the installation of theme, I am unable to edit .php files in the editor. Now I read forums and came to know that I am not the only one struggling. So I read their discussions and tried the very common first step in all of the topics to install health-checkup plugin. Which I did, an dnow the error changed from

    Unable to Communicate back with site to check fatal error,so the PHP can be reverted.You will need to upload your PHP file change by some other means, such as by using SFTP.

    So now after installing the health -Check up plugin the error changed from the above one to the bottom

    Something went wrong. Your change may not have been saved. Please try again. There is also a chance that you may need to manually fix and upload the file over FTP.

    Kindly let me know if you can guide me through the solution. Thank you. Because my client needs an ETA.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Usually if you can’t edit a file on the server it’s a sign of a permission problem – i.e. WordPress or your user account doesn’t have the proper permissions to edit that file. Potentially as well is security plugins or even server security settings that may prevent you from making changes.

    With all this being said, may I strongly recommend that you do not edit files on a production server! One little mess-up and your site can go down. It’s much better to clone your production site to a local development environment and do your code edits there. When your edits are complete and tested locally, you can then upload your code changes back to production via SFTP or SSH. That way any “broken” code gets caught locally and can be debugged in a safe, local environment without causing issues to your production site.

Viewing 1 replies (of 1 total)
  • The topic ‘Unable to Edit PHP files’ is closed to new replies.