• We’re using WordPress 6.4.3 and a custom theme.

    After adding about 3 lines of code to the functions.php in the Theme Editor and hitting the save button I saw an error that something went wrong (I do not remember the exact message).

    Maybe I entered some invalid PHP code but I am not sure about this.

    Result was that the functions.php was completely empty. Our site wasn’t working anymore. Admin area remained working normally. After pasting a three weeks old version of functions.php in Theme Editor I made it working again.

    I wasn’t able to reproduce this issue in the staging environment.

    Is this a known issue? Is there anything we can do to assure that this does not occur again in the future?

    • This topic was modified 9 months, 2 weeks ago by Abid.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Moderator t-p

    (@t-p)

    error that something went wrong (I do not remember the exact message).

    This could be due to a simple internet connection issue, or may be the server is temporarily offline, etc. This sort of connectivity issue usually resolves itself after a while.

    I made it working again

    ??

Viewing 1 replies (of 1 total)
  • The topic ‘functions.php empty after saving’ is closed to new replies.