Cannot upload images

This forum is for reporting bugs in Joomla!. Please don't report problems with extensions in here.
zhenhao
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Mon Nov 26, 2007 7:45 am

Cannot upload images

Post by zhenhao » Fri Dec 14, 2007 9:16 am

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

User avatar
Tonie
Joomla! Master
Joomla! Master
Posts: 16553
Joined: Thu Aug 18, 2005 7:13 am

Re: Cannot upload images

Post by Tonie » Fri Dec 14, 2007 11:06 am

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?

zhenhao
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Mon Nov 26, 2007 7:45 am

Re: Cannot upload images

Post by zhenhao » Mon Dec 17, 2007 1:21 am

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 ?

User avatar
Tonie
Joomla! Master
Joomla! Master
Posts: 16553
Joined: Thu Aug 18, 2005 7:13 am

Re: Cannot upload images

Post by Tonie » Mon Dec 17, 2007 9:53 am

I'll move this to the Q&T forum.

User avatar
mcsmom
Joomla! Exemplar
Joomla! Exemplar
Posts: 7897
Joined: Thu Aug 18, 2005 8:43 pm
Location: New York
Contact:

Re: Cannot upload images

Post by mcsmom » Mon Dec 17, 2007 10:23 am

do you have safe mode on?

please don't make any directory 777, it is dangerous for your site.
So we must fix our vision not merely on the negative expulsion of war, but upon the positive affirmation of peace. MLK 1964.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.

User avatar
ircmaxell
Joomla! Ace
Joomla! Ace
Posts: 1926
Joined: Thu Nov 10, 2005 3:10 am
Location: New Jersey, USA
Contact:

Re: Cannot upload images

Post by ircmaxell » Mon Dec 17, 2007 4:56 pm

Are you using the HTML upload form, or the flash one?  (see attached images)

HTML
Image

or

FLASH
Image
Anthony Ferrara - Core Team - Development Coordinator - Bug Squad - JSST

http://moovum.com/ - The Bird is in the air! Get Mollom Anti-Spam on your Joomla! website with Moovur...
http://www.joomlaperformance.com For All Your Joomla Performance Needs

zhenhao
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Mon Nov 26, 2007 7:45 am

Re: Cannot upload images

Post by zhenhao » Tue Dec 18, 2007 3:31 am

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.

User avatar
ircmaxell
Joomla! Ace
Joomla! Ace
Posts: 1926
Joined: Thu Nov 10, 2005 3:10 am
Location: New Jersey, USA
Contact:

Re: Cannot upload images

Post by ircmaxell » Tue Dec 18, 2007 3:52 am

What build are you running?  (open CHANGELOG.php, and find the number on the 2nd line after Id)...
Anthony Ferrara - Core Team - Development Coordinator - Bug Squad - JSST

http://moovum.com/ - The Bird is in the air! Get Mollom Anti-Spam on your Joomla! website with Moovur...
http://www.joomlaperformance.com For All Your Joomla Performance Needs

zhenhao
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Mon Nov 26, 2007 7:45 am

Re: Cannot upload images

Post by zhenhao » Tue Dec 18, 2007 4:03 am

currently using 9652

orlandodub
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Thu Sep 29, 2005 12:15 pm

Re: Cannot upload images

Post by orlandodub » Thu Dec 20, 2007 2:29 pm

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 ] 

User avatar
bass28
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 137
Joined: Mon Apr 17, 2006 5:11 pm

Re: Cannot upload images

Post by bass28 » Thu Dec 20, 2007 6:52 pm

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.

ndee_at
Joomla! Apprentice
Joomla! Apprentice
Posts: 37
Joined: Sun Aug 21, 2005 10:24 am

Re: Cannot upload images

Post by ndee_at » Wed Jan 02, 2008 7:26 pm

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

User avatar
jenscski
Joomla! Ace
Joomla! Ace
Posts: 1465
Joined: Thu Aug 18, 2005 6:58 am
Location: Tønsberg, Norway

Re: Cannot upload images

Post by jenscski » Wed Jan 02, 2008 10:04 pm

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
Jens-Christian Skibakk
MMS Blog - http://mms.pipp.no/
Joomla! i Norge / Joomla! in Norway - http://www.joomlainorge.no/

ndee_at
Joomla! Apprentice
Joomla! Apprentice
Posts: 37
Joined: Sun Aug 21, 2005 10:24 am

Re: Cannot upload images

Post by ndee_at » Wed Jan 02, 2008 11:52 pm

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

RonVA
Joomla! Apprentice
Joomla! Apprentice
Posts: 34
Joined: Wed Sep 05, 2007 4:22 pm

Re: Cannot upload images

Post by RonVA » Thu Jan 03, 2008 2:40 pm

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'
You do not have the required permissions to view the files attached to this post.
Last edited by RonVA on Thu Jan 03, 2008 2:43 pm, edited 1 time in total.

