| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Cannot revert theme_tweaker error in webmaster mode | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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?
__________________
5.3.1.3 |
|||||||
#2
|
|||||||
|
|||||||
![]() 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 |
|||||||
#3
|
|||||||
|
|||||||
![]() Hi thanks for the suggestion to rebuild cache but I had already done that twice before posting!
No change
__________________
5.3.1.3 |
|||||||
#4
|
|||||||
|
|||||||
![]() 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 |
|||||||
#5
|
|||||||||
|
|||||||||
![]() 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 |
|||||||||
#6
|
|||||||
|
|||||||
![]() 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 |
|||||||
#7
|
|||||||
|
|||||||
![]() 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 |
|||||||
#8
|
|||||||||
|
|||||||||
![]() 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 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|