Error Uploading Photos to Media Manager

General questions relating to Joomla! 2.5. Note: All 1.6 and 1.7 releases have reached end of life and should be updated to 2.5. There are other boards for more specific help on Joomla! features and extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Locked
l8k26h82
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue Jun 04, 2013 4:37 pm

Error Uploading Photos to Media Manager

Post by l8k26h82 » Tue Jun 04, 2013 4:45 pm

Everytime I go to upload a photo, I get a message telling me it is not a secure form.

Then it tries to upload and takes me to a page with this message:

Notice: Undefined index: CONTENT_LENGTH in /var/www/mctaweb.net/htdocs/administrator/components/com_media/controllers/file.php on line 54
Notice: Undefined index: CONTENT_LENGTH in /var/www/mctaweb.net/htdocs/administrator/components/com_media/controllers/file.php on line 55
Notice: Undefined index: CONTENT_LENGTH in /var/www/mctaweb.net/htdocs/administrator/components/com_media/controllers/file.php on line 56
Notice: Undefined index: CONTENT_LENGTH in /var/www/mctaweb.net/htdocs/administrator/components/com_media/controllers/file.php on line 57
Notice: Undefined index: name in /var/www/mctaweb.net/htdocs/administrator/components/com_media/controllers/file.php on line 67
Notice: Undefined index: type in /var/www/mctaweb.net/htdocs/administrator/components/com_media/controllers/file.php on line 67
Notice: Undefined index: tmp_name in /var/www/mctaweb.net/htdocs/administrator/components/com_media/controllers/file.php on line 67
Notice: Undefined index: error in /var/www/mctaweb.net/htdocs/administrator/components/com_media/controllers/file.php on line 67
Notice: Undefined index: size in /var/www/mctaweb.net/htdocs/administrator/components/com_media/controllers/file.php on line 67

i"m not very advanced with troubleshooting IT problems. Do any of you have any solutions for this problem?

Mani87
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Fri Jun 07, 2013 12:13 pm

Re: Error Uploading Photos to Media Manager

Post by Mani87 » Fri Jun 07, 2013 1:20 pm

Did you changed log and tmp paths in Global configuration?
Mani

l8k26h82
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue Jun 04, 2013 4:37 pm

Re: Error Uploading Photos to Media Manager

Post by l8k26h82 » Wed Jun 12, 2013 2:10 pm

I have not made any changes to log or tmp paths. I'm not even really sure how to do that. I looked through global configurations but did not see anything other than uploading from an ftp site that even looked related.

PeterMK
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Jun 12, 2013 5:02 pm

Re: Error Uploading Photos to Media Manager

Post by PeterMK » Wed Jun 12, 2013 5:06 pm

Its still an issue

Seems to be the same issue:
http://joomlacode.org/gf/project/joomla ... m_id=29964

BUT its not solved.

System info:
PHP Built On Linux s35 2.6.27.57 #3 SMP Fri Apr 22 01:40:01 CEST 2011 i686
Database Version 5.1.56-0.dotdeb.0-log
Database Collation utf8_general_ci
PHP Version 5.3.21
Web Server Apache
WebServer to PHP Interface cgi-fcgi
Joomla! Version Joomla! 2.5.11 Stable [ Ember ] 26-April-2013 14:00 GMT
Joomla! Platform Version Joomla Platform 11.4.0 Stable [ Brian Kernighan ] 03-Jan-2012 00:00 GMT

Errors in development mode:

Notice: Undefined index: CONTENT_LENGTH in /joomla/administrator/components/com_media/controllers/file.php on line 54

Notice: Undefined index: CONTENT_LENGTH in /joomla/administrator/components/com_media/controllers/file.php on line 55

Notice: Undefined index: CONTENT_LENGTH in /joomla/administrator/components/com_media/controllers/file.php on line 56

Notice: Undefined index: CONTENT_LENGTH in /joomla/administrator/components/com_media/controllers/file.php on line 57

Notice: Undefined index: name in /joomla/administrator/components/com_media/controllers/file.php on line 67

Notice: Undefined index: type in /joomla/administrator/components/com_media/controllers/file.php on line 67

Notice: Undefined index: tmp_name in /joomla/administrator/components/com_media/controllers/file.php on line 67

Notice: Undefined index: error in /joomla/administrator/components/com_media/controllers/file.php on line 67

