Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Cannot revert theme_tweaker error in webmaster mode

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #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
  #2  
Old 07-21-2017, 08:05 PM
 
kevinrm kevinrm is offline
 

X-Wizard
  
Join Date: Aug 2003
Posts: 1,003
 

Default Re: Cannot revert theme_tweaker error in webmaster mode

Re-cache?
__________________
X-Cart 5.4.1.39 Live
PHP 7.4.33
5.5.5-10.3.38-MariaDB MariaDB
Apache 2.4
CENTOS 7.8 64Bit Single Quad-Core E3-1241v3 3.4Ghz 8M 1600 w/ HT
32GB RAM 2x 512GB Samsung 850 Pro SSD RAID 1
Reply With Quote
  #3  
Old 07-24-2017, 10:27 AM
 
plumstripe plumstripe is offline
 

Member
  
Join Date: Sep 2016
Posts: 11
 

Default Re: Cannot revert theme_tweaker error in webmaster mode

Hi thanks for the suggestion to rebuild cache but I had already done that twice before posting!
No change
__________________
5.3.1.3
Reply With Quote
  #4  
Old 07-24-2017, 08:59 PM
 
kevinrm kevinrm is offline
 

X-Wizard
  
Join Date: Aug 2003
Posts: 1,003
 

Default Re: Cannot revert theme_tweaker error in webmaster mode

Sometimes you have to re-deploy the store I noticed...
__________________
X-Cart 5.4.1.39 Live
PHP 7.4.33
5.5.5-10.3.38-MariaDB MariaDB
Apache 2.4
CENTOS 7.8 64Bit Single Quad-Core E3-1241v3 3.4Ghz 8M 1600 w/ HT
32GB RAM 2x 512GB Samsung 850 Pro SSD RAID 1
Reply With Quote
  #5  
Old 07-24-2017, 11:49 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Cannot revert theme_tweaker error in webmaster mode

It may be your browser that cached the old version of the page and now is showing it instead of the new one.
Try to clear your browser cache.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #6  
Old 07-25-2017, 10:12 AM
 
plumstripe plumstripe is offline
 

Member
  
Join Date: Sep 2016
Posts: 11
 

Default Re: Cannot revert theme_tweaker error in webmaster mode

I'm not looking at this through a url, I'm looking at it through webmaster mode in admin panel.
So I don't believe the cache issue is relevant

But just in case, I have also run the admin panel on the test store in a new incognito browser window so the cache issue is not relevant.

The problem is not my browser, it's that x-cart isn't allowing me to revert theme_tweaker changes I made that broke the 'order processed' screen

it's a copy of the store I was experimenting with, but had this been the live store we would not have been able to use the store, or had to use a backup copy.

Theme_tweaker changes should be reversable and in this case it wasn't. A file was shown which seemed to be the one I changed, but when I tried to edit it, x-cart said it couldn't be saved, or didn't exist.

I'm assuming that is a bug!
__________________
5.3.1.3
Reply With Quote
  #7  
Old 07-25-2017, 10:14 AM
 
plumstripe plumstripe is offline
 

Member
  
Join Date: Sep 2016
Posts: 11
 

Default Re: Cannot revert theme_tweaker error in webmaster mode

Oh, and I also uploaded the original files again, redeployed the store, rebuilt the cache both through admin panel and manually (about 4 or 5 times).

All no use.
__________________
5.3.1.3
Reply With Quote
  #8  
Old 07-27-2017, 12:56 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Cannot revert theme_tweaker error in webmaster mode

I would say to check if the "theme_tweaker" directory is empty on the server, but you said that you removed the file from there.

Also, on my local X-Cart installation there are 3 directories with bottom.address.billing.twig file:
- skins/common/order/invoice/parts/bottom.address.billing.twig
- skins/mail/common/order/invoice/parts/bottom.address.billing.twig
- skins/pdf/customer/order/invoice/parts/bottom.address.billing.twig
Did you rewrite these files with their unmodified versions from the X-Cart distributive package?

Perhaps, you are better to contact our support staff so that they could investigate this on your server.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:32 PM.

   

 
X-Cart forums © 2001-2020