Jump to content

Blank Page Error Prestashop 1.5.4.1


Recommended Posts

Hi all,

 

I have a big issue. When a registred user is trying to go to the third step of the order ( at the url: mysite/address?back=order.php%3Fstep%3D1%26multi-shipping%3D0)I get a black page and nothing is shown.

 

I've tried to change the order mode form one page to 5 steps but I have the same issue.

 

Can you please help me with any ideas?

 

Thanks in advance!

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

I've done what you said and I got this message:

 

Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/home/coolmobi/public_html/themes/warehouse/address.tpl" on line 224 "<label for="phone_mobile">{l s='Mobile phone'<sup>*</sup>}</label>" - Unexpected "*"' in /home/coolmobi/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:665 Stack trace: #0 /home/coolmobi/public_html/tools/smarty/sysplugins/smarty_internal_templateparser.php(3144): Smarty_Internal_TemplateCompilerBase->trigger_template_error() #1 /home/coolmobi/public_html/tools/smarty/sysplugins/smarty_internal_templateparser.php(3209): Smarty_Internal_Templateparser->yy_syntax_error(40, '*') #2 /home/coolmobi/public_html/tools/smarty/sysplugins/smarty_internal_smartytemplatecompiler.php(105): Smarty_Internal_Templateparser->doParse(40, '*') #3 /home/coolmobi/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php(200): in/home/coolmobi/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 665

 

Any ideas?

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

I've solved this issue.

It was my mistake. I wanted to make to appear at the mobile phone field the * sign to look like an required field, but I've done a small mistake and I've put the code wrong. Just for you to know, I've my code looked like this

<label for="phone_mobile">{l s='Mobile phone' <sup>*</sup>}</label>

 

so the <sup>*</sup> was before ending the brackets.

 

The correct version should be like this:

 

<label for="phone_mobile">{l s='Mobile phone'}<sup>*</sup></label>

 

Thanks for your answer vekia

Best regards!

Link to comment
Share on other sites

  • 6 months later...

Hello Guys,

I've a similar issue: http://www.terragricola.com/prestashop

 

I've just turned prestashop into dev mode and I see following error:

Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/mnt/target03/360737/369651/www.terragricola.com/web/content/prestashop/modules/favoriteproducts/views/templates/hook/favoriteproducts-header.tpl" on line 28 "{if isset ($smarty.get.id_product)}" unknown tag "if"' in /mnt/target03/360737/369651/www.terragricola.com/web/content/prestashop/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:665 Stack trace: #0 /mnt/target03/360737/369651/www.terragricola.com/web/content/prestashop/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php(451): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unknown tag "if...', 28) #1 /mnt/target03/360737/369651/www.terragricola.com/web/content/prestashop/tools/smarty/sysplugins/smarty_internal_templateparser.php(2416): Smarty_Internal_TemplateCompilerBase->compileTag('if', Array, Array) #2 /mnt/target03/360737/369651/www.terragricola.com/web/content/prestashop/tools/smarty/sysplu in /mnt/target03/360737/369651/www.terragricola.com/web/content/prestashop/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 665

I had this issue when I moved the site from Aruba to new hosting (Registrar WHOIS Server: whois.rrpproxy.net)

 

I don't remember the version and at the moment I can't check it (I think v. 1.5.4.1)

 

I need to go online asap.. Please, someone could help me?

 

Regards

 

F.

Link to comment
Share on other sites

can you try with this:
 

{*
* 2007-2013 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author PrestaShop SA <[email protected]>
*  @copyright  2007-2013 PrestaShop SA
*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*}
<script type="text/javascript">
	var favorite_products_url_add = '{$link->getModuleLink('favoriteproducts', 'actions', ['process' => 'add'], false)|addslashes}';
	var favorite_products_url_remove = '{$link->getModuleLink('favoriteproducts', 'actions', ['process' => 'remove'], false)|addslashes}';
{if isset($smarty.get.id_product)}
	var favorite_products_id_product = '{$smarty.get.id_product|intval}';
{/if} 
</script>

Link to comment
Share on other sites

i'm trying to install again prestashop (fresh installation - not migration).

I have following issues...

1- The latest one could cause my issue? The error in the template could be caused by magic quotes?

2- On each of these folders I have the 755 permission... Why there is this error?

 

Oops! Please correct the item(s) below, and then click "Refresh information" to test the compatibility of your new system.
  • Recursive write permissions on files and folders:
  • ~/config/
  • ~/cache/
  • ~/log/
  • ~/img/
  • ~/mails/
  • ~/modules/
  • ~/themes/default/lang/
  • ~/themes/default/cache/
  • ~/translations/
  • ~/upload/
  • ~/download/
  • ~/sitemap.xml
  • PHP parameters:
  • PHP magic quotes option is enabled

 

Thanks

Link to comment
Share on other sites

The permission issues are on another installation on the same host.

 

This installation: http://www.terragric...com/prestashop/ is a migration from another host, I need do solve this issue if is possible because the site was already ready to go online.... But i need to solve the issue.

 

Thanks

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

I would double check that you ftp'ed up all the files when you migrated...and also clear smart  cache (or at least turn it off) to see if  issue is resolved.

 

also you have added to someone elses post with two different problems...you may in the future want to start a  new topic so it's not so confusing

Link to comment
Share on other sites

How can I turn it off? The files have been uploaded all.

The error is not a missing file but a sintax error... Don't youu think?

 

I ran another installation to check the compatibility of prestabox with the system; maybe could be the same issue...

 

Thank you very much

Link to comment
Share on other sites

syntax errors when we move files can very easily be a partial file upload.

 

in your case modules/favoriteproducts/views/templates/hook/favoriteproducts-header.tpl at line 28 seems messed up

 

if you do not know how to turn of magic quotes yourself,  then I suggest contact hosting company

Link to comment
Share on other sites

El Patron,

Do you confirm me that the issue has been caused by "magic quotes ON"?

 

I have only ftp access... How can I mange the magic quote settings?

 

favoriteproducts-header.tpl is the original file, i didn't modify it.

 

https://www.dropbox.com/s/dadadi913dr5hvv/favoriteproducts-header.tpl (I have tried the vekia's suggestion but without luck)

 

Thanks

Link to comment
Share on other sites

for magic quotes, (and I did not nor am I saying this is your issue) is best searched for outside of prestashop as it's a php directive.

 

you would (or your hosting) need to update the php.ini to turn off magic quotes

 

http://www.php.net/manual/en/security.magicquotes.disabling.php

 

re  ftp...try just re-ftping the file...to see if this helps issue...I don't want to debate what you did or did not do...I offer suggestions to try, so try them. :)

Link to comment
Share on other sites

  • 1 year later...

Greetings,

 

I am getting a blank page and and http 500 after I did and export....now the site is down... I am providing you with screenshots with missing files and our config.

 

Thank you for your help

 

for blank page, please enable PS debug mode and recreate issue

https://www.prestashop.com/forums/topic/224525-how-to-turn-on-error-reporting-for-debug-information/

Link to comment
Share on other sites

×
×
  • Create New...