Jump to content

Category photo Bug


Recommended Posts

  • 3 weeks later...

Same problem using PS 1.5.2 some times updating a category info or a category picture ends in loosing several category pictures even if they're not from the same category branch tree.

 

I've still haven't tried regenerateing thumbnails... but I would prefer not to do it if its not necessary.

Link to comment
Share on other sites

  • 2 weeks later...

Same here. When I edit any category the image disappears.

What is the solution? The Link doesnt work!

 

Sorry, I posted the wrong link... now It's OK :)

 

Anyway the solution is easy:

 

File : controlers/admin/AdminCategoriesController.php

Function : postProcess()

line 512

 

This code:

if (Tools::isSubmit('forcedeleteImage') || (isset($_FILES['image']))

 

Must be changed to :

if (Tools::isSubmit('forcedeleteImage') || (isset($_FILES['image']) && !empty($_FILES['image']['name'])))

  • Like 2
Link to comment
Share on other sites

Sorry, I posted the wrong link... now It's OK :)

 

Anyway the solution is easy:

 

File : controlers/admin/AdminCategoriesController.php

Function : postProcess()

line 512

 

This code:

if (Tools::isSubmit('forcedeleteImage') || (isset($_FILES['image']))

 

Must be changed to :

if (Tools::isSubmit('forcedeleteImage') || (isset($_FILES['image']) && !empty($_FILES['image']['name'])))

 

Thank you very much! Working like a charm!

Link to comment
Share on other sites

  • 1 month later...

Sorry, I posted the wrong link... now It's OK :)

 

Anyway the solution is easy:

 

File : controlers/admin/AdminCategoriesController.php

Function : postProcess()

line 512

 

This code:

if (Tools::isSubmit('forcedeleteImage') || (isset($_FILES['image']))

 

Must be changed to :

if (Tools::isSubmit('forcedeleteImage') || (isset($_FILES['image']) && !empty($_FILES['image']['name'])))

 

It works. Thanks very much for this!

Link to comment
Share on other sites

×
×
  • Create New...