Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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,
    xuzj

    #972523

    Hey xuzj,

    can you please explain us exactly what you need to do?
    Not sure we understand.

    Best regards,
    Basilis

    #972633

    Hi 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,
    xuzj

    #972899

    Hi 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,
    Victoria

    #972933

    Hi Victoria,
    Thank you for your guidance, I know more about it.

    Best regards,
    xuzj

    #973141

    Hi,

    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,
    Rikard

    #973635

    Hi Rikard,
    Thanks a lot, you can close this topic.

    Best regards,
    xuzj

    #973639

    Hi,

    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

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘Edit Themes’ is closed to new replies.