Jump to content

Clone for update issues


Recommended Posts

Hi there,

I want to update my presta from 1.6.1.5 to the latest stable version.

So, first I cloned the website and database as mentioned in this topic:

 

I can login in the backend, but as someone else suggested, I keep getting the message: ERR_TOO_MANY_REDIRECTS

So, I followed the steps to create a new htaccess file, but still get the same error. So, please advise.

My live site is in the root directory, the clone in a subfolder /presta17

So I changed the shop url's as follows:

Shop domain: www.myshop.nl/presta17

SSL domain: www.myshop.nl/presta17

Base URI: /

I tried different values, but the error remains.

What should I do next?

Thanks in advance, Ellen

Link to comment
Share on other sites

Hey Ellen,

in ps_shop_url table don't forget the 2 slashes:-)....so you have to change:

this

Shop domain: www.myshop.nl

SSL domain: www.myshop.nl

Base URI: presta17

in:

 

Shop domain: www.myshop.nl

SSL domain: www.myshop.nl

Base URI: /presta17/

I hope it works

 

ciao

Link to comment
Share on other sites

13 hours ago, razaro said:

Hi @ellenvandrunen

From guide I do not see step that you need to do. In new clone database check ps_shop_url and change domin/subfolder if you did not already.

Also in 1.7 you can try manually to delete dev and prod folders from var/cache/.

Hi Razaro,

In the clone database I checked the table ps_shop_url and it looks like this:

domain = www.shop.nl

domain_ssl = www.shop.nl

physical_uri = /presta17/

Link to comment
Share on other sites

9 hours ago, Fabry said:

Hey Ellen,

in ps_shop_url table don't forget the 2 slashes:-)....so you have to change:

this

Shop domain: www.myshop.nl

SSL domain: www.myshop.nl

Base URI: presta17

in:

 

Shop domain: www.myshop.nl

SSL domain: www.myshop.nl

Base URI: /presta17/

I hope it works

 

ciao

Thank you Fabry, that's what it looks like in de database now. But unfortunately it did not resolve the problem. 

Link to comment
Share on other sites

Hi Ellen 

Thank you for links and credentials.

Issue is connected to your PrestaShop version, 1.6.1.5. There new bug was introduced that was fixed in later versions.

https://github.com/PrestaShop/PrestaShop/pull/5410

 

In short, if PrestaShop is installed in sub-folder,  option CCC (Combine, Compress, Cache) CSS files does not work. So it does not display any styles.

I have disabled that and displays fine. You can try to test upgrade to 1.7, good luck. After in 1.7 you can enable CCC for CSS.

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

  • 9 months later...

Friends I will take this topic to ask for help.
I have problems to clone my productive shop... My version is 1.7.6.4

1- First of all I clear the productive shop cache using my productive back-office. 
2- Via CPANEL I copied my production folder (public_html/shop) to public_html/shopdev (not a subfolder from productive shop)
3- Via PHPMyAdmin I export the productive DB 
4- Via Cpanel I manually created new empty database (xxxx_shopdev)
5- Via PHPMyAdmin I restore the productive DB into new xxxx_shopdev DB.
6- Via PHPMyAdmin I change table xxxx_shopdev-xxxx_shop_url
---> domain = mydomain.com/shopdev/
---> domain_ssl = mydomain.com/shopdev/
---> physical_uri = /shopdev/
7- Via PHPMyAdmin I change table xxxx_shopdev-xxxx_configuration:
---> PS_SHOP_DOMAIN = mysite.com/shopdev
---> PS_SHOP_DOMAIN_SSL = mysite.com/shopdev

And all I have is error 500 in front and Back-office.
To test, I modify the error500.html on /shopdev folder to guarantee that the error showed is from /shopdev folder, not from productive folder and in fact the error came from /shodev folder.
Don't have .htaccces file on productive folder, so i don't have it into /shopdev folder also.

What am I missing ?????? please!
 

Link to comment
Share on other sites

Friends,

I edit the file /shopdev/app/config/parameters.php and now, the front-office is redirecting to productive shop.
And I still have no access to back-office...

***EDIT
Downgrade PHP version from 7.4 to v 7.1 and now, both front and back-office is redirecting to productive shop...

Edited by fercaldas (see edit history)
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...