Keyword

Can't upload image to the item/image

More
11 years 8 months ago #103445 by MJ
Hello William

Thank you for your offer to help me. My last chance to get it up and running ..

I have sent you all the necessary information.

Have a good Day! MJ

PS:
William has answered me, and results the same. I have forgot to say here: It's a fresh Template JA-Lens (Joomlart)

Please Log in or Create an account to join the conversation.

More
11 years 7 months ago #103446 by Oscar
Replied by Oscar on topic Re: Can't upload image to the item/image
Hello everybody i had try so many ways to solve uploading images to k2 and finally in the k2 spanish community i found the way to do it, here's what i did

In the file “class.upload.php” arround line 2000 modify to “false” the next 3 line, originally they are "true"

$this->mime_fileinfo = false; // MIME detection with Fileinfo PECL extension
$this->mime_file = false; // MIME detection with UNIX file() command
$this->mime_magic = false; // MIME detection with mime_magic (mime_content_type())

and after changing that I prepare the image for web in .png format

And now is working great for me.

Good luck

Please Log in or Create an account to join the conversation.

More
11 years 7 months ago #103447 by stavroch
Replied by stavroch on topic Re: Can't upload image to the item/image
I have similar problem I upgrade the apache from Apache/2.0.6 to Apache 2.5 and i get many errrors, so i downgrade it again to 2.0.6 but the sites which has k2 are not loaded. Although the /administrator/ is accessible but i can't save k2 item, when i save one item i get white page.

Do i have to enable any apache setting?

Please Log in or Create an account to join the conversation.

More
11 years 5 months ago #103448 by Dan Raymo
Replied by Dan Raymo on topic Re: Can't upload image to the item/image
In the category you're using for the item, make sure on "Item image options" that you have sizes for every size that you need. If none are filled in, the item won't upload an image.

Please Log in or Create an account to join the conversation.

More
11 years 3 months ago #103449 by TOTHOMweb
Replied by TOTHOMweb on topic Re: Can't upload image to the item/image
Dear all,

I've been experiencing the same problem while uploading images. After a long research I've found out that the problem comes from the call @imagecreatefromjpeg at the line 3688 of /administrator/components/com_k2/models/item.php

I've tried configuring the gd.jpeg_ignore_warning = 1 in php.ini but still not working.
Of course folders have correct permissions.

The error reported is:
system information
- class version : 0.31
- operating system : Linux
- PHP version : 5.2.10-2ubuntu6.10
- GD version : 2.0
- supported image types : png jpg gif bmp
- open_basedir : no restriction
- upload_max_filesize : 2M (2097152 bytes)
- language : en_GB
source is an uploaded file
- upload OK
- file name OK
determining MIME type
- Checking MIME type with Fileinfo PECL extension
    Fileinfo PECL extension not available
- Checking MIME type with UNIX file() command
    MIME type detected as image/jpeg; charset=binary by UNIX file() command
- MIME validated as image/jpeg
source variables
- You can use all these before calling process()
    file_src_name : F1.jpg
    file_src_name_body : F1
    file_src_name_ext : jpg
    file_src_pathname : /tmp/phpaFMCwy
    file_src_mime : image/jpeg
    file_src_size : 82578 (max= 2097152)
    file_src_error : 0
- source file is an image
    image_src_x : 698
    image_src_y : 284
    image_src_pixels : 198232
    image_src_type : jpg
    image_src_bits : 8
process file to <PATH>/media/k2/items/src/
- file size OK
- file mime OK : image/jpeg
- new file name ext : jpg
- new file name body : 13f34e2b533e12c6166f88368dcd8c07
- file name safe format
- destination variables
    file_dst_path : <PATH>/media/k2/items/src/
    file_dst_name_body : 13f34e2b533e12c6166f88368dcd8c07
    file_dst_name_ext : jpg
- no auto_rename if same filename exists
- destination file details
    file_dst_name : 13f34e2b533e12c6166f88368dcd8c07.jpg
    file_dst_pathname : <PATH>/media/k2/items/src/13f34e2b533e12c6166f88368dcd8c07.jpg
- no overwrite checking
- image resizing or conversion wanted
- error: Error in creating JPEG image from source.

I hope that someone can help me.

Thanks in advance,

Please Log in or Create an account to join the conversation.

  • Suba
  • Suba's Avatar
  • Visitor
10 years 11 months ago #103450 by Suba
Replied by Suba on topic Re: Can't upload image to the item/image
Same problem when I try to upload from the Image button next to Article and Read More buttons below the editor.

GD image library bundled (2.1.0 compatible)
Upload limit 32M
Memory limit 256M
media/k2 Writable
media/k2/attachments Writable
media/k2/categories Writable
media/k2/galleries Writable
media/k2/items Writable
media/k2/users Writable
media/k2/videos Writable
cache Writable

The image I try to upload now is <3 KB.

More suggestions?

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 11 months ago #103451 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Can't upload image to the item/image
Hello Dani,

This button loads Joomla!'s native media manager.

Check your folders permissions for any potential issues. You can use Admin Tools to fix any issues (it can be a subfolder causing these issues).

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Suba
  • Suba's Avatar
  • Visitor
10 years 11 months ago #103452 by Suba
Replied by Suba on topic Re: Can't upload image to the item/image
Hi. I listed the permissions for you in my previous post, so they are all writable as you see. logs, tmp and cache in joomlaroot is also set to 777. Which other folders should I check for?
I use FileZilla. What is Admin Tools?

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 11 months ago #103453 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Can't upload image to the item/image
It's a security extension which also offers permissions repair. Sometimes a subfolder can cause this issue which you can't see for yourself.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #103454 by Jean
Replied by Jean on topic Re: Can't upload image to the item/image
Hi guys,

I know it might be a little late but here's my discovery after a long period of research. I discovered that when i change the permission setting in filezilla it gives me the error: "500 'site chmod 777 controller php': command not understood" - i researched it and apparently the chmod is meant for linux hosting packages and not compatible with windows. i decided bull. So did the following:

Go to hosting control panel
Use the file manager and change the permission settings for the following there: (please not that the cache file is not under the media folder but is vital for uploading images)
media/k2 Writable
media/k2/attachments Writable
media/k2/categories Writable
media/k2/galleries Writable
media/k2/items Writable
media/k2/users Writable
media/k2/videos Writable
cache Writable

You should be able to check if the components are writeable in your back end directory by going to: components/k2/information (check bottom right corner of page)

Lastly i changed my jQuery library handling : load v1.7 x (remote copy) to load v1.9 x (remote copy) - you might not need to do this at all.

My images are uploading and resizing perfectly. Hope this helps.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum