Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #879837

    Hi Support
    When I try to edit my functions-enfold.php I get at error message.

    Message:
    “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.”

    ……….. can’t seem to find a solution on this issue.

    2)
    Also I “found” this in the top of my php:

    <?php
    if ( !defined(‘ABSPATH’) ){ die(); }
    global $avia_config;

    ………………Is this normal ??

    Please help:)

    #879882

    Hey MJ_Michaelsen,

    Please, can you explain your question very well and share with us the WP credentials and your website link?

    Best regards,
    John Torvik

    #879947

    Hi John
    Thanks for your reply, I´ll try to explain it the best way I can :)

    For starters I´ve been working on a new website on a subdomain – today I changed the url to the main domain and moved all folders to the public folder on the ftp-server. All seemed okay.

    Then I needed to change some sub-url in the my functions-enfold.php code and suddenly I got the error message: “Unable to communicate back with site to check for fatal errors, etc etc”
    First time I´ve ever seen that message. First I reinstalled WP and afterwards the enfold theme to overwrite any issues. But I still couldn´t ad text to the functions file. – so my question is: Have you come across a similar issue before and do you know what could be causing it?

    In my desperation to find a solution I contacted my web-support and they told me that the code snippet “if ( !defined(‘ABSPATH’) ){ die(); }” looks like a hack..?? And that it might have something to do with it..
    I googled it and found serveral different explanations. So again: Do you know what it is and if it has any negative effect?

    Hope this has been helpful.

    • This reply was modified 6 years, 12 months ago by MJ_Michaelsen.
    #880441

    Hi MJ_Michaelsen,

    That code is not a hack. What code are you adding? Can you check the server log for error, if the log was not cleared?

    Best regards,
    Victoria

    #880643

    Hi Victoria
    Thank you for your reply and for confirming that the code was legit.

    I honestly don’t know how or where to clear a server log or if I even should (: – But I’ve manage to edit directly in the .php on the server, and this seemed to work. Still can’t edit inside WP – so any suggestions toward a solution is most welcome. I’ve considered to use a plugin like WP Editor as a supplement, but I’ll prefer to solve it the “right way” if possible.

    Best regards

    • This reply was modified 6 years, 12 months ago by MJ_Michaelsen.
    #881206

    Hi Malene123,

    What you should do is use a child theme and put the code in the functions.php in the child theme, otherwise, the code will be lost on another theme update.

    Best regards,
    Victoria

    #881209

    ?? wrong thread ?? :))

    #881347

    Hi MJ_Michaelsen,

    No. Wrong name :) sorry but it was an answer to you about the child theme :)

    Best regards,
    Victoria

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.