Some time ago I received this message:

I finished my theme, downloaded it and then tried to install it on my Prestashop 1.7.  Then I got this error: "This theme is not correct for Prestashop 1.7".

I am sure the theme with PrestaBuilder, Prestashop 1.7.

 

This is why the theme zip was corrupted - automated unzipping in Safari!

  • the user created and downloaded a theme from PrestaBuilder
  • he was using Safari which automatically unzips all zips
  • ...so Safari unzipped the theme zip automatically
  • the user zipped in incorrectly and that was the reason the zip was not accepted by Prestashop

How NOT to zip the theme manually

DO NOT zip the root folder (for example PTM-theme001-v1724-8f20). This way you also zip the "parent directly" which is not

How to zip the file manually

You have to open the root folder ( for example PTM-theme001-v1724-8f20) and zip the content. That means you have to highlight these folders:

  • assets
  • cache
  • config
  • dependencies
  • modules
  • preview.jpg
  • templates

and ZIP them. (The folders above are related to Prestashop 1.7)

This way you will create a valid ZIP that you can upload into your Prestashop installed.

Another option

You can disable automated unzipping in Safari this way:

In the "General" tab, uncheck "Open 'safe' files after downloading." This will stop Safari from automatically unzipping the files.


Yassine BELKAID

Yassine is a senior PHP developer and enjoys writing flexible, well-thought-out, and reusable code. He is a Prestashop expert and consultant and has experience working on other platforms, such as Laravel, WordPress, and Symfony. In his spare time, you can find him reading about programming, hanging out with friends or visiting family.

No Comments

Post your comment