gruiaz Posted July 23, 2013 Share Posted July 23, 2013 (edited) 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 July 23, 2013 by gruiaz (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted July 23, 2013 Share Posted July 23, 2013 run prestashop in dev mode - turn error reporting on then when you're on the page you mentioned some errors will appear - paste them here http://www.prestasho...-or-blank-page/ 1 Link to comment Share on other sites More sharing options...
gruiaz Posted July 23, 2013 Author Share Posted July 23, 2013 (edited) 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 July 23, 2013 by gruiaz (see edit history) Link to comment Share on other sites More sharing options...
gruiaz Posted July 23, 2013 Author Share Posted July 23, 2013 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 More sharing options...
qfabio83 Posted February 5, 2014 Share Posted February 5, 2014 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 More sharing options...
vekia Posted February 6, 2014 Share Posted February 6, 2014 can you show contents of file mentioned in error code? (/modules/favoriteproducts/views/templates/hook/favoriteproducts-header.tpl) Link to comment Share on other sites More sharing options...
qfabio83 Posted February 10, 2014 Share Posted February 10, 2014 Hello Vekia, https://www.dropbox.com/s/dadadi913dr5hvv/favoriteproducts-header.tpl Thanks a lot Link to comment Share on other sites More sharing options...
vekia Posted February 10, 2014 Share Posted February 10, 2014 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 More sharing options...
qfabio83 Posted February 10, 2014 Share Posted February 10, 2014 No luck, same error. Must I delete some cache before test it? thanks Link to comment Share on other sites More sharing options...
vekia Posted February 10, 2014 Share Posted February 10, 2014 very strange that this doesn't want to work, it's a default template file... what encoding this file use? make sure that it is UTF-8 without bom Link to comment Share on other sites More sharing options...
qfabio83 Posted February 10, 2014 Share Posted February 10, 2014 UTF-8 without BOM: https://www.dropbox.com/s/eehkd6agmnscyls/presta01.png Link to comment Share on other sites More sharing options...
qfabio83 Posted February 11, 2014 Share Posted February 11, 2014 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 More sharing options...
indus Posted February 11, 2014 Share Posted February 11, 2014 (edited) Prestashop requires a bit more permissions during installation, try a 775 during the install. or even a 777. Later you can set it back to 755. It is very important that you change permissions back immediately after installation. Edited February 11, 2014 by indus (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted February 11, 2014 Share Posted February 11, 2014 ask you hosting company to check the 'owner' of the files. Your shop domain (minus www) should be 'owner'. Link to comment Share on other sites More sharing options...
qfabio83 Posted February 11, 2014 Share Posted February 11, 2014 thank you for the answers... I can manage the permission issue easily (i think). The main problem is the latest error: PHP parameters: PHP magic quotes option is enabled I can't view my site: http://www.terragricola.com/prestashop/ Link to comment Share on other sites More sharing options...
El Patron Posted February 11, 2014 Share Posted February 11, 2014 thank you for the answers... I can manage the permission issue easily (i think). The main problem is the latest error: PHP parameters: PHP magic quotes option is enabled I can't view my site: http://www.terragricola.com/prestashop/ did you first resolve your permission issues? Link to comment Share on other sites More sharing options...
qfabio83 Posted February 11, 2014 Share Posted February 11, 2014 (edited) 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 February 11, 2014 by qfabio83 (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted February 11, 2014 Share Posted February 11, 2014 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 More sharing options...
qfabio83 Posted February 11, 2014 Share Posted February 11, 2014 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 More sharing options...
El Patron Posted February 11, 2014 Share Posted February 11, 2014 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 More sharing options...
qfabio83 Posted February 11, 2014 Share Posted February 11, 2014 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 More sharing options...
El Patron Posted February 11, 2014 Share Posted February 11, 2014 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 More sharing options...
riagie Posted March 3, 2015 Share Posted March 3, 2015 Parse error: syntax error, unexpected $end, expecting T_FUNCTION in /home/u302869797/public_html/override/controllers/front/AddressController.php on line 6 ?? Link to comment Share on other sites More sharing options...
brianFurniture Posted March 3, 2015 Share Posted March 3, 2015 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 Link to comment Share on other sites More sharing options...
El Patron Posted March 3, 2015 Share Posted March 3, 2015 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 More sharing options...
Recommended Posts