argamanza Posted January 16, 2013 Share Posted January 16, 2013 Hey, i just tested my site after a lot of modifications, And in the order process (the 5 stage type) , When i press Next after the summary, i get an: Server error The website encountered an error while retrieving https://www.URL.com/order?step=1. It may be down for maintenance or configured incorrectly. Here are some suggestions: Reload this webpage later. HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request. I tried being a guest and registered account, doesn't matter, If i change the address bar to "https://URL.com/order?step=2" it continues like nothing happened. Which file is not alright? How can i find what's the cause to the error? thanks! Link to comment Share on other sites More sharing options...
El Patron Posted January 16, 2013 Share Posted January 16, 2013 modify config/defines.inc.php to turn on error reporting, so you know why you are getting 500 @ini_set('display_errors', 'on'); Link to comment Share on other sites More sharing options...
argamanza Posted January 16, 2013 Author Share Posted January 16, 2013 (edited) Thanks, I found out that if i remove this part of the code it works fine (as far as i checked) What does that string do and why does it cause that error? thanks! It's in "tools/js_minify/jsmin.php" if (ord($this->a) <= self::ORD_LF) { throw new JSMin_UnterminatedStringException( "JSMin: Unterminated String at byte " . $this->inputIndex . ": {$str}"); } Edited January 16, 2013 by argamanza (see edit history) Link to comment Share on other sites More sharing options...
argamanza Posted January 16, 2013 Author Share Posted January 16, 2013 (edited) Can anyone help me with this? Pretty urgent, Thank you! Here's the error that shows on the web page: Fatal error: Uncaught exception 'JSMin_UnterminatedStringException' with message 'JSMin: Unterminated String at byte 904: "' in /home/USER/public_html/tools/js_minify/jsmin.php:192 Stack trace: #0 /home/USER/public_html/tools/js_minify/jsmin.php(143): JSMin->action(1) #1 /home/USER/public_html/tools/js_minify/jsmin.php(83): JSMin->min() #2 /home/USER/public_html/classes/Media.php(134): JSMin::minify('// ???var order...') #3 /home/USER/public_html/classes/Media.php(121): MediaCore::packJS('// ???var order...') #4 [internal function]: MediaCore::packJSinHTMLpregCallback(Array) #5 /home/USER/public_html/classes/Media.php(104): preg_replace_callback('/\s*(<script\b[...', Array, '<script type="t...') #6 /home/USER/public_html/config/smarty.config.inc.php(148): MediaCore::packJSinHTML('<script type="t...') #7 /home/USER/public_html/tools/smarty/sysplugins/smarty_internal_filter_handler.php(60): smartyPackJSinHTML('<script type="t...', Object(Smarty_Internal_Template)) #8 /home/USER/public_htm in /home/USER/public_html/tools/js_minify/jsmin.php on line 192 I've also noticed that if i disable Compress inline JavaScript in HTML after "smarty compile" execution I can access the 2nd and 3rd steps of check out. Edited January 16, 2013 by argamanza (see edit history) Link to comment Share on other sites More sharing options...
argamanza Posted January 16, 2013 Author Share Posted January 16, 2013 Alright, I'm sorry for the spam but i have tested it a bit and it seems like when i putt the " symbol (Quotation mark) in the address (which incidentally found in My address) it causes the error. Any idea how i can fix it? thank you again. Link to comment Share on other sites More sharing options...
argamanza Posted January 18, 2013 Author Share Posted January 18, 2013 ..Anyone?? Link to comment Share on other sites More sharing options...
Arafat Jahan Posted March 5, 2013 Share Posted March 5, 2013 https://github.com/PrestaShop/PrestaShop/commit/dc5526c84c06dd2898961ea284bed625c814c7b2 this will solve Link to comment Share on other sites More sharing options...
Recommended Posts