admin管理员组

文章数量:1122832

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:

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:

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

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:

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:

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

Share Improve this question edited May 8, 2019 at 22:53 Ryflex asked May 8, 2019 at 0:30 RyflexRyflex 8311 bronze badges 4
  • do you have cloudflare cache enabled? – Vishwa Commented May 8, 2019 at 5:08
  • Yes, but disabling it isn't doing anything either. – Ryflex Commented May 8, 2019 at 22:49
  • did you tried purge cache+put it in dev mode? anyways did you checked with file permissions? – Vishwa Commented May 9, 2019 at 4:38
  • Yes, yes and yes. Tried all of them :( – Ryflex Commented May 9, 2019 at 10:55
Add a comment  | 

1 Answer 1

Reset to default 0

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

I think your ftp doesn't right configuration

本文标签: Edited Child Theme39s quotheaderphpquot but it doesn39t appear to change the file