Jump to content

cannot load front office after installation complete


Recommended Posts

A fresh installation on:

Prestashop Version: 1.4.0.11
Server information: Windows NT build 7600 i586
Server software Version: Microsoft-IIS/7.5
PHP Version: 5.2.9
MySQL Version: 5.5.8

Right 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 loop
Error 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

  • 4 weeks later...

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.

<?php
include(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

  • 1 month later...

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

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.

<?php
include(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 2

Warning: Division by zero in D:\vhosts\mydomain\httpdocs\tienda\index.php on line 2

Warning: include(.incphp’) [function.include]: failed to open stream: No such file or directory in D:\vhosts\mydomain\httpdocs\tienda\index.php on line 2

Warning: include() [function.include]: Failed opening '.incphp’' for inclusion (include_path='.;./includes;./pear') in D:\vhosts\mydomain\httpdocs\tienda\index.php on line 2

Warning: Division by zero in D:\vhosts\mydomain\httpdocs\tienda\index.php on line 3

Warning: include(.php’) [function.include]: failed to open stream: No such file or directory in D:\vhosts\mydomain\httpdocs\tienda\index.php on line 3

Warning: include() [function.include]: Failed opening '.php’' for inclusion (include_path='.;./includes;./pear') in D:\vhosts\mydomain\httpdocs\tienda\index.php on line 3

Fatal 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

  • 2 weeks later...
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.

<?php
include(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

in your .htaccess
I 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 on
RewriteEngine 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 file
AddType cgi-script .php .htm .html .phtml

Link to comment
Share on other sites

in your .htaccess
I 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 on
RewriteEngine 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 file
AddType cgi-script .php .htm .html .phtml


No work :-/
Link to comment
Share on other sites

  • 2 weeks later...

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
Hugs
My solution posted by ITMNETWORKS my host - Mr. Bruno
Victor Pinho
Brazil

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...