Jump to content

Import 1.4.9 shop into 1.5


Recommended Posts

Thanks for your reply. I'm not actually able to get that website, is it something you could copy across or pm to me?

 

You are lucky that you can't. Millions of ads to read 10 sentences that do not mean much. Clearly the site's sole purpose it to generate ad income for the owner.

 

BO > Tools > DB Backup > Create a backup. That is your PS backup. And here is the authorative resource for PHPMyAdmin.

 

Note though that it is not just a simple process of exporting from 1.4 and importing into 1.5. DB schemas are different and a lot of manual tinkering is required.

Edited by phrasespot (see edit history)
Link to comment
Share on other sites

I've tried setting up a test shop through the upgrade process of a live shop I copied to another directory, and copying the mysql database. I edited the settings.inc.php file to point to the correct test directory and mysql database. The shop uses a theme that is supposed to be compatible with V1.5. I also regenerated the .htaccess file. The "test" shop that I mirrored works fine at 1.4.0.9. before attempting the upgrade.

 

I have tried both the automatic upgrade (doesn't work), and a manual upgrade to 1.5.0.15 RC 2 with no luck. When I attempt the manual upgrade pointing to the install folder, the "upgrade" option is grayed out. I let the script run through completion and end up with a "clean" install. The good news is I have confirmed my theme works. The bad news is, I haven't figured out how I'm going to easily bring over my existing customers, products, etc. when PS version 1.5 is released.

 

If anyone has tips on how a shop could be "upgraded" from 1.4.9.0 to 1.5, please post here.

  • Like 1
Link to comment
Share on other sites

Note though that it is not just a simple process of exporting from 1.4 and importing into 1.5. DB schemas are different and a lot of manual tinkering is required.

 

That's what I feared. I tried to import already and keep getting this error:

 

 

MySQL said:

#1062 - Duplicate entry '1' for key 'PRIMARY'

 

It even happens when I tried the Products only

Edited by itcwebman (see edit history)
Link to comment
Share on other sites

MySQL said

The image you posted causing a password prompt to your cpanel ever time this thread is viewed. Remove it please.

 

I think (hoping) when a production ready version of 1.5 is relased, there would be a way to upgrade a 1.4 shop to 1.5, if not, a way to import the data over. After all there are ways to import from other e-commerce carts.

 

If you are already moving a production shop to 1.5, you are doing it too early. PS is not a Windows desktop program where you always install the latest version. Ask yourself the question why you want to update. Is there new functionality you desperately need? Is a later version fixing something broken and that it cannot be applied retrospectively? If things go wrong can you afford to have shop down for a week?

 

The forums are all full of threads where a perfectly working shop/module is updated to a later version for the sake of updating and something is broken. Read the change log before justifying an update. And do it on an indentical dummy install before going ahead and doing it on a production install. The latest is not always the best.

Link to comment
Share on other sites

Thanks. Sorted it.

 

Thanks for the advice. I help off upgrades from 1.4.6.2 right to 1.4.9.0 and when I tried to do 1.4.9.0 it failed pretty badly so I ended up with 1.4.8.2 (which is fine anyway) so that just proves your point.

 

I'm trying 1.5 on a test environment, I was looking at the multi-store functionality mostly, but look forward to the public release. As you say there should be a option to import from 1.4

Link to comment
Share on other sites

I still have the Version 1.3.2.3 - can I import to 1.5?

 

Looks like you will be able to.

 

Those already using PrestaShop will be thrilled to discover just how simple it is to upgrade your current store. PrestaShop’s core developers have spent countless hours designing a “1-click upgrade” module that, when installed through your Back Office, will allow every PrestaShop merchant to upgrade to v1.5 with effective ease and efficiency.

 

http://www.prestasho...e-for-download/

Link to comment
Share on other sites

Ok - I found the problem. There is a file modules/autoupgrade/config.xml needs to be edited to reflect the current version.

 

Change

<?xml version="1.0" encoding="UTF-8" ?>
<module>
<name>autoupgrade</name>
<displayName><![CDATA[1-click Upgrade]]></displayName>
<version><![CDATA[0.7]]></version>

 

by updating the version from 0.7 to o.73

 

<?xml version="1.0" encoding="UTF-8" ?>
<module>
<name>autoupgrade</name>
<displayName><![CDATA[1-click Upgrade]]></displayName>
<version><![CDATA[0.73]]></version>

 

Then the autoupgrade works.

Link to comment
Share on other sites

  • 3 weeks later...

Hello,

except all the standart ways of upgrading i would also point another method that was pretty useful for me. It is possible to use ... service to transfer product and customer data from previous prestashop versions to a new 1.5

 

You are an advertising shill for the service you mention, at least be honest and don't pretend you are a user. Moderators, take action please.

 

post

post

post

post

post

post

post

post

post

post

post

post

Edited by phrasespot (see edit history)
Link to comment
Share on other sites

  • 4 months later...

For making the update work I did the following:

 

My shop version was 1.4.7.0

  • Downloaded the original shop & db onto my local test server
  • chmod 777 shop
  • Downloaded One click update v. 1.0.7 module
  • activated module
  • disabled smarty caching and filesystem cache
  • turned force compile on
  • generated new .htaccess file (not sure if necessary)
  • selected the One click update v. 1.0.7 module in the backend
  • clicked on expert options
  • selected major release
  • saved
  • started the update
  • BTW - it went through in one go. (this was my last try after hours of trying - the problem was that the permissions (777) weren't set)
  • log-in into the backend
  • checked some pages - the old data is now in the new shop
  • Went on modules page
  • there was the error "Fatal error in module dibs: Access level to dibs::$smarty must be protected (as in class PaymentModule) or weaker"
  • went into "modules/dibs/dibs.php"
     
    someone posted The problem comes from the fact dibs.php redeclare the variable $smarty as private.
    Just delete this variable declaration in dibs.php class.
  • changed private $smarty; into //private $smarty;
  • saved
  • refreshed modules page
  • now it's working so far...

Edited by ganador (see edit history)
Link to comment
Share on other sites

Sorry, I meant chmod 777 --recursive shop .

So there won't be any failures because of wrong permissions

 

Unfortunately I couldn't find some information about the correct rights.

And the update wasn't working.

After setting the rights the update was working.

So I got a version with updated db and updated modules etc.

Then I moved the relevant things into a new clean prestahop setup because I don't like automatically updated systems...

It has to be clean - and I don't know what the update script is doing.. So how to tell where it is breaking?

 

BTW I wrote at the first point "my local test server". So this might not work on hosted webservers.

Edited by ganador (see edit history)
Link to comment
Share on other sites

I recommend to temporarily enable define('_PS_MODE_DEV_', true); in config/defines.inc.php after the upgrade. It is most likely that some modules are not initialized properly. I my case and with every test upgrade I have to

Reinsurrance reset

loyalitiy points reset

cart block uninstall / install

Reinstall block layered

and maybe Reinstall payment modules to iron out (hidden) errors.

Best regards, trip

Link to comment
Share on other sites

×
×
  • Create New...