View Single Post
  #1  
Old 07-21-2017, 05:22 PM
 
plumstripe plumstripe is offline
 

Member
  
Join Date: Sep 2016
Posts: 11
 

Default Cannot revert theme_tweaker error in webmaster mode

I added some code in webmaster mode to this file:
"order/invoice/parts/bottom.address.billing.twig"

Now the invoice shows up as a big "OOPS" face (see attachment)
Luckily it's a test store.

However, I cannot revert the theme_tweaker changes to remove the error.
I looked at the file in the theme_tweaker list and removed the bad code, however when I tried to save it I got an error saying that either the file didn't exist, or it wasn't editible.

So I just deleted the theme_tweaker file.
I checked that the original file was unchanged (it was) and rebuilt the cache but the error is still there.

BUT WHERE???? The theme_tweaker file isn't there. I have looked at all "order/invoice/parts/bottom.address.billing.twig" files (in 2 locations) and they are fine.
So where is this test store picking up the bad code from?

There's no point in having theme_tweaker if you are left in a situation where you cannot remove bad code, especially since twig has such complex syntax, errors are bound to happen.

I don't know if this is part of the bug where theme_tweaker files aren't actually being saved, but somehow x-cart thinks they are?
Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2017-07-21 at 6.21.00 PM.png
Views:	184
Size:	138.5 KB
ID:	4967  
__________________
5.3.1.3
Reply With Quote