Categories
PrestaShop Technology Tutorial

Fixing PrestaShop child theme upload fail

Just a quick post. To be totally honest, I haven’t had time to investigate if this is a filed bug or not, but I’m going to post this here to save others some headaches and also hopefully serve as a reference link for someone else if they want to file the bug officially (sorry, my bad).

I tried to upload a child theme in the prestashop theme section but kept getting this message in the ‘upload child theme’ feature:

Oops… Upload failed.
What happened?
Try again

However, when I clicked the ‘what happened’ link it only told me that the file wasn’t valid (in this case I was uploading a .zip which it instructed me to do) so the file was valid.

To make a long story short, what I had to do to get it working was this in the Theme & Logo / Advanced Customization area:

  1. Switch back from my already-uploaded first-attempt child theme to the original parent theme
  2. Delete my first child theme upload attempt with same name
  3. Upload the new Child theme

If I’m correct in my assumption that the ‘technical name’ of my first uploaded theme is conflicting with the new upload attempt, this should be clearly laid out in the upload area and a few other areas so that the user knows ‘ah! i should delete any conflicting child themes first!”

Again, I haven’t tested this more than twice but hopefully this helps the devs and some users