Migration

This guide walks you through migrating your PrestaBlog data when changing stores, servers, or environments.

Store or Server Change

When performing a store migration (for example from PrestaShop 1.6 or 1.7 to PrestaShop 9, or when changing servers or environments), certain practices can cause problems if the order of operations is not followed.

Recommended Solution

This is precisely why PrestaBlog includes a dedicated export and import system, designed to simplify migrations and avoid complex technical manipulations.

This system allows you to migrate all blog data:

  • Content (articles)
  • Categories
  • Authors
  • Comments
  • Images
  • Configuration

The export and import system is available on all versions, including PrestaShop 1.6 and 1.7. It is provided on request through support, as these versions cannot be published on PrestaShop Addons due to validation constraints, particularly regarding PHP versions.

Data Export

Export the data from the source store (see Data Export).

Tip

It is recommended to perform the export just before the switch, to minimize content discrepancies between the old and new store.

Data Import

The process is simple:

  1. Install PrestaBlog on the new store (see Installation) and verify it works correctly before importing
  2. Create the authors in PrestaBlog beforehand if the blog uses authors
  3. Import the data using the dedicated tool (see Universal Import)
Important: About Authors If authors do not exist on the new store at the time of import, the automatic association of content with their authors cannot be performed.

Image Management

Regarding images, it is important that the folder used by PrestaBlog is accessible at the time of import.

Depending on the PrestaBlog theme used, images are located in one of the following folders:

  • modules/prestablog/views/img/grid-and-slides
  • modules/prestablog/views/img/grid-for-1-7

The exact folder depends on the theme selected in the PrestaBlog configuration.

During import, the module allows you to specify, if needed, a URL pointing to the image folder to use. It doesn't matter where this folder is actually located on the server, as long as the specified URL is accessible.

Image Options During Migration

  • Keep the module active on the source store
  • Or make the image folder accessible from another location

Tip

It is recommended to keep a backup of the blog images to secure the migration, regardless of the source store's accessibility.