So I logged into FTP and navigated to /wp-content/themes/MyChildTheme/ and edited the header.php file. I saved the file and uploaded it and I can confirm the file has changed because if I check via cPanel or on a different computer I can see the new code.

However... if I go to WP-Admin and navigate to Appearance > Editor > MyChildTheme > header.php as you see below:

enter image description here

The file appears un-edited... I can't see the code that I added. I've cleared the LiteSpeed cache but it doesn't show the edited code still.

I've tried to edit the code from this page and it appears to have worked once but yet the actual change doesn't appear on the website... Whilst I said it appears to have worked once there still stills to be an issue with "Update file" because when I click the button it eventually times out but during this "timeout" the website is unreachable...

The button does the following for like 2 minutes:

enter image description here

It throws:

Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP.

I'm not sure what's going wrong :/ any ideas

  • do you have cloudflare cache enabled? – Vishwa May 8 '19 at 5:08
  • Yes, but disabling it isn't doing anything either. – Ryflex May 8 '19 at 22:49
  • did you tried purge cache+put it in dev mode? anyways did you checked with file permissions? – Vishwa May 9 '19 at 4:38
  • Yes, yes and yes. Tried all of them :( – Ryflex May 9 '19 at 10:55

Be sure you uploaded in right path. Then please upload file directly with cpanl.

I think your ftp doesn't right configuration

  • I know the path is correct, I'm not "uploading" per se, rather editing the file & saving (same as uploading) I know it's all the correct path. – Ryflex May 8 '19 at 6:20
  • look a round, can you see any checkbox or notification? – Hadi Heydarzade May 8 '19 at 12:45
  • What do you mean... I know without doubt that I am updating the correct file, I've been doing this for years it's only recently I've noticed its not changing anything. – Ryflex May 8 '19 at 22:44
  • you edit file in wordpress theme editor when file not update a checkbox will apear are you see that? – Hadi Heydarzade May 10 '19 at 6:05
  • No, no checkbox appears. See i.imgur.com/tKUwZjS.png – Ryflex May 10 '19 at 10:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.