Page 1 of 1

[SOLVED] Theme editor reverting files - caused by installatron backup process

Posted: Mon Dec 30, 2024 1:49 am
by abarn
I've come across multiple times where I've modified a file, like the footer, only to come back in a few days and find the modification not there. Anyone else experience this? And yes, please spare me the "4.x is not ready for commercial use yet" posts. Just wondering if i'm not alone and should avoid using the theme editor.

Re: Theme editor reverting files?

Posted: Mon Dec 30, 2024 4:38 pm
by softmonke
abarn wrote:
Mon Dec 30, 2024 1:49 am
I've come across multiple times where I've modified a file, like the footer, only to come back in a few days and find the modification not there. Anyone else experience this? And yes, please spare me the "4.x is not ready for commercial use yet" posts. Just wondering if i'm not alone and should avoid using the theme editor.
That's strange - from what I know, Theme Editor changes are stored directly in the database, and the changes are pulled from the database to be displayed on your frontend. When you say "... find the modification not there", are the changes still there under "Theme History" at Design » Theme Editor but the changes at the frontend are gone or do you mean the changes under "Theme History" are gone entirely?

Re: Theme editor reverting files?

Posted: Mon Dec 30, 2024 8:35 pm
by paulfeakins
abarn wrote:
Mon Dec 30, 2024 1:49 am
I've modified a file
What file exactly?

Re: Theme editor reverting files?

Posted: Tue Dec 31, 2024 3:45 am
by abarn
i'm testing to see if the cpanel Installatron backup was restoring files by disabling it, so far no changes so that may have been the culprit.

Re: Theme editor reverting files?

Posted: Tue Dec 31, 2024 7:28 pm
by paulfeakins
abarn wrote:
Tue Dec 31, 2024 3:45 am
i'm testing to see if the cpanel Installatron backup was restoring files by disabling it, so far no changes so that may have been the culprit.
Ok and what file exactly did you edit?

Re: Theme editor reverting files?

Posted: Wed Jan 01, 2025 1:43 am
by abarn
common/footer

Re: Theme editor reverting files?

Posted: Thu Jan 02, 2025 7:19 pm
by softmonke
abarn wrote:
Tue Dec 31, 2024 3:45 am
i'm testing to see if the cpanel Installatron backup was restoring files by disabling it, so far no changes so that may have been the culprit.
This does sound like a likely cause since the changes made in Theme Editor is stored directly in your database. Unlikely that the changes done will just disappear magically. Something must be updating your database or someone is deleting changes made via the Theme Editor.

Re: Theme editor reverting files?

Posted: Thu Jan 02, 2025 8:01 pm
by paulfeakins
abarn wrote:
Wed Jan 01, 2025 1:43 am
common/footer
Ok but that's not the full path to the file ...

Re: Theme editor reverting files?

Posted: Wed Jan 08, 2025 12:52 am
by abarn
CONFIRMED, it was the installatron backup process.

Re: Theme editor reverting files?

Posted: Wed Jan 08, 2025 6:28 pm
by paulfeakins
abarn wrote:
Wed Jan 08, 2025 12:52 am
CONFIRMED, it was the installatron backup process.
Great! So please add [SOLVED] to the start of this topic title.

Re: Theme editor reverting files?

Posted: Wed Jan 08, 2025 9:23 pm
by OSWorX
abarn wrote:
Wed Jan 08, 2025 12:52 am
CONFIRMED, it was the installatron backup process.
Exactly one of the reasons, why this here should be read before posting: Forum Rules