Jump to content
angelstar

This theme is not valid for PrestaShop 1.7

Recommended Posts

Hello.

 

I am new to prestashop and have a lot of questions.

 

At first of all, I want to know how to change my pt theme.

 

i download prestashop1.7 and free open-source pt1.7 theme.

 

and now trying to change theme.

so go to admin panel and improve / desigins / themes & logo.

 

and add new theme and select downloaded zip file of theme and press save button.

 

and now get this error.

 

This theme is not valid for PrestaShop 1.7

 

downloaded theme from:  https://github.com/devilthemes/blackhawk4x.git

Share this post


Link to post
Share on other sites

I always recommend newbies to make themselves familiar with basic functionality before changing themes or design stuff.

 

Unfortunately I cannot help with the error message. Either wrong installing procedure or a faulty theme...

Share this post


Link to post
Share on other sites

Use another theme. A new theme is checked if contains all required files and properties and this one doesn't.

Share this post


Link to post
Share on other sites

I ran into the same Problem.

With free themes and even with one i purchased 

 Here is the error in debug mode.  

Warning in Line 319 of FIle/homepages/11/d369897014/htdocs/clickandbuilds/PrestaShop/MyeCommerce/src/Core/Addon/Theme/ThemeManager.php
[2] file_get_contents(/homepages/11/d369897014/htdocs/clickandbuilds/PrestaShop/MyeCommerce/app/cache/dev/sandbox/5a3b97a348b1c//config/theme.yml): failed to open stream: No such file or directory

Notice in Line 49 of File/homepages/11/d369897014/htdocs/clickandbuilds/PrestaShop/MyeCommerce/src/Core/Addon/Theme/Theme.php
[8] Undefined index: name

 

This drives me insane, the developer of the theme is slow to respond, also due to the time difference because i am from europe. 

I have a Deadline to have our shop up and running by the 27th of December. :(

Share this post


Link to post
Share on other sites

hey mate, you probably solved this already but i thought about posting here in case it helps others. i purchased a theme and got the same error. it looks like on mac and linux the .zip file containing the theme was not extracted correctly - there were no folders, just files with slashes (/) in their filenames. i assume this is because of the packer the developer used. they probably didn't test on a linux server, or maybe their Linux unpacker worked differently.

so, in order to fix it, this is what i did:

1. i extracted the zip file with the theme using 7zip on Windows

2. inside the extracted folder i selected all files and folders and compressed it again to .zip using 7zip (i assume it would have worked using the default windows zip packer as well, but i didn't test)

i uploaded the new zip file to prestashop and it worked.

hope it helps!

cheers!

Share this post


Link to post
Share on other sites

how i fixed the issue is that i was downloading the Diana theme for Prestashop 1.7 on October 1st, 2018 and i noticed that once extracted on my local pc, there was the actual zip file within the downloaded zip file. Once i uploaded that one it worked. The reason Prestashop can't read the original zip file is because the actual theme is zipped in another file

Share this post


Link to post
Share on other sites

A simple solution that works:

 

The Zip file you have has the following files and directories as per HELP

  ├── config
  │   └── theme.yml
  └── preview.png

 

Add the below folders and empty css file:

assets/css/custom.css   (empty css file)

Just add an the following empty folders in the zip file too:

modules

plugins

templates

And everything will work..

 

 

Share this post


Link to post
Share on other sites

I had this problem because I used userId top FTP file over which was not readable by the default user of web server.

chmod -R 775 themefile.zip

chown www-data:www-data themfile.zip

solved the problem

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More