Jump to content

[SOLVED] Shipping order blank page


Recommended Posts

I'm facing an issue with my PS webstore.

 

When i'm buying a product, fill the shipping address then click next for the next step is giving me a blank page, and i don't know where to activavte the debug mode.

 

This is the complete url:

 

http://www.taxco.com.ve/index.php?controller=order&step=1

 

In that step 1 it just turns out to be a blank page, no error, no warnings, i know i can set the errors to actually show up :

_PS_MODE_DEV_ 

but don't know where in this case.

 

I'm using PS 1.5.6.0 btw.

 

Any clues about this?

 

Thanks in advance!

Edited by vekia (see edit history)
Link to comment
Share on other sites

:) Thanks vekia, you awesome as always...

 

This is the error i'm getting

Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/var/www/vhosts/taxco.com.ve/httpdocs/themes/taxco/order-address.tpl" on line 88 "{if !$smarty.foreach.inv_loop.first},{/if}{$field_name|json_encode}" unknown modifier "json_encode"' in /var/www/vhosts/taxco.com.ve/httpdocs/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:667 Stack trace: #0 /var/www/vhosts/taxco.com.ve/httpdocs/tools/smarty/sysplugins/smarty_internal_compile_private_modifier.php(132): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unknown modifie...', 88) #1 /var/www/vhosts/taxco.com.ve/httpdocs/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php(475): Smarty_Internal_Compile_Private_Modifier->compile(Array, Object(Smarty_Internal_SmartyTemplateCompiler), Array, NULL, NULL) #2 /var/www/vhosts/taxco.com.ve/httpdocs/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php(259): Smarty_Internal_TemplateCompilerBase->callTagCompil in /var/www/vhosts/taxco.com.ve/httpdocs/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 667

at http://www.taxco.com.ve/index.php?controller=order&step=1

 

Any ideas?

Link to comment
Share on other sites

Yes, but why?

 

This is the code:

{foreach from=$formatedAddressFieldsValuesList key=id_address item=type}
		formatedAddressFieldsValuesList[{$id_address}] =
		{ldelim}
			'ordered_fields':[
				{foreach from=$type.ordered_fields key=num_field item=field_name name=inv_loop}
					{if !$smarty.foreach.inv_loop.first},{/if}{$field_name|json_encode}
				{/foreach}
			],
			'formated_fields_values':{ldelim}
					{foreach from=$type.formated_fields_values key=pattern_name item=field_name name=inv_loop}
						{if !$smarty.foreach.inv_loop.first},{/if}{$pattern_name|json_encode}:{$field_name|json_encode}
					{/foreach}
				{rdelim}
		{rdelim}
	{/foreach}

Can't figure it out?

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...