siminicam Posted March 23, 2012 Share Posted March 23, 2012 Hello, I've just installed 1.5 and updated to the latest version from SVN (14240) with the default theme and demo products and I have 2 small issues. 1. Whenever I try to activate another language (from the list of default languages installed) and I access my website "http://www.example.com" I am redirected to "http://www.example.com/en" and my page contains this message: ------------------ Not Found The requested URL /en/ was not found on this server. ------------------ If I disable the previous enabled language the main page works again. If I change to another language and disable English language the front page works fine (even if it is not translated in the language I have enabled). Also the BackOffice page remains always in English. 2. The links I click on FrontOffice main page don't work All I get is: The requested URL /3-music-ipods was not found on this server. The requested URL /4-accessories-ipod was not found on this server. The requested URL /my-account was not found on this server. The requested URL /quick-order was not found on this server. The requested URL /sitemap was not found on this server. etc.. The only link that works is "Contact" and the contact page is translated into the language I've selected (RO for example). Thank you for taking in consideration these issues and giving me a short answer. Link to comment Share on other sites More sharing options...
PrestaSupport Posted March 23, 2012 Share Posted March 23, 2012 Hi! It sounds like it can be some trouble with htaccess. I have not watch prestashop 1.5 but in 1.4 you re-generate htaccess in admin: -->Tools -->Generators--> Generate .htaccess file Link to comment Share on other sites More sharing options...
Guest Posted March 23, 2012 Share Posted March 23, 2012 Yeah, sounds like friendly url proplem. Also the developer versions have line 28 in config\defines.inc.php set to true. After that is set to false, all the problems I had with language went away. define('_PS_MODE_DEV_', false); Also, in config.inc.php display errors and SQL debug are both on by default. @ini_set('display_errors', 'off'); define('_PS_DEBUG_SQL_', false); Link to comment Share on other sites More sharing options...
siminicam Posted March 23, 2012 Author Share Posted March 23, 2012 Yeah, sounds like friendly url proplem. Also the developer versions have line 28 in config\defines.inc.php set to true. After that is set to false, all the problems I had with language went away. define('_PS_MODE_DEV_', false); Also, in config.inc.php display errors and SQL debug are both on by default. @ini_set('display_errors', 'off'); define('_PS_DEBUG_SQL_', false); Sorry, but nothing worked . Still the same error when I enable more than 1 language. I've also left English as the default language and still none of the links on the main page works. On my server I have PHP 5.2.13 installed. During the installation all the mandatory and optional PHP requirements were OK. I use MySQL Server 5.1 I have tried to regenerate the .htaccess file but still the same. For my http virtual host I have these settings enabled: RewriteEngine on Options +FollowSymlinks I hope this is enough information. Link to comment Share on other sites More sharing options...
siminicam Posted March 23, 2012 Author Share Posted March 23, 2012 I disabled: - Friendly URL - Automatically redirect to Canonical URL and enabled: - Disable apache multiviews and everything seems fine now... Still my Apache has: LoadModule rewrite_module modules/mod_rewrite.so so I don't understand why URL rewriting and Canonical URL are not working. Link to comment Share on other sites More sharing options...
Guest Posted March 23, 2012 Share Posted March 23, 2012 Try test for the mod_rewrite ... <?php if( ! function_exists('apache_get_modules') ){ phpinfo(); die; } $result = ' not available'; if(in_array('mod_rewrite',apache_get_modules())) $result = ' available'; ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Check for mod_rewrite</title></head> <body> <p><?php echo apache_get_version(),"</p><p>mod_rewrite $result"; ?></p> </body> </html> Link to comment Share on other sites More sharing options...
siminicam Posted March 25, 2012 Author Share Posted March 25, 2012 ------------------------------- Apache/2.2.15 (Fedora) mod_rewrite available ------------------------------- So it is OK. Probably some other issue. I will investigate further... Link to comment Share on other sites More sharing options...
Recommended Posts