Page 1 of 5

Cannot upload images

Posted: Fri Dec 14, 2007 9:16 am
by zhenhao
Hi,

  I am using Joomla1.5 now and i have problems uploading images from both the frontend and the backend(including the Media Manager). When I click on "Start Upload", the progress bar shows that the upload is completed. however the image is not uploaded. What makes it puzzling is that sometimes , it works. And when it works, there would be a blue banner on top of the webpage showing that the upload is completed. Any idea what i may be missing here ? I am running my joomla on a LAMP stack.

thanks in advance

Re: Cannot upload images

Posted: Fri Dec 14, 2007 11:06 am
by Tonie
A bunch of issues were solved yesterday in SVN regarding this:

# [#8548] com_media file uploads generating error 403 - Fix pending discussion
# Fixed Warning thrown when FTP client tries to chmod when using on Windows (Thanks Anner J. Bonilla)
# Fixed [#8548] and [#8566] com_media uploads broken when using flash uploader

Could it be that you are experiencing one of these?

Re: Cannot upload images

Posted: Mon Dec 17, 2007 1:21 am
by zhenhao
thanks for the reply, i have just tried downloading the latest build from here : http://dev.joomla.org/content/view/17/60/
apparently, it still does not work. i have chmod the image directory to 777 and below are some of the lines i picked up from the apache log file, not sure if it is of any relevance :

1) PHP Fatal error : Class 'JModuleHelper' not found in /administrator/components/com_login/admin.login.php online 47

Under the global configuration i set:
Use Apache mod_rewrite : Yes
FTP is not enabled

i just found out something interesting. When i set the debug mode on, i can upload successfully! .. any ideas on what's wrong ? Could it be the settings in my apache server that is causing the problem ?

Re: Cannot upload images

Posted: Mon Dec 17, 2007 9:53 am
by Tonie
I'll move this to the Q&T forum.

Re: Cannot upload images

Posted: Mon Dec 17, 2007 10:23 am
by mcsmom
do you have safe mode on?

please don't make any directory 777, it is dangerous for your site.

Re: Cannot upload images

Posted: Mon Dec 17, 2007 4:56 pm
by ircmaxell
Are you using the HTML upload form, or the flash one?  (see attached images)

HTML
Image

or

FLASH
Image

Re: Cannot upload images

Posted: Tue Dec 18, 2007 3:31 am
by zhenhao
mcsmom, php safe mode is Off , and i have chmod the images directory back to 775 :)

ircmaxell, i have not noticed the difference until you mentioned. It works when i am using the HTML upload form but not when i am using the flash one. I checked out the the Tracker and i am facing the same problems as Jason Luttrell in #8663. It originally loads the HTML uploader but upon clicking the scroll bar, it changes to the flash uploader. (I am using FF now, i tried testing in IE7 and it seems to work fine on IE) Well at least i know what is the problem now. Is there a workaround this ? or just have to wait till the bug gets fixed.

Re: Cannot upload images

Posted: Tue Dec 18, 2007 3:52 am
by ircmaxell
What build are you running?  (open CHANGELOG.php, and find the number on the 2nd line after Id)...

Re: Cannot upload images

Posted: Tue Dec 18, 2007 4:03 am
by zhenhao
currently using 9652

Re: Cannot upload images

Posted: Thu Dec 20, 2007 2:29 pm
by orlandodub
Confirming the same problem with RC4.

When Firefox loads the flash form I get the 403 error when uploading images, if I click on the html form (while the page loads) I can  upload images using Firefox.

Also, sometimes uploading works fine but as soon as I delete an image next upload gives 403 error


In IE7 there are no problems whatsoever, but the flash form never loads, I only see the html form. However, no matter what folder I choose to upload to the image always gets placed in the /images folder


PHP Built on:  Linux lin5 2.6.19.4-grsec #1 SMP Wed Feb 21 18:33:11 CET 2007 i686 
Database Version:  4.1.11-Debian_4sarge7-log 
Database Collation:  utf8_general_ci 
PHP Version:  4.4.7 
Web Server:  Apache 
Web Server to PHP interface:  apache 
Joomla! Version:  Joomla! 1.5.0 Production/Stable [ Karibu ] 

