tomywu Posted February 8, 2011 Share Posted February 8, 2011 A fresh installation on:Prestashop Version: 1.4.0.11Server information: Windows NT build 7600 i586Server software Version: Microsoft-IIS/7.5PHP Version: 5.2.9MySQL Version: 5.5.8Right after installation, can access Back Office right away but cannot load Front Office. error message show on Google Chrome is:This webpage has a redirect loopError 310 (net::ERR_TOO_MANY_REDIRECTS)Please help. Please let me know where I should start looking at to resolve the problem.Thanks. Link to comment Share on other sites More sharing options...
tomywu Posted February 8, 2011 Author Share Posted February 8, 2011 Just found out, more info:Can load other pages like address.php in Front Office.Seems that there is a problem in the index.php.Any idea? Link to comment Share on other sites More sharing options...
Enkey Posted March 7, 2011 Share Posted March 7, 2011 I have the some problem Link to comment Share on other sites More sharing options...
tomywu Posted March 7, 2011 Author Share Posted March 7, 2011 I have fixed the problem.Somehow the index.php was not updated after the installation.Just copy and paste the following code and create a new index.php will get you going.<?phpinclude(dirname(__FILE__).'/config/config.inc.php');include(dirname(__FILE__).'/header.php');$smarty->assign('HOOK_HOME', Module::hookExec('home'));$smarty->display(_PS_THEME_DIR_.'index.tpl');include(dirname(__FILE__).'/footer.php');?> Link to comment Share on other sites More sharing options...
m.c.lavissiere Posted April 17, 2011 Share Posted April 17, 2011 Hello.I have the same problem with version 1.4 (I can't get to the Front Office). In my case, there is no error message, but when I set the HTML link on my website's homepage to the index.php of my prestashop (this worked last time), I am only sent back to my homepage. This happens from my homepage AND from the Back Office, when I tried to get to the Front Office.The solution offered did not work for me, unfortunately.Many thanks for some help. Link to comment Share on other sites More sharing options...
m.c.lavissiere Posted April 18, 2011 Share Posted April 18, 2011 I reinstalled Prestashop v.1.4. Now I can access the Front Office, but when I try to change the theme (l've tried fennecs and the prestashop alternative theme), the front office is blank except for one grey horizontal line at the top. Any suggestions?Thanks Link to comment Share on other sites More sharing options...
Dakota3511 Posted April 19, 2011 Share Posted April 19, 2011 I have fixed the problem.Somehow the index.php was not updated after the installation.Just copy and paste the following code and create a new index.php will get you going.<?phpinclude(dirname(__FILE__).'/config/config.inc.php');include(dirname(__FILE__).'/header.php');$smarty->assign('HOOK_HOME', Module::hookExec('home'));$smarty->display(_PS_THEME_DIR_.'index.tpl');include(dirname(__FILE__).'/footer.php');?> I created new idex as you mentioned here but several warnings appear. wonder if you can help to identify what i did wrong. Thanks in advance.Warning: Division by zero in D:\vhosts\mydomain\httpdocs\tienda\index.php on line 2Warning: Division by zero in D:\vhosts\mydomain\httpdocs\tienda\index.php on line 2Warning: include(.incphp’) [function.include]: failed to open stream: No such file or directory in D:\vhosts\mydomain\httpdocs\tienda\index.php on line 2Warning: include() [function.include]: Failed opening '.incphp’' for inclusion (include_path='.;./includes;./pear') in D:\vhosts\mydomain\httpdocs\tienda\index.php on line 2Warning: Division by zero in D:\vhosts\mydomain\httpdocs\tienda\index.php on line 3Warning: include(.php’) [function.include]: failed to open stream: No such file or directory in D:\vhosts\mydomain\httpdocs\tienda\index.php on line 3Warning: include() [function.include]: Failed opening '.php’' for inclusion (include_path='.;./includes;./pear') in D:\vhosts\mydomain\httpdocs\tienda\index.php on line 3Fatal error: Call to a member function assign() on a non-object in D:\vhosts\mydomain\httpdocs\tienda\index.php on line 5 Link to comment Share on other sites More sharing options...
Dakota3511 Posted April 27, 2011 Share Posted April 27, 2011 I have fixed the problem.Somehow the index.php was not updated after the installation.Just copy and paste the following code and create a new index.php will get you going.<?phpinclude(dirname(__FILE__).'/config/config.inc.php');include(dirname(__FILE__).'/header.php');$smarty->assign('HOOK_HOME', Module::hookExec('home'));$smarty->display(_PS_THEME_DIR_.'index.tpl');include(dirname(__FILE__).'/footer.php');?> Please help me i just did what you said but it doenst work for me. what i did wrong? Link to comment Share on other sites More sharing options...
hanby Posted April 27, 2011 Share Posted April 27, 2011 in your .htaccessI fix it with the 8 lines below put tem in .htaccess fill only thing you should have to do is change the yourdomian your your domain.#mod_rewrite onRewriteEngine on#Host authentication#RewriteCond %{HTTP_REFERER} !^$RewriteCond %{HTTP_REFERER} !^http://(www\.)?YOURDOMAIN.com/.*$ [NC]RewriteRule \.(js|css|jpg|gif|png|bmp|mp4|3gp|m4a|m4r|aac|mp3|ogg|wave)$ - [F]#PHP code in HTML fileAddType cgi-script .php .htm .html .phtml Link to comment Share on other sites More sharing options...
PoWeR-RS Posted April 27, 2011 Share Posted April 27, 2011 in your .htaccessI fix it with the 8 lines below put tem in .htaccess fill only thing you should have to do is change the yourdomian your your domain.#mod_rewrite onRewriteEngine on#Host authentication#RewriteCond %{HTTP_REFERER} !^$RewriteCond %{HTTP_REFERER} !^http://(www\.)?YOURDOMAIN.com/.*$ [NC]RewriteRule \.(js|css|jpg|gif|png|bmp|mp4|3gp|m4a|m4r|aac|mp3|ogg|wave)$ - [F]#PHP code in HTML fileAddType cgi-script .php .htm .html .phtml No work :-/ Link to comment Share on other sites More sharing options...
PoWeR-RS Posted May 2, 2011 Share Posted May 2, 2011 no more helps?? please! Link to comment Share on other sites More sharing options...
PoWeR-RS Posted May 11, 2011 Share Posted May 11, 2011 I checked the settings for the domain and everything was correct, then checked the settings of the database and found in the table lsps_configuration the field called "PS_CANONICAL_REDIRECT" with a value 1 that is active, which forces the browser to attempt to redirect canonical and generates the error ourselves, so what I did was change the value of this field to 0 and then accessed. Works HugsMy solution posted by ITMNETWORKS my host - Mr. BrunoVictor PinhoBrazil Link to comment Share on other sites More sharing options...
Fabien Alet Posted May 16, 2011 Share Posted May 16, 2011 Hi,Did you check that the parameters in the tab "Preferences", "SEO & URLs" were correct. (PS directory, Homepage file...)Hope this can help.Fabien 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