Keyword

No image upload

More
15 years 3 months ago #78844 by Bernd
No image upload was created by Bernd
Hi community,the picture upload does not work in the article. To add a picture from the pictures folder (imagse/stories) also does not work.Any ideas?

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

More
15 years 3 months ago #78845 by piperchick
Replied by piperchick on topic No image upload
I have had a problem if the image was larger than approx 1 MB. My php,ini will allow up to 12 MB, I can use JCE to add larger and the Joomla media manager, but K2 will not recognise these images. I get either a white screen or a message telling me that the changes have been saved (which is not actually the case).

What happens when you try to upload?

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

More
15 years 3 months ago #78846 by Bernd
Replied by Bernd on topic No image upload
I get this same message = "Changes to Item saved" on a blue bar above the artikle but no image and no white screen.

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

More
15 years 2 months ago #78847 by Bernd
Replied by Bernd on topic No image upload
Problem is solved. It was a www-run problem.

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

More
15 years 2 months ago #78848 by Ala Makota
Replied by Ala Makota on topic No image upload
Hi all,

what is a "www-run problem"? Can you share with the others how did you solve this issue?


Bernd said:Problem is solved. It was a www-run problem.

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

More
15 years 2 months ago #78849 by Bernd
Replied by Bernd on topic No image upload
wwwrun is a preference/user problem on a host. Check your files on your server.

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

More
15 years 2 months ago #78850 by Ala Makota
Replied by Ala Makota on topic No image upload
Do you mean wrong chmod on image folder? Still I can't figure it out...

Bernd said:wwwrun is a preference/user problem on a host. Check your files on your server.

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

More
15 years 2 months ago #78851 by Bernd
Replied by Bernd on topic No image upload
Yes and check the files. The files must be your FTP user not wwwrun or nobody.

Ala Makota said:Do you mean wrong chmod on image folder? Still I can't figure it out...
Bernd said:wwwrun is a preference/user problem on a host. Check your files on your server.

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

More
14 years 9 months ago #78852 by Adrian Aguilera
Replied by Adrian Aguilera on topic No image upload
The owner of the files is ok, but still not working.
I tried 777, 755, 775 chmod... nothing.

Bernd said:Yes and check the files. The files must be your FTP user not wwwrun or nobody.
Ala Makota said:Do you mean wrong chmod on image folder? Still I can't figure it out... Bernd said:wwwrun is a preference/user problem on a host. Check your files on your server.

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

More
14 years 9 months ago #78853 by Lefteris
Replied by Lefteris on topic No image upload
Where does K2 save the Category and Item Image Files?

Bernd said:Yes and check the files. The files must be your FTP user not wwwrun or nobody.
Ala Makota said:Do you mean wrong chmod on image folder? Still I can't figure it out... Bernd said:wwwrun is a preference/user problem on a host. Check your files on your server.

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

More
14 years 9 months ago #78854 by Bernd
Replied by Bernd on topic No image upload
root/media/K2/

Pierre Cornelissen said:Where does K2 save the Category and Item Image Files?
Bernd said:Yes and check the files. The files must be your FTP user not wwwrun or nobody. Ala Makota said:Do you mean wrong chmod on image folder? Still I can't figure it out... Bernd said:wwwrun is a preference/user problem on a host. Check your files on your server.

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

More
14 years 9 months ago #78855 by Lefteris
Replied by Lefteris on topic No image upload
Thanks very much. As stated in another thread, I did found it and set the security to 777 which I think is a bit dangerous. Will look into security settings and set accordingly.

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

More
14 years 7 months ago #78856 by Gijs Scholman
Replied by Gijs Scholman on topic No image upload
Hey, I have exact the same problem. If I add a picture and save the article it says "Changes to item saved", but then there is no picture there. The picture is .JPG of 600x600 pixels and 40kb (also tried other pictures), so that could not be the problem, also root/media/k2 and all the subfolders are on CHMOD 777 also Group and owner are both set to FTP. I use the latest K2 v2.4.1 and Joomla 1.5.20. Can someone please help me out here?

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

More
14 years 7 months ago #78857 by Gideon Larionov
Replied by Gideon Larionov on topic No image upload
Similar problem... if i add picture to item, got blank screen after Save/Apply and no image added.

Also using the latest K2 v2.4.1 and Joomla 1.5.20.

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

  • Nick Texidor
  • Nick Texidor's Avatar
  • Visitor
14 years 7 months ago #78858 by Nick Texidor
Replied by Nick Texidor on topic No image upload
For those people having problems with the uploading of files, and have already ruled out a problem with permissions, I have a solution....

The quick fix is to edit /administrator/components/com_k2/lib/class.upload.php. Go to the init() function, and change the following variables from true to false:

$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())

You are 'SUPPOSED' to be able to override these settings in the calling script, however, because of a fundamental flaw in the design, it doesn't actually work :^)

I have documented the flaw in another post, but the above should at least get you working!

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

More
14 years 7 months ago #78859 by Gideon Larionov
Replied by Gideon Larionov on topic No image upload
Nick Texidor said:For those people having problems with the uploading of files, and have already ruled out a problem with permissions, I have a solution....


Let`s try it out :-)

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

  • Nick Texidor
  • Nick Texidor's Avatar
  • Visitor
14 years 7 months ago #78860 by Nick Texidor
Replied by Nick Texidor on topic No image upload
So, did it work? :^)


Gideon Larionov said:
Nick Texidor said:For those people having problems with the uploading of files, and have already ruled out a problem with permissions, I have a solution....


Let`s try it out :-)

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

More
14 years 7 months ago #78861 by Gideon Larionov
Replied by Gideon Larionov on topic No image upload
Woks fine... now i can fully use this awesome K2 component :-) Thanx

Nick Texidor said:So, did it work? :^)

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

More
14 years 7 months ago #78862 by Lefteris
Replied by Lefteris on topic No image upload
Since as an admin I upload the images to the folder via cPanel, but have not tried this one; what will happen if an upgrade from K2 arrives - will they have fixed this problem in the meantime?

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

  • Nick Texidor
  • Nick Texidor's Avatar
  • Visitor
14 years 7 months ago #78863 by Nick Texidor
Replied by Nick Texidor on topic No image upload
Considering I found this problem in K2 2.2, and K2 2.4.1 still hasn't fixed it... you'll probably have to update the class.upload.php script again to turn off the MIME checking as I mentioned above.


Pierre Cornelissen said:Since as an admin I upload the images to the folder via cPanel, but have not tried this one; what will happen if an upgrade from K2 arrives - will they have fixed this problem in the meantime?

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


Powered by Kunena Forum