Author Topic: [solved]Can't add image to product category and product  (Read 7042 times)

Heffalump

  • Beginner
  • *
  • Posts: 3
[solved]Can't add image to product category and product
« on: October 17, 2011, 19:37:48 pm »
Hi All!
Using Joomla 1.7 & VM 2.0.0-RC-2H
When trying to add image to the product, Media file manager says:

Quote
vmError: Ignore this message, when it appears while the media synchronisation process, else report to http://forum.virtuemart.net/index.php?board=127.0 : cant create media of unknown type, a programmers error, used type

When I try to add image to the category: "Product Category [ Edit ] ", on "Images" Tab, I click "Attache new image", a new window appears (see attached pic). At the bottom of the window is "Media list" title (unclickable), at the top of center border is "No image set", which is a link. If i click on it, similar thing appears in the "Images" section (see attached).
And the last strange thing: Section "Upload File" have no confirmation button. I can choose file and change radiobuttons, but cannot upload (pic attached)

Sorry if all above is simple or has long been known, I'm a rooky in VM
PS All the same in both Opera 11.51 and Chrome 14.0.835.202 m

[attachment cleanup by admin]

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10144
  • VM3.9 Eagle Owl
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Can't add image to product category and product
« Reply #1 on: October 17, 2011, 23:50:43 pm »
This is a bit misleading, yes.

When you press attach an image, then you can attach an already uploaded image to the item (product, category,...). When you want to upload an image, then you must choose a file and use the action "upload" and then press apply at top of the page.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Heffalump

  • Beginner
  • *
  • Posts: 3
Re: Can't add image to product category and product
« Reply #2 on: October 18, 2011, 10:06:25 am »
Thank you, Milbo. Logic is clear now.

Unfortunately, server's php have no php_mbstring module, and "apply" at the top of the page leads to error500. It will take some time to fix.

But what still seems strange: I have uploaded category images manually to the /images/stories/virtuemart/category, and product images also, to the /images/stories/virtuemart/product, and i expect "Attach new Image" should work. But its behaves the same way (No Image set).
And no server errors appears. Maybe You could have some ideas about it?

alexsai

  • Beginner
  • *
  • Posts: 40
Re: Can't add image to product category and product
« Reply #3 on: October 18, 2011, 10:53:43 am »
Hi Heffalump,
i stressed hard vm forum with questions about media synchronization :) and maybe i could help you.
First of all check if your images are synchronized in "Media Files".
Then check if thumbnails are correctly created: in particular look out for the path in vm and the real position on the file system.


Heffalump

  • Beginner
  • *
  • Posts: 3
Re: Can't add image to product category and product
« Reply #4 on: October 18, 2011, 15:45:30 pm »
Thats it!
After adding php_mbstring module, everything started working normally, except one thing - VM did not accept my .png files as valid media, it sweared "wrong MIME type". But processed converted .jpg and .gif normally.
I just suggest developers to add a tooltip over the "upload" radio-button, something like "Press Apply on window Top to upload selected file". It may reduce the quantity of such dumb questions on the forum :)

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10144
  • VM3.9 Eagle Owl
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Can't add image to product category and product
« Reply #5 on: October 18, 2011, 19:08:01 pm »
Unfortunately, server's php have no php_mbstring module, and "apply" at the top of the page leads to error500. It will take some time to fix.

Ahhhh! Very important hint, thank you.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10144
  • VM3.9 Eagle Owl
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Can't add image to product category and product
« Reply #6 on: October 21, 2011, 18:34:05 pm »
function is now checking if mb is available, I set this on solved
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/