Jump to content
  • 0
Joao Beno

PS 1.7 Install leads to an infinite redirect loop

Question

Just downloaded the files, unziped and started it. If I go to the root domain, It redirects to the /install, and then it redirects to /install?step=welcome. from there, it keeps redirecting and never ever shows the page. PS 1.6 installs just fine...

Share this post


Link to post
Share on other sites

25 answers to this question

Recommended Posts

  • 0

Today i had similar problem.
But installation still worked when i provide address like "mysite.com/install/index.php" this last index.php was important.
I think redirect loop appear due to nginx configuration issue.
I created new configuration using this one as reference:
https://github.com/MattLoyeD/Prestashop-Nginx/blob/master/prestashop-nginx.conf
It fix the problem for me.

Share this post


Link to post
Share on other sites
  • 0

@ruilong

I've got the same issue, infinite loop on /install/index.php?step=welcome.

 

The permission of /app/resources/translations is set to 755, the same for /app and /ressources.

 

Thanks for your help

Share this post


Link to post
Share on other sites
  • 0

This happened when installed LAMP stack from apachefriends.

This behavior is related with Apache configuration. As a workaround, DirectoryIndex directive from Apache httpd.conf can be commented and then you should be able to access to "/install/index.php?step=welcome" (apache restart is needed). Once first installation step is done, the Apache directive can be uncommented to leave configuration in its initial state (this directive is used for example to access to phpmyadmin from lampp homepage) and installation process can continue normally.

 

Regards

Share this post


Link to post
Share on other sites
  • 0

Same problem here.

Even when the DirectoryIndex comment made no sense for me, I tried it with no luck as I supposed. I also tried checking suggested folder permissions, again with no luck. My error log shows a lot of this messages:

 

[Tue Dec 13 22:32:03.056340 2016] [charset_lite:debug] [pid 15023] mod_charset_lite.c(219): [client 127.0.0.1:54264] AH01448: incomplete configuration: src unspecified, dst unspecified

 

Which I couldn't understand yet...
 

The network console of the browser shows the same infinite loop described by other users.

 

I am trying to test PS 1.7 using a XAMPP box. Installing PS 1.6 in the same environment works without any problem.

 

Any idea would be much appreciated. Thanks.

Share this post


Link to post
Share on other sites
  • 0

Ok, after all it really was a problem of permissions, but don't know exactly where. I solved it changing the owner of my prestashop root folder to the user under the one Apache is running, in my case it was "daemon". So:

 

chown -R daemon:daemon /my/prestashop/root

 

solved the issue.

Share this post


Link to post
Share on other sites
  • 0

PHP 5.6.15, Apache 2.4.17, mysql 5.7.9. (Wamp 3.0)

 

Previous version of prestashop 1.6 without problems , as well as laravel 5.3, silex ...all works like a charm, but PS 1.7 is frozen

 

I try with EasyPHP and the same... I have to do a test on another computer

 

 

*** UPDATED ****

 

Tested on another computer & fresh wamp installation, all works fine, complete installation ... something is wrong in my current workspace

Well... thanks everyone for your help!!!

Edited by madalien

Share this post


Link to post
Share on other sites
  • 0

It appears that PS 1.7 is very sensitive. I hope it will be solved in the future because this is a huge waste of time for many developpers ! it's a pity. :( grrrrr

Share this post


Link to post
Share on other sites
  • 0

Finally found this post after about 5 hours of headache.

 

Adding

DirectoryIndex disabled

to the end of

 

/etc/apache2/apache2.conf

 

on Ubuntu solved the problem (remove after install) as per Mr X Commerce's advice.

 

Don't forget to restart apache after making the change.

 

p.s.

 

Good luck with the permissions in the Starter Theme after you have managed to get your Prestashop dev environment up ;)

Share this post


Link to post
Share on other sites
  • 0

