X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Cannot revert theme_tweaker error in webmaster mode (https://forum.x-cart.com/showthread.php?t=75528)

plumstripe 07-21-2017 05:22 PM

Cannot revert theme_tweaker error in webmaster mode
 
1 Attachment(s)
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?

kevinrm 07-21-2017 08:05 PM

Re: Cannot revert theme_tweaker error in webmaster mode
 
Re-cache?

plumstripe 07-24-2017 10:27 AM

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

kevinrm 07-24-2017 08:59 PM

Re: Cannot revert theme_tweaker error in webmaster mode
 
Sometimes you have to re-deploy the store I noticed...

qualiteam 07-24-2017 11:49 PM

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.

plumstripe 07-25-2017 10:12 AM

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!

plumstripe 07-25-2017 10:14 AM

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.

qualiteam 07-27-2017 12:56 AM

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.


All times are GMT -8. The time now is 09:32 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.