Re: Cannot upload images

Posted: Thu Dec 20, 2007 6:52 pm
by bass28
I can verify that in IE7 the files are being uploaded to the root image directory...not the one I have selected.  Perhaps the reason is that when I select a folder on the left the full path listed in the 'Files' text box is not updating to the currently selected subfolder.  It stays on the root path.

Should mention this is RC4.

Re: Cannot upload images

Posted: Wed Jan 02, 2008 7:26 pm
by ndee_at
ircmaxell wrote: Are you using the HTML upload form, or the flash one?  (see attached images)
Hi ircmaxell!

This seems to be a solution. Yesterday I had the html-uploader but now only the flash version is showing up. Can you please tell me where I can switch to html-form only?

Thanks in advance!

Greets,
Andy

Re: Cannot upload images

Posted: Wed Jan 02, 2008 10:04 pm
by jenscski
I was also getting 403's when uploading images, but adding this to the .htaccess file made the upload work as it should do.

SECFILTERENGINE OFF
SECFILTERSCANPOST OFF

Re: Cannot upload images

Posted: Wed Jan 02, 2008 11:52 pm
by ndee_at
Hi,

thanks for the hint, unfortunately adding this to the .htaccess file did not work for me. I get logged out from Admin and see the Login-Screen in the mediamanager space, then I have to login again.

Greets,
Andy

Re: Cannot upload images

Posted: Thu Jan 03, 2008 2:40 pm
by RonVA
Same problem for me. Uploaded with firefox latest version. Apparently flash. I also would like to know how the difference between the HTML and the flash uploader is made.

I running the latest daily build from January 2.

When a file is uploaded we either see nothing, the file appears to be lost in cyberspace OR we are logged out. See image for the latter.

This doesn't happen on my local apache server, only on our hosting providers server. I contacted them to cirtically review security settings but they couldn't find anything relevant.

More error handling should be build in the media manager to capture this kind of behavior!

