[SOLVED] How do you upload images - it goes through the motions but I can't see them

goosequeen

Joined: 2009-10-15
Posts: 8
Posted: Thu, 2009-10-15 22:01

I cannot seem to upload any images. I browse my directory, select a jpg, the status bar shows and starts, but then it goes back to upload screen and I dont' see any images. it seems that smaller files work, but ones that are 2.4 me do not. What can I do?

is that a limitation of my server? how to change
thanks

help

thanks

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Thu, 2009-10-15 22:15

FAQ: Why can't I upload big files (over a megabyte or two)?

If that doesn't help, then:
Post your system information AND a link to phpinfo:
FAQ: What information is required when I ask for help in the forums?

FAQ: How do I create a phpinfo page?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
goosequeen

Joined: 2009-10-15
Posts: 8
Posted: Fri, 2009-10-16 15:10


Gallery version:2.3
PHP version (e.g. 5.1.6): 5.2.8
PHPInfo Link (see FAQ): sent
Webserver (e.g. Apache 1.3.33): 2.2.11 (Unix)
Linux
2.6.18-92.1.22.el5

Database (e.g. MySql 5.0.32):4.1.22-standard
Activated toolkits (e.g. NetPbm, GD): all default ones enabled with the install
Operating system (e.g. Linux):
Linux
2.6.18-92.1.22.el5
Browser (e.g. Firefox 2.0): IE 7

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Fri, 2009-10-16 15:35

Looks like something is stopping before it even starts to convert.

I did change a few things, uninstalled GD, FFmpeg, NetPBM. Installed and configured ImageMagick. Deactivated EXIF and ArchiveUpload just to rule those out. Still the same.

I'm not even able to upload a 23KB file. No errors or anything it just never gets to the point of the ImageToolkit even processing it. You're not out of memory resources. I don't know if something else on the server is killing the process. There's no open_basedir restriction.

Try setting a value for upload_tmp_dir to a directory like /tmp or something like that, that the webserver can read and write to.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
goosequeen

Joined: 2009-10-15
Posts: 8
Posted: Fri, 2009-10-16 18:01

thanks sooo much for checking.
maybe it is a firewall issue? does upload use any particular port?
it is odd, it worked once or twice on the small files, but never again on those same files even if I renamed them.

I will check with the server people and report back.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Fri, 2009-10-16 18:52
Quote:
does upload use any particular port?

Just 80

Check error logs and anything else you can.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
goosequeen

Joined: 2009-10-15
Posts: 8
Posted: Fri, 2009-10-16 20:50

what method does the code use to upload images? I will investigate that perhaps.
I am able to upload to my server (large files too) using the upload in cpanel so something particular with this method of uploading.

the move_uploaded_file php command also fails.

thanks

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Fri, 2009-10-16 21:01
Quote:
what method does the code use to upload images?

Nothing odd, it works on 100,000s of other sites. Do your server's error logs show anything?
FAQ: What is the webserver error log?

upload_tmp_dir still has no value assigned to it, please try setting that. I can add albums, but not images which makes me think it shouldn't be a permissions issue.

Quote:
the move_uploaded_file php command also fails.

I don't know what you're talking about here. Is this from within Gallery?

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
goosequeen

Joined: 2009-10-15
Posts: 8
Posted: Fri, 2009-10-16 21:03

ok, where do I set the upload_tmp_dir

thanks

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Fri, 2009-10-16 21:08

You need to change that in php.ini which is located at:
/usr/local/lib/php.ini

I'm assuming you have the ability to change that. If you run PHP as a cgi then you could separate this and set it specifically for your site or user account.

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
goosequeen

Joined: 2009-10-15
Posts: 8
Posted: Fri, 2009-10-16 21:23

ok, I changed that, but it did not work, cry cry.
the logs in cpanel don't show anything.

what else can I try?

 
goosequeen

Joined: 2009-10-15
Posts: 8
Posted: Sat, 2009-10-17 12:51

thanks for all your help. Problem Solved..The /tmp directory was full and that was the problem!!

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Sat, 2009-10-17 15:00

Ah! That'll do that :) Thanks for posting back with the cause.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here