X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Error in Checkout (https://forum.x-cart.com/showthread.php?t=36914)

techdesign 01-21-2008 01:31 PM

Error in Checkout
 
I have installed x-cart successfully several times, however I am having some problems with the checkout on my most recent install. I'm getting some sort of errors like ~~~~|lbl_profile_details| ||~~~~ on the top of the page, and on the bottom of the page it only shows the first few lines of the register.tpl.

https://cassiesgifts.com/cassies/cart.php?mode=checkout

What is broken? any help is appreciated.

poil11 01-21-2008 03:27 PM

Re: Error in Checkout
 
im new, but i think that the languages file got messed up or didn't get installed.

techdesign 01-22-2008 03:31 AM

Re: Error in Checkout
 
thats what i thought, I checked the languages files, the referenced language files exist, but don't seem to be recognized.

balinor 01-22-2008 04:24 AM

Re: Error in Checkout
 
Please don't double post, I have removed your second post on this topic. Also moving this to the Template Editing forum, as it doesn't have anything to do with payment methods.

I'd suggest restoring the templates in question, as they may be corrupt.

techdesign 01-23-2008 01:00 PM

Re: Error in Checkout
 
Sorry about the double post, It didn't appear to have gone through.

I have restored all the customer templates. but I'm still having problems. I'm pretty sure the customer/main/register.tpl is messed up, but I took the original files from the x-cart install package and replaced all the templated, but I'm still having problems, is there something wrong with the 4.1.9 templates?

Customers can register outside of the checkout process, but not within. I've gone through the template and it looks like all of the fields exist on the template, but only a few appear on the page. Could there be a database problem that this is related to?

BritSteve 01-25-2008 07:50 AM

Re: Error in Checkout
 
I am now experiencing the same problem, I have restored the database from yesterday and am waiting for a filesystem restore from yesterday to see if that solves the problem.

Was there any resolution to this issue?

Thanks

techdesign 01-28-2008 05:45 PM

Re: Error in Checkout
 
no, I never got a resolution. I've reinstalled several times now, with similar results. I'm beginning to think that this distribution I have has problems.

BritSteve 02-01-2008 07:15 AM

Re: Error in Checkout
 
Finally located the problem. In my case a smarty template was being compiled into invalid code. If you check the xcart logs, you can see which compiled template has the problem. Deleting the compiled template forces a recompile, but the template will still have the error. I edited the compiled template and corrected the error, and everything works now.

I guess that Smarty has a bug in the compiler that produces invalid php code, even though the code in the template is correct. In my case the compiled template had a missing quote.

Hope this helps others who are experiencing this problem, sure is easier to fix than restoring from backup!

Steve

techdesign 02-11-2008 07:16 PM

Re: Error in Checkout
 
I looked at the logs and this is the error I keep getting:

[09-Feb-2008 15:52:15] PHP Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 181991 bytes) in /website.com/store/include/func/func.templater.php on line 109


This is what line 109 shows:

$x = preg_replace_callback($regexp_occurences, 'func_convert_lang_var_callback', $tpl);

Could someone help me with the problem on this line?

Thanks

X-cart Gold 4.1.9


All times are GMT -8. The time now is 07:17 PM.

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