Prestashop 1.6 - Can't login into admin panel or add items to cart if I change php version - prestashop

I have a Prestashop 1.6.1.14 (default theme) running on php 5.5.38 and I would like to update the php version... but when I set it to 5.6 (or higher ... up to 7.1) the site is visible (and no errors are displayed, not even in console) but it is not possible to add items to the cart nor log into the administration panel. Not unless you change the PS_CIPHER_ALGORITHM value from 1 to 0 in the ps_configuration table. How much is it safe to change it? Does it weak the security on the site?
Any suggestion?
thanks.

I know that sometimes, it's not easy to update to Prestahop 1.7 and so we get stick with the 1.6 version, so i suppose you can't update to 1.7.
In this case, can you try to update to the last version of 1.6 Prestashop (
1.6.1.24 )
this version is compatible with php7 and run faster than php5
to update you can also use a module autoupgrade from prestashop Team :
In the config of the module AutoUpgrade , choose "expert mode" and "minor version".
And don't forget to backup before changing the version.

Related

Prestashop 1.7.8 - Can't create new category since update

I recently upgrade my Prestashop from 1.7.6 to 1.7.8 with module 1-Click Upgrade.
I also upgrade php to the supported version and everything should work perfectly.
But when I try to create a new category from the back-office, I have a Prestashop error saying that I can't.
I emptied cache but nothing change and debug mode display nothing.
Thanks.

Can I apply new security patches on Prestashop 1.7.2.4?

I have a store running Prestashop 1.7.2.4 (with Symfony 2.8.27) with tons of customized files, theme, modules etc.. I just can't upgrade to newer Prestashop versions otherwise i will loose a lot of work in a blink of an eye.
My question is simple, can I apply prestashop version by version from 1.7.2 up to 1.7.8 security patches on my actual installed PS ? That is including Symfony vulnerable issues.
What is your advice.
Prestashop security patches applied over time are listed here , you should search the pull requests related to those advisiories and apply / cherry pick them manually on your release.
This can be a hard task though, especially from such an old version.
Generally, I suggest to move your core changes to modules / overrides so that you can update safely to latest version, so you can also benefit of PHP 7.4 support (note that themes and third party modules will not be overwritten during upgrade).

Prestashop upgrade from 1.7.1.2 to new version

Can Someone tell me the proper process to upgrade Prestashop 1.7.1.2 to the new version? I have to upgrade my Prestashop version because the PHP version I was using was outdated, so I have upgraded my PHP version. After I upgraded my PHP version, my Prestashop 1.7.1.2 backend didn't open. Because this version of PrestaShop won't support the latest PHP version. I don't want to use outdated PHP version also because my hosting provider charges me a lot.
It would be great, I can upgrade my PrestaShop. So, I need a proper step by step process to upgrade Prestashop.
Also, how do I change my shop into maintenance mode by changing the code? Keep in mind, my backend won't open. I have to change it programmatically.
I already have done a lot of google searches and won't get the proper procedures.
To disable your shop from the database, go to the configuration table and
search where name = PS_SHOP_ENABLE, set this to NULL.

Upgrading Prestashop from 1.7.0.3 to latest with 1-click Upgrade module

I currently have a 1.7.0.3 Prestashop that I'd like to upgrade to the latest stable version. When I start upgrading from the 1-click Upgrade module, the latest version is downloaded correctly but I get an error about the backup name not specified. I then disabled this option of backing up files and database as I couldn't find where to fill in this information (I made manual backups).
I am then told that 17152 files have to be modified, whereas the version comparison tells me that only 5157 files need to be modified and 895 deleted. And the upgrade is stuck at 17152 files left with a great number of ajax calls being made until I get the following error:
[Ajax / Server Error for action upgradeFiles] textStatus: "error " errorThrown:" " jqXHR: " "
As I was looking for a solution, I tried to upgrade from the local directory by choosing this option in the expert mode of the module. But when I save my choice, it is not taken into account and stays on the option "Major version", and therefore downloads the upgrade from Prestashop instead of using the local directory. I get the same result if I choose the option "Minor version". Debug mode brought nothing in the process.
How can I get the upgrade to work?
You can NOT do that with the 1-click module.
Read more here: http://build.prestashop.com/news/prestashop-1-7-faq/#is-it-be-easy-to-upgrade-from-previous-versions-of-prestashop-to-v17
It's also discussing on this topic: Upgrade Prestashop from 1.6.0.11 to 1.7 (latest version)
However you can migrate your data from your old Prestashop website to Prestashop 1.7 using this free module: https://www.prestashop.com/forums/topic/820013-migrate-or-upgrade-prestashop-16-or-other-versions-to-17-%E2%80%93-free-module/
You can not update PrestaShop 1-Click Upgrade with PrestaShop 1 to upgrade PrestaShop from version 1.6 to 1.7. So these versions have completely different structure and are incompatible between itself.
But you can import data from version 1.6 or another version to version 1.7 using our module.
This is a paid module, 199 euros, but it can help with such problems when other options do not work.

Migrate customers to Prestashop 1.7

First of all thank you for taking a look the the problem that I'm facing today.
I'm currently working on a project that includes prestashop 1.7. What I'm trying to do is as following. I want to migrate my prestashop 1.6.11 to 1.7. Now I know that there is currently no support on this option but I really want to upgrade it for some important reasons. I did migrate the customers and there invoices to 1.7 but when I try log in on the new website nothing happens(I made a test account on 1.6). There is no error or anything but the page refreshes and that's it. I did look on multiple websites for a solution but that came out blank.
Is what I am trying to do even possible or does anybody have an idea where to look or what to change.
Hope that somebody has a solution.
There is a _COOKIE_KEY_ in PrestaShop that is used to encrypt the password before saving them to the database. The _COOKIE_KEY_ for each PrestaShop installation. The _COOKIE_KEY_ is unique for each and every PrestaShop installation.
You can find the _COOKIE_KEY_ in following paths:
/app/config/parameters.php (in PrestaShop 1.7)
/config/settings.inc.php (in PrestaShop 1.6)
You should set the passwords for your users on your new PrestaShop 1.7 store again using the updated _COOKIE_KEY_
You can take a look at Tools::encrypt() function to find out how it is encrypted.
Note: This _COOKIE_KEY_ is called 'secret' in PrestaShop 1.7
Migrating from Prestashop 1.6 to Prestashop 1.7 requires you to use Prestashop Migrator. This is its Github project: https://github.com/ets-soft/prestashop-migrator-free-version
The steps are very simple:
Just download Prestashop Migrator (ets_pres2presfree.zip) then follow 3 simple steps below
Step 1: Install Prestashop connector on the source website (your old website.)
Step 2: Install a fresh Prestashop 1.7 website (target website) then install Prestashop migrator on the website you just installed.
Step 3: Start migrating your data from the source website to target website. Wait a few minutes and enjoy your new Prestashop 1.7 website.