functions.php empty after saving
-
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?
The page I need help with: [log in to see the link]
- The topic ‘functions.php empty after saving’ is closed to new replies.