RonVA
Joomla! Apprentice
Joomla! Apprentice
Posts: 34
Joined: Wed Sep 05, 2007 4:22 pm

Re: Cannot upload images

Post by RonVA » Fri Jan 04, 2008 1:18 pm

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

User avatar
jenscski
Joomla! Ace
Joomla! Ace
Posts: 1465
Joined: Thu Aug 18, 2005 6:58 am
Location: Tønsberg, Norway

Re: Cannot upload images

Post by jenscski » Fri Jan 04, 2008 1:43 pm

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!
Jens-Christian Skibakk
MMS Blog - http://mms.pipp.no/
Joomla! i Norge / Joomla! in Norway - http://www.joomlainorge.no/

User avatar
mcsmom
Joomla! Exemplar
Joomla! Exemplar
Posts: 7897
Joined: Thu Aug 18, 2005 8:43 pm
Location: New York
Contact:

Re: Cannot upload images

Post by mcsmom » Fri Jan 04, 2008 3:46 pm

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.
So we must fix our vision not merely on the negative expulsion of war, but upon the positive affirmation of peace. MLK 1964.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.

RonVA
Joomla! Apprentice
Joomla! Apprentice
Posts: 34
Joined: Wed Sep 05, 2007 4:22 pm

Re: Cannot upload images

Post by RonVA » Fri Jan 04, 2008 5:24 pm

use_only_cookies is off both on the site on which it DOES work and on the site were it does NOT work.

marcel84
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Thu Nov 08, 2007 10:26 am

Re: Cannot upload images

Post by marcel84 » Sat Jan 05, 2008 8:26 pm

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.
Last edited by marcel84 on Sun Jan 06, 2008 5:31 pm, edited 1 time in total.

charlot
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Sun Jan 06, 2008 8:13 pm

Re: Cannot upload images

Post by charlot » Sun Jan 06, 2008 10:28 pm

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
Last edited by charlot on Sun Jan 06, 2008 10:30 pm, edited 1 time in total.

User avatar
mcsmom
Joomla! Exemplar
Joomla! Exemplar
Posts: 7897
Joined: Thu Aug 18, 2005 8:43 pm
Location: New York
Contact:

Re: Cannot upload images

Post by mcsmom » Sun Jan 06, 2008 10:43 pm

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. 
So we must fix our vision not merely on the negative expulsion of war, but upon the positive affirmation of peace. MLK 1964.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.

charlot
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Sun Jan 06, 2008 8:13 pm

Re: Cannot upload images

Post by charlot » Mon Jan 07, 2008 3:36 pm

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

User avatar
3wP
Joomla! Explorer
Joomla! Explorer
Posts: 261
Joined: Mon May 14, 2007 6:29 pm
Location: Norway

Re: Cannot upload images

Post by 3wP » Mon Jan 07, 2008 4:20 pm

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

RonVA
Joomla! Apprentice
Joomla! Apprentice
Posts: 34
Joined: Wed Sep 05, 2007 4:22 pm

Re: Cannot upload images

Post by RonVA » Mon Jan 07, 2008 5:06 pm

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

User avatar
mcsmom
Joomla! Exemplar
Joomla! Exemplar
Posts: 7897
Joined: Thu Aug 18, 2005 8:43 pm
Location: New York
Contact:

Re: Cannot upload images

Post by mcsmom » Mon Jan 07, 2008 5:55 pm

You may want to put error reporting on maximum.  It may help with uncovering php and apache issues.
So we must fix our vision not merely on the negative expulsion of war, but upon the positive affirmation of peace. MLK 1964.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.

charlot
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Sun Jan 06, 2008 8:13 pm

Re: Cannot upload images

Post by charlot » Mon Jan 07, 2008 6:30 pm

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

RonVA
Joomla! Apprentice
Joomla! Apprentice
Posts: 34
Joined: Wed Sep 05, 2007 4:22 pm

Re: Cannot upload images

Post by RonVA » Tue Jan 08, 2008 1:16 pm

I have added this problem to the bugtracker: http://joomlacode.org/gf/project/joomla ... em_id=9032

Stian
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 247
Joined: Sat May 20, 2006 7:58 am
Location: Norway

Re: Cannot upload images

Post by Stian » Wed Jan 09, 2008 9:37 pm

I see that oneone is assigned to this tracker. Is all hope lost  ;), since the trunk for 1.5 is now frozen?

Stian

Stasys
Joomla! Ace
Joomla! Ace
Posts: 1318
Joined: Wed Aug 17, 2005 11:06 pm
Location: Lithuania
Contact:

Re: Cannot upload images

Post by Stasys » Mon Jan 21, 2008 4:59 pm

Status:
Fixed in SVN
Lithuanian Joomla! Community http://www.lithuanianjoomla.com
lietuviškas Joomla! puslapis, naujienos, straipsniai, forumas, vertimai
always be open source, and be free as freedom


Locked

Return to “Joomla! 1.5 Bug Reporting”