Jump to content
jemm971

Unable to install a child of classic theme (error 500)

Recommended Posts

Hello,  I want to create a child theme of the classic theme.

In the myshop/themes directory I create following structure /theme_enfant , /theme_enfant/config, and the file /theme_enfant/config/theme.yml which contents :

parent: classic # Nom du thème parent
name: theme_enfant # Identifiant de votre thème enfant, identique au dossier
display-name: Mon super thème # Description du thème
version: 1.0.0 # Version en cas de mise à jour
assets:
  use_parent_assets: true 

If I go to the backoffice, it works except when I click to the "Theme and logo" tab I got the following error page :

The server returned a "500 Internal Server Error". Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.

I checked the apache_error.log and the php_error.log : no error at all... 

For information my context is Prestashop 1.7.6.7 (with wampserver 3.2.3, php 7.2.33, Apache 2.4.46), and in the backofffice in Performance tab I disabled the smarty cache, and the cache.

And if I remove the /theme_enfant of the /themes directory, everything works again...

It is like Prestashop would work only if there is only one theme in the /themes directory... I am turning crazy! Somebody can help me?

 

Edited by jemm971 (see edit history)

Share this post


Link to post
Share on other sites

After some hours ... I found that the issue was a space missing in the theme.yml.

Now it works.

POST CLOSED 

Edited by jemm971 (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

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