domorodecmezilidmi Posted November 7, 2014 Share Posted November 7, 2014 (edited) Hi guys, just a quick question - all went good (even all orders) until now that I am trying to process some test orders but with cash on delivery this works good but on bank wire payment this ends up with blank page (mypage.cz/address/module/bank wire/validation). But order is created in administration and client gets email. Do you think that this would be solution? (see link below) https://github.com/PrestaShop/PrestaShop/commit/dc5526c84c06dd2898961ea284bed625c814c7b2 Edited November 12, 2014 by domorodecmezilidmi (see edit history) Link to comment Share on other sites More sharing options...
prestatent Posted November 7, 2014 Share Posted November 7, 2014 Hi To find out what the error is first edit /config/defines.inc.php. Change the line - define('_PS_MODE_DEV_', false); TO define('_PS_MODE_DEV_', true);Save file and remove cache/class_index.php. Process an order again and whatever is causing the blank page should show as an error. This will help you get to the bottom of the issue. 1 Link to comment Share on other sites More sharing options...
domorodecmezilidmi Posted November 7, 2014 Author Share Posted November 7, 2014 Ok I will check at home but you know this is very weird. I have not done any change, maybe some update of modules recommended for updating and I have also modified only one subject of one template. I will reply later on. Anyway thanks so far. Link to comment Share on other sites More sharing options...
domorodecmezilidmi Posted November 7, 2014 Author Share Posted November 7, 2014 (edited) Hi so I am getting this error: Warning: Cannot modify header information - headers already sent by (output started at /data/web/virtuals/45544/virtual/www/themes/vp_coffee/modules/bankwire/translations/cs.php:1) in /data/web/virtuals/45544/virtual/www/classes/Tools.php on line 110 Here I put what I found in tools.php so if anyone could advise. /** * Redirect user to another page * * @param string $url Desired URL * @param string $baseUri Base URI (optional) * @param Link $link * @param string|array $headers A list of headers to send before redirection */ public static function redirect($url, $base_uri = __PS_BASE_URI__, Link $link = null, $headers = null) { if (!$link) $link = Context::getContext()->link; { if (strpos($url, $base_uri) === 0) $url = substr($url, strlen($base_uri)); if (strpos($url, 'index.php?controller=') !== false && strpos($url, 'index.php/') == 0) { $url = substr($url, strlen('index.php?controller=')); if (Configuration::get('PS_REWRITING_SETTINGS')) $url = Tools::strReplaceFirst('&', '?', $url); } $explode = explode('?', $url); // don't use ssl if url is home page // used when logout for example $use_ssl = !empty($url); $url = $link->getPageLink($explode[0], $use_ssl); if (isset($explode[1])) $url .= '?'.$explode[1]; } // Send additional headers if ($headers) { if (!is_array($headers)) $headers = array($headers); foreach ($headers as $header) header($header); } header('Location: '.$url); exit; } Edited November 7, 2014 by domorodecmezilidmi (see edit history) Link to comment Share on other sites More sharing options...
domorodecmezilidmi Posted November 9, 2014 Author Share Posted November 9, 2014 (edited) I have asked my hosting to restore all my files and database from 2.11 when all was without any issue so now it works good. I still don´t know any advise or any causing so maybe some more practice guy from this forum could give an advice not to happen it again it the future. Edited November 9, 2014 by domorodecmezilidmi (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted November 12, 2014 Share Posted November 12, 2014 hello you modified translation file manually? Link to comment Share on other sites More sharing options...
domorodecmezilidmi Posted November 12, 2014 Author Share Posted November 12, 2014 (edited) Hi - I have only changed some translations in back office and that is all. Maybe I changed also color of button in file but nothing else. That is weird right? from that on I am making before each modification back up. Do you think that would be an issue? Edited November 12, 2014 by domorodecmezilidmi (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted November 12, 2014 Share Posted November 12, 2014 it looks like file: /themes/vp_coffee/modules/bankwire/translations/cs.php was modified manually in editor like windows notepad. in some cases (depending on hosting configuration) if someone will modify file in bad software, shop will spawn error like you have (had?) 1 Link to comment Share on other sites More sharing options...
domorodecmezilidmi Posted November 12, 2014 Author Share Posted November 12, 2014 (edited) Waw, thank you Vekia, this could be one of explanation. I am not sure if I have done any modification in cs.php but I always use notepad. I will find some better editor for this problematic. Edited November 12, 2014 by domorodecmezilidmi (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted November 12, 2014 Share Posted November 12, 2014 use free notepad++ it will save files with correct encoding :-) Link to comment Share on other sites More sharing options...
Essemme_Forniture Posted February 5, 2015 Share Posted February 5, 2015 use free notepad++ it will save files with correct encoding :-) Hello Vekia, i've the same error, i mean i've some error in my prestashop, prestashop loads endlessly when I order confirmation. even when i save a new product, but actually saves BUT does not give me the ok in the sense remains in charge until it reaches the timeout. With the order the same thing, but times out the order I actually arrived. As if there was an error and the system goes in timeout. I have a different theme from the original, could be a problem for some string, file index? The strange thing, and I repeat strange, is that if the first time charge indefinitely, once fate, the more times it's all good, as when the desktop click the right mouse button the first time, it takes a while 'to load options, but then everything is faster, I think for the ram ... I know how to give a logical explanation? If I have not explained well let me know. I red that could be a manual translate.... uhmmmm i did some manual translate with adobe dreamwaver, so ehhee if is that the problem how can i find all the italian manual translation? let me know please if there's a method Thanks best regards Link to comment Share on other sites More sharing options...
Recommended Posts