Notice: Undefined index: size in /joomla/administrator/components/com_media/controllers/file.php on line 67

PeterMK
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Jun 12, 2013 5:02 pm

Re: Error Uploading Photos to Media Manager

Post by PeterMK » Sun Jun 16, 2013 8:14 pm

Anyone?

funky_bunky
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Thu Mar 07, 2013 12:16 pm

Re: Error Uploading Photos to Media Manager

Post by funky_bunky » Wed Aug 14, 2013 10:04 pm

I encounter the same issue in Joomla 3.1.5:

Notice: Undefined index: CONTENT_LENGTH in /serverpath/content/administrator/components/com_media/controllers/file.php on line 61

Notice: Undefined index: CONTENT_LENGTH in /serverpath/content/administrator/components/com_media/controllers/file.php on line 62

Notice: Undefined index: CONTENT_LENGTH in /serverpath/content/administrator/components/com_media/controllers/file.php on line 63

Notice: Undefined index: CONTENT_LENGTH in /serverpath/content/administrator/components/com_media/controllers/file.php on line 64

Warning: Invalid argument supplied for foreach() in /serverpath/content/administrator/components/com_media/controllers/file.php on line 72

Warning: Invalid argument supplied for foreach() in /serverpath/content/administrator/components/com_media/controllers/file.php on line 109

I tried to play around with different php settings, but it didn't solve anything.
The settings in the configuration.php seem to be correct, too (like the path settings that were mentioned here)

Important to note: The problem occurs only in online server environment, in local xampp I can upload files using the media manager (I run the backup version of the live site there)

snatrott
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Thu Feb 14, 2008 6:11 pm

Re: Error Uploading Photos to Media Manager

Post by snatrott » Thu Sep 26, 2013 8:47 pm

I am running into the same issue running:
Joomla 2.5.14
PHP 5.3.2

I can't upload images using JCE either.

I have checked the permissions and the tmp directory. I am leaning towards it being a server issue, but I don't know what else to check.

Any help is greatly appreciated.

jav1968
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed Oct 09, 2013 1:50 pm

Re: Error Uploading Photos to Media Manager

Post by jav1968 » Wed Oct 09, 2013 1:54 pm

Problem is in administrator/components/com_media/views/media/tmpl/default.php .

It need to insert <?php echo 'http(or https)://link_to_your_site/administrator/?> instead of <?php echo JURI::base(); ?>

miteY
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sun Nov 06, 2011 7:06 pm

Re: Error Uploading Photos to Media Manager

Post by miteY » Thu Oct 17, 2013 10:37 pm

I had the same problem in my Joomla 3.1.5 website and was able to fix it by changing the memory_limit in my php.ini.

Since I do not have access to php.ini directly on my shared hosting account, I added the settings to a .user.ini file.

I have a .user.ini file because I had problems with magic quotes and had to turn them off. So if there is no .user.ini file in your Joomla root, simply create one.

Under System > System Information > PHP Information, my memory_limit is originally set as 128M. So in my .user.ini file, I added

'memory_limit = 127M' without the quotes.

That solved the problem. You might need to log out and then login for the changes to take effect.

Cheers.

User avatar
MikeEllis
Joomla! Intern
Joomla! Intern
Posts: 52
Joined: Thu May 19, 2011 7:26 pm
Location: North Wales, UK

Re: Error Uploading Photos to Media Manager

Post by MikeEllis » Thu Jan 30, 2014 8:08 pm

I have this same problem in Joomla 3.2.

I have checked and double checked all config parameters such as tmp_path in configuration.php, upload_tmp_dir in php and memory_limit.

Has anyone identified the cause to this issue as looking at the forum, a number of people are getting the same issue but no one seems certain what the problem is, or how to solve it?

User avatar
Bernard T
Joomla! Guru
Joomla! Guru
Posts: 782
Joined: Thu Jun 29, 2006 11:44 am
Location: Hrvatska
Contact:

Re: Error Uploading Photos to Media Manager

Post by Bernard T » Sun Mar 15, 2015 6:19 pm

For the reference, here is the solution to probably the same problem:
http://forum.joomla.org/viewtopic.php?f ... 9#p3281619
VEL Team || Security Forum || PHP/Web Security Specialist || OWASP member
JAMSS author http://forum.joomla.org/viewtopic.php?f=621&t=777957
Twitter: @toplak


Locked

Return to “General Questions/New to Joomla! 2.5”