(the text in the picture = 'You are not authorized to view this page'

Re: Cannot upload images

Posted: Fri Jan 04, 2008 1:18 pm
by RonVA
This is a serious problem for us. I tested this behavior on another hosting provider and.. there it works. If this cannot be solved we have to switch from our current provider to this new provider. It's clearly a php/apache/Linux security setting but our current provider is unable to find out which one.
I reported this bug on the official bug tracker: http://joomlacode.org/gf/project/joomla ... em_id=9032

Re: Cannot upload images

Posted: Fri Jan 04, 2008 1:43 pm
by jenscski
RonVA wrote: This is a serious problem for us. I tested this behavior on another hosting provider and.. there it works. If this cannot be solved we have to switch from our current provider to this new provider. It's clearly a php/apache/Linux security setting but our current provider is unable to find out which one.
Do you know if the session.use_only_cookies is set to on?  You can check in the backend under system info and php settings.

I tested the upload on my site with this on, and the upload failed!

Re: Cannot upload images

Posted: Fri Jan 04, 2008 3:46 pm
by mcsmom
I have a strange thing in IE which is that the image thumbnails do not update after an upload when I upload more than one image in the article view. Closing the squeezebox and then opening again solves the display though.

Re: Cannot upload images

Posted: Fri Jan 04, 2008 5:24 pm
by RonVA
use_only_cookies is off both on the site on which it DOES work and on the site were it does NOT work.

Re: Cannot upload images

Posted: Sat Jan 05, 2008 8:26 pm
by marcel84
I have the same problem with RC4 (rel 9671), but only with Explorer and not with Firefox, Opera and Safari. The problem didn’t occur with RC3.
I’ve noticed that the files are always uploaded in the predefined  “images” directory, no matter the actual open directory you are in. Even the displayed pathname is always the predefined  “images”  one.
Opening the media manager gives a not specified page display error.
The same problem gives on apache server and on windows localhost.

To work out (temporarily), replace all directory "administrator\components\com_media" RC4 with the same RC3.

Re: Cannot upload images

Posted: Sun Jan 06, 2008 10:28 pm
by charlot
Hi !

Same pb with rel 9671,
flash buttons just after briefly saw html ones
upload give me the orange bar with 405 erreur in
have tried several .htaccess code without result

with firefox or safari

session. use_only_cookies are off

Bravo pour votre travail !
Thanks for your job !

charlot

Re: Cannot upload images

Posted: Sun Jan 06, 2008 10:43 pm
by mcsmom
Charlot,

We are now at 9904, so you might want to get a  new build. I will say that i still find the IE7 javascript fussy, but it does seem to work for images. 

Re: Cannot upload images

Posted: Mon Jan 07, 2008 3:36 pm
by charlot
Thanks mcsmom !

Have tried rel 9900 I could get on dev.j

Not better :-(

Note : I had to use old application.php 'cause rel 9900 blocked the site with "unexpected } on line 376" (last one)

Will try again with next rel

Many thanks


charlot

Re: Cannot upload images

Posted: Mon Jan 07, 2008 4:20 pm
by 3wP
Using the verry latest files

I have no troubles in the media manager - tried explorer 7, firefox latest, opera latest...

system info:
--------------------------

PHP Built on:  SunOS uw01.fastname.no 5.10 Generic_118855-15 i86pc
Database Version: 4.1.18
Database Collation: utf8_general_ci
PHP Version: 5.1.4
Web Server: Apache/2.0.58 (Unix) DAV/2 mod_ssl/2.0.58 OpenSSL/0.9.7d PHP/5.1.4
Web Server to PHP interface: cgi
Joomla! Version: Joomla! 1.5.0 Production/Stable [ Karibu ] 19-December-2007 19:00 GMT
User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11

I can upload - delete etc etc - and all images goes in the correct folders.

this must be a issue related mainly to various systems....

cant replicate the troubles

Re: Cannot upload images

Posted: Mon Jan 07, 2008 5:06 pm
by RonVA
It IS related to system settings. Thing is: Joomla should give more feedback if the upload is not succesful. Then it might be possible to find the security setting(s) that are responsible.

Ron

Re: Cannot upload images

Posted: Mon Jan 07, 2008 5:55 pm
by mcsmom
You may want to put error reporting on maximum.  It may help with uncovering php and apache issues.

Re: Cannot upload images

Posted: Mon Jan 07, 2008 6:30 pm
by charlot
Hi everyone !

my System Information
Setting Value

PHP Built on: Linux cgi22-ch 2.6.20-16-server #2 SMP Thu Jun 7 20:26:23 UTC 2007 i686
Database Version: 5.0.41-log
Database Collation: utf8_general_ci
PHP Version: 5.2.1
Web Server: Apache/1.3.34 (Ubuntu) mod_clarassl/1.0 mod_chroot/0.5
Web Server to PHP interface: cgi-fcgi
Joomla! Version: Joomla! 1.5.0 Production/Stable [ Karibu ] 19-December-2007 19:00 GMT
User Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; fr-fr) AppleWebKit/523.10.6 (KHTML, like Gecko) Version/3.0.4 Safari/523.10.6

Relevant PHP Settings
Safe Mode: Off
Open basedir: None
Display Errors: On
Short Open Tags: On
File Uploads: On
Magic Quotes: On
Register Globals: Off
Output Buffering: Off
Session Save Path: /tmp
Session Auto Start: 0
XML Enabled: Yes
Zlib Enabled: Yes
Disabled Functions: None
Mbstring Enabled: Yes
Iconv Available: Yes
WYSIWYG Editor: Editor - No Editor

The rel is 9900

I always get "Upload failed (405)"

All is "writable"

No debug


Many thanks and all the best from France

charlot

Re: Cannot upload images

Posted: Tue Jan 08, 2008 1:16 pm
by RonVA
I have added this problem to the bugtracker: http://joomlacode.org/gf/project/joomla ... em_id=9032

Re: Cannot upload images

Posted: Wed Jan 09, 2008 9:37 pm
by Stian
I see that oneone is assigned to this tracker. Is all hope lost  ;), since the trunk for 1.5 is now frozen?

Stian

Re: Cannot upload images

Posted: Mon Jan 21, 2008 4:59 pm
by Stasys
Status:
Fixed in SVN