Hello. I am working version 1.6 of the prestashop, and at the moment I am developing a module that inssere a form and listaegm of it, but when I want to insert the data of the form in the DB I wanted that the message of confirmation is presented and only then forwarded to a Another page It does not currently print successfully inserted message, it just forwards it to the page I want. Someone can help me? greetings At this moment it is like this:if (Tools::isSubmit('submitExtras')) { (code) } else { (code) if($result == false) { $sql = 'INSERT INTO au_order_invoice(id_order, doctype, docseries, iddoc, signature, certification, nif, name, total, discount, hash, date_add) VALUES ( \''.$id_order.'\', \''.Tools::getValue('doctype', '').'\', \''.Tools::getValue('docseries', '').'\', \''.Tools::getValue('iddoc', '').'\', \''.Tools::getValue('signature', '').'\', \''.Tools::getValue('certification', '').'\', \''.Tools::getValue('nif', '').'\', \''.Tools::getValue('name', '').'\', \''.Tools::getValue('total', '').'\', \''.Tools::getValue('discount', '').'\', \''.Tools::getValue('hash', '').'\', \''.Tools::getValue('date_add', '').'\')'; } else { $sql = 'REPLACE INTO au_order_invoice(id_order, doctype, docseries, iddoc, signature, certification, nif, name, total, discount, hash, date_add) VALUES ( \''.$id_order.'\', \''.Tools::getValue('doctype', '').'\', \''.Tools::getValue('docseries', '').'\', \''.Tools::getValue('iddoc', '').'\', \''.Tools::getValue('signature', '').'\', \''.Tools::getValue('certification', '').'\', \''.Tools::getValue('nif', '').'\', \''.Tools::getValue('name', '').'\', \''.Tools::getValue('total', '').'\', \''.Tools::getValue('discount', '').'\', \''.Tools::getValue('hash', '').'\', \''.Tools::getValue('date_add', '').'\')'; } $res = Db::getInstance()->execute($sql); $this->_confirmation .= $this->displayConfirmation($this->l('Inserido/atualizado com sucesso!')); if($res == true) { Tools::redirectAdmin($this->context->link->getAdminLink('AdminOrders', false).'&id_order='.$id_order.'&vieworder&token='.Tools::getAdminTokenLite('AdminOrders')); } else { $this->_error .= $this->displayError($this->l('Não foi possível inseir/atualizar o formulário desejado. Por favor tente mais tarde.')); $this->renderFormExtras(); }

Hello. I am working version 1.6 of the prestashop, and at the moment I am developing a module that inssere a form and listaegm of it, but when I want to insert the data of the form in the DB I wanted that the message of confirmation is presented and only then forwarded to a Another page It does not currently print successfully inserted message, it just forwards it to the page I want. Someone can help me? greetings At this moment it is like this:

Share this post


Link to post
Share on other sites
  • 0

I made it really dirty...

 

in install/controllers/http/welcome.php, I replaced 2 times "$this->redirect('welcome');" with "$this->displayTemplate('welcome');"

then i continued the installation in English....

 

don't do this at home. :P

Share this post


Link to post
Share on other sites
  • 0

I made it really dirty...

 

in install/controllers/http/welcome.php, I replaced 2 times "$this->redirect('welcome');" with "$this->displayTemplate('welcome');"

then i continued the installation in English....

 

don't do this at home. :P

You are the only useful one for this world of PS1.7.0.6          

 

 

THANKS ..... !

Share this post


Link to post
Share on other sites
  • 0

Hi Prestashop Windows&Apache Users

 

Same infinite loop with Prestashop 1.7 installation on Apache 2.4, PHP 7.1.3 on Windows Server 2012 R2 Datacenter.

 

Solution: activate extension php_curl.dll in php.ini and restart Apache.

 

Hope it helps.

 

 

Share this post


Link to post
Share on other sites
  • 0

please i need help on how to fix this type of prestashop admin problem  ...... update pb, redirection pb, etc     please help.............my prestashop is installed on a shared server (cpanel) ...... please help

Share this post


Link to post
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

×