sofiagg Posted January 27, 2015 Share Posted January 27, 2015 Good night, and sorry for my bad english. Everytime I try to add a new product, or modify it, when I click the SAVE button, the new page gets totally in BLANK. It doesn't matter if I click Save or Save and Stay, the result is exactly the same. So I checked out my debug errors: Warning: Cannot modify header information - headers already sent by (output started at /home/ghihtkbi/public_html/config/defines.inc.php:1) in /home/ghihtkbi/public_html/classes/controller/FrontController.php on line 654Warning: Cannot modify header information - headers already sent by (output started at /home/ghihtkbi/public_html/config/defines.inc.php:1) in /home/ghihtkbi/public_html/classes/controller/FrontController.php on line 655 These two previous lines state the following: // Don't send any cookie Context::getContext()->cookie->disallowWriting(); if (defined('_PS_MODE_DEV_') && _PS_MODE_DEV_ && $_SERVER['REQUEST_URI'] != __PS_BASE_URI__) die('[Debug] This page has moved<br />Please use the following URL instead: <a href="'.$final_url.'">'.$final_url.'</a>'); $redirect_type = Configuration::get('PS_CANONICAL_REDIRECT') == 2 ? '301' : '302'; header('HTTP/1.0 '.$redirect_type.' Moved'); header('Cache-Control: no-cache'); Tools::redirectLink($final_url); The error is indicated in these three last lines. In SEO+URL I have already changed all the possible options and it still doesn't work. Warning: Cannot modify header information - headers already sent by (output started at /home/ghihtkbi/public_html/config/defines.inc.php:1) in /home/ghihtkbi/public_html/classes/Tools.php on line 132 Now the tools error: public static function redirectLink($url) { { if (strpos($url, __PS_BASE_URI__) !== false && strpos($url, __PS_BASE_URI__) == 0) $url = substr($url, strlen(__PS_BASE_URI__)); if (strpos($url, 'index.php?controller=') !== false && strpos($url, 'index.php/') == 0) $url = substr($url, strlen('index.php?controller=')); $explode = explode('?', $url); $url = Context::getContext()->link->getPageLink($explode[0]); if (isset($explode[1])) $url .= '?'.$explode[1]; } header('Location: '.$url); exit; } I think that the problem might reside in possible code problem of the languages: On the one hand “es”, and on the other “sp” (for español, or spanish). I have already made several trials and in the english language I didn't have problem when introducing the new products, so I think that the problem may be there, but I don't know how to fix it!!! ANY SOLUTIONS PLEASE?? I'M STUCK HERE and I don't have any idea of what to do! :S Thanks in advance Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now