Jump to content

Category images not working


Recommended Posts

When uploading an image for a category, it does not upload correctly. It should make an image called "xx-category.jpg" (where xx is the ID of the product)
Instead, it just creates xx.jpg, and thus the category picture will not show on the front page

Link to comment
Share on other sites

PHP :5.2.9
Mysql 4.1.2
Windows 2003 IIS.

I have try 1.1 version, everything are working good.
So far, on 1.2.0.2, ONLY uploading category images have problem. other than that. everythings are fine. it do not create xx-catergory.jpg file on c folder, only created xx.jpg for somehow.
Also, i just try create a subCategory, it have same problem, it do not create xx-medium.jpg too.

Link to comment
Share on other sites

So, that may be the reason.

On http://www.prestashop.com/en/downloads/ we can read :


* Some PHP 5 versions are bugged and prevent PrestaShop from working correctly:

- PHP 5.2.1 (authentication is impossible)

- PHP 5.2.6 (authentication is impossible under 64bits servers)

- PHP 5.2.9 (image management/upload broken)

- PHP < 5.2 (invalid date timezone)


This is a PHP bug.
Link to comment
Share on other sites

So...anyone know which PHP version i better use?
However i am still don't get it. howcome it can create file and also rename name for the images, but only not for category and subcategory images rename. it does create file in tem folder.

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...

Note if you want to remove this category image from displaying (I think it is unnecessary - only the subcategory pictures are needed) - just edit category.tpl (in your theme folder) and comment out this line as below:

    <!-- getCatImageLink($category->link_rewrite, $category->id_image, 'category')}" alt="{$category->name|escape:'htmlall':'UTF-8'}" title="{$category->name|escape:'htmlall':'UTF-8'}" id="categoryImage" /> -->

Link to comment
Share on other sites

×
×
  • Create New...