ARhifi.dk Posted November 12, 2010 Share Posted November 12, 2010 First, this piece of software is one of the best I have ever seen on the Internet, it is fast and it is not that hard to customize.Approx. 50 hours ago I downloaded Prestashop for the first time and installed it, with no problems, on the server "out in town".Then I have customized Prestashop to my needs and now I have a minor error, that is mandatory to be solved before I can open the webstore, and before I put goods into the store.The error:The first thing to be shown on the front end user screen is the following symbols: ?> ?>, while the screen is still white.This is of course a php error, but how do I find this error, how do I debug it?You can see it here in the top of the screen: www.ARhifi.dk/store Thank you for your help, "a big supporter of PrestaShop may be born". Link to comment Share on other sites More sharing options...
MrBaseball34 Posted November 12, 2010 Share Posted November 12, 2010 Check these 3 files and the other files that are required/included by them.config.inc.php, init.php, or header.phpThose are the files that are processed before the code that outputs this HTML .. Link to comment Share on other sites More sharing options...
svetaines1 Posted November 12, 2010 Share Posted November 12, 2010 First, this piece of software is one of the best I have ever seen on the Internet, it is fast and it is not that hard to customize.Approx. 50 hours ago I downloaded Prestashop for the first time and installed it, with no problems, on the server "out in town".Then I have customized Prestashop to my needs and now I have a minor error, that is mandatory to be solved before I can open the webstore, and before I put goods into the store.The error:The first thing to be shown on the front end user screen is the following symbols: ?> ?>, while the screen is still white.This is of course a php error, but how do I find this error, how do I debug it?You can see it here in the top of the screen: www.ARhifi.dk/store Thank you for your help, "a big supporter of PrestaShop may be born". Good design mate Looks great!If I understand correctly, you have already enable display error option in config/config.inc.php?ini_set('display_errors', 'on'); define('_PS_DEBUG_SQL_', true); Link to comment Share on other sites More sharing options...
ARhifi.dk Posted November 12, 2010 Author Share Posted November 12, 2010 Thank you for your help, but nothing of the suggested did help. What then?To locate the error I made a modification of the header.php file, see MyTest1, MyTest2 and MyTest3: <?php // P3P Policies (http://www.w3.org/TR/2002/REC-P3P-20020416/#compact_policies) header('P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"'); require_once(dirname(__FILE__).'/init.php'); ?>MyTest1<?php /* CSS */ $css_files[_THEME_CSS_DIR_.'global.css'] = 'all'; ?>MyTest2<?php /* Hooks are volontary out the initialize array (need those variables already assigned) */ $smarty->assign(array( 'HOOK_HEADER' => Module::hookExec('header'), 'HOOK_LEFT_COLUMN' => Module::hookExec('leftColumn'), 'HOOK_TOP' => Module::hookExec('top'), 'static_token' => Tools::getToken(false), 'token' => Tools::getToken(), 'priceDisplayPrecision' => _PS_PRICE_DISPLAY_PRECISION_, 'content_only' => intval(Tools::getValue('content_only')) )); ?>MyTest3<?php if(isset($css_files) AND !empty($css_files)) $smarty->assign('css_files', $css_files); if(isset($js_files) AND !empty($js_files)) $smarty->assign('js_files', $js_files); $smarty->display(_PS_THEME_DIR_.'header.tpl'); ?> The displayed result is:MyTest1MyTest2?> ?> MyTest3 , which means the error is here: /* Hooks are volontary out the initialize array (need those variables already assigned) */ $smarty->assign(array( 'HOOK_HEADER' => Module::hookExec('header'), 'HOOK_LEFT_COLUMN' => Module::hookExec('leftColumn'), 'HOOK_TOP' => Module::hookExec('top'), 'static_token' => Tools::getToken(false), 'token' => Tools::getToken(), 'priceDisplayPrecision' => _PS_PRICE_DISPLAY_PRECISION_, 'content_only' => intval(Tools::getValue('content_only')) )); , but I am not sure what this code is doing and where the error is!Any sugestions? Link to comment Share on other sites More sharing options...
ARhifi.dk Posted November 12, 2010 Author Share Posted November 12, 2010 The error is only displayed, when I enable the Language Module/Block and the Currency Module/Block.If I disable them the error is gone.It may be a CSS problem or in one of those two modules.So far so good. Link to comment Share on other sites More sharing options...
ARhifi.dk Posted November 13, 2010 Author Share Posted November 13, 2010 Error solved The reason was an error in the blocklanguage and an error in the blockcurrencies, both in the /modules folder.I restored the original. Link to comment Share on other sites More sharing options...
Recommended Posts