
-
AuthorPosts
-
June 12, 2018 at 3:38 pm #971714
Hi,
Unable to update “Enfold Child: Theme Functions (functions.php)”
click”update file”, then the following message appears:
“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.”
(php5.6, wordpress4.9.6, enfold4.4.1)Best regards,
xuzjJune 13, 2018 at 10:45 pm #972523Hey xuzj,
can you please explain us exactly what you need to do?
Not sure we understand.Best regards,
BasilisJune 14, 2018 at 6:50 am #972633Hi Basilis,
Before we update to wordpress4.9.6, enfold4.4.1, For example, we add the following contents in “Enfold Child: Theme Functions (functions.php)”:
// Register new icon as a theme icon
function avia_add_custom_icon($icons) {
$icons[‘wechat’] = array( ‘font’ =>’fontello’, ‘icon’ => ‘ue801’);
$icons[‘tencent-weibo’] = array( ‘font’ =>’fontello’, ‘icon’ => ‘ue802’);
return $icons;
}
add_filter(‘avf_default_icons’,’avia_add_custom_icon’, 10, 1);Then, click”update file”, added content is saved and working properly. But now, we update to wordpress4.9.6, enfold4.4.1, click ”update file”, a message appears:
“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.”
Added content (or, just delete some previously added content.) cannot be saved. (we have updated to php7.0, and the added content should be no grammatical errors, because they can add normally in cPanel>functions.php. )Best regards,
xuzjJune 14, 2018 at 4:49 pm #972899Hi xuzj,
It means that you need to edit the file via FTP. Sometimes this happens due to security settings on the server or there is an error in the code added.
Best regards,
VictoriaJune 14, 2018 at 5:25 pm #972933Hi Victoria,
Thank you for your guidance, I know more about it.Best regards,
xuzjJune 15, 2018 at 8:16 am #973141Hi,
Thanks for the feedback. Please let us know if you should need any further help on the topic or if we can close it.
Best regards,
RikardJune 16, 2018 at 4:55 pm #973635Hi Rikard,
Thanks a lot, you can close this topic.Best regards,
xuzjJune 16, 2018 at 5:02 pm #973639Hi,
I’m glad you were able to get this corrected. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Edit Themes’ is closed to new replies.