Uutiset:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu
Advertisement:

Problem with attachments.

Aloittaja hutch--, joulukuu 30, 2004, 08:36:27 AP

« edellinen - seuraava »

hutch--

I added the new version upgrade earlier today and now the forum will not accept attachments, it generates an error message instead after you try and make the posting that has the attachment. I am basically getting this message.
Lainaa
An Error Has Occurred!
Your attachment couldn't be saved. This might happen because it took too long to upload or the file is bigger than the server will allow.

Please consult your server administrator for more information.
I have the attachments enabled and set to 265k and it was working perfectly before I did the upgrade. Any suggestions here ?

There is a discrepancy in the help data from admin with the attachment settings and the interface.

The help says,
Lainaa
Allow guests to post attachments?:
Select if guests can attach files to posts.
But the 3 options in the combo box are,

    Diable Attachments
    Enable All Attachments
    Disable New Attachments


Regards,

hutch at movsd dot com
   
Regards,

hutch at movsd dot com
http://www.masm32.com

Trekkie101

As it says the upload may have taken too long and aborted or you dont have any space left on your space. Maybe try a faster connection or get more space.

hutch--

No, I use a fast ADSL connection and the error comes up quickly anyway. I am not the only member who has the problem. I have climbed over every setting I can find and they are all set as enabled so its something else. I have about 1.9 gig free disk space on the server so its not that problem either.
Regards,

hutch at movsd dot com
http://www.masm32.com

Trekkie101

Can you FTP up stuff, has php.ini been changed at all?

hutch--

This is the content of the php.ini file in the domain root.

register_globals = 0
allow_url_fopen = 0

I can upload files to the server with FTP  as normal. I checked the directory permissions and nothing has changed, its the same as the rest.
Regards,

hutch at movsd dot com
http://www.masm32.com

[Unknown]

Do any of the other file upload functions work, such as the package manager, smiley set manager, or theme interface?

Lainaus käyttäjältä: hutch-- - joulukuu 30, 2004, 08:36:27 AP
There is a discrepancy in the help data from admin with the attachment settings and the interface.

The help says,
Lainaa
Allow guests to post attachments?:
Select if guests can attach files to posts.
But the 3 options in the combo box are,

    Diable Attachments
    Enable All Attachments
    Disable New Attachments


I can't find this in my copy.  Are you sure all your files are up to date?

-[Unknown]

Gray

I've got this problem as well :(

www.hattrick-scotland.com/forum/

It was working prior to the upgrade to 1.0, now it's giving me the above error.
I've checked the permisssions, and they look to be setup ok, so not sure what's wrong.
If someone wants Admin, FTP access to look into this for me, I'll PM the details to them.

PS. A test forum on this server has this problem as well, but another forum i run on a different server, upgraded without any problems, so it may be server related.
Gray

Trekkie101

@ Gray

What php version are the two servers running, and what version of Zend, infact just post two phpinfo liks.

What is phpinfo.php?

Gray

www.hattrick-scotland.com/phpinfo.php the problem server

www.thevizzinifamily.co.uk/phpinfo.php the ok server

I wan't sure what php/zend was on each server at the time, so I did the update in the package manager when it was released to make sure I would be ok.
Gray

Trekkie101

Gray the problematic server has a max upload file size of 2M and the other 8M so is there still a problem or not.

Gray

Yep, still can't upload.
The jpeg I'm trying to upload is only 29.9kb, and the forum is set to allow up to 256kb.
I tried it with a gif file as well, same problem.
Gray

Trekkie101

I think i got it, just need someone to confirm,

in the probalematic server there is not an upload tmp dir

Lainaaupload_tmp_dir   no value   no value

And in the working one it says

Lainaaupload_tmp_dir   /tmp   /tmp

I wonder if thats it, could you set it or ask your host to try. Or does anyone think im way off.

Gray

Hmm, I'm not the actual account holder on that server, so I'd need to email the account holder to get them to make the request if that's the problem.

Can we confirm if that is indeed the problem before I do that?
Gray

Trekkie101

Hopefully someone will buzz in and reply soon. Thats just a maybe though it could be a lot of other things but i noticed that one.

Elissen

#14
my php.ini has this:
Lainaa; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
;upload_tmp_dir =
as you see it isn't specified.

my phpInfo();
Lainaaupload_tmp_dir   no value   no value

Also upgraded my testboard to 1.0 and I can upload there. That with the comments in php.ini I don't think that should be the problem.

isn't the partition with the tmp-folder on it full? (I hope not) You can try of course setting your tmp-folder to a subfolder of your home-directory.

Trekkie101

What OS, Linux?

He is on BSD so it may differ a bit.

Elissen

yup, Debian (Sarge). Altough I expect that PHP should work the same on things like that over different OS-systems.

php.ini-dist and php.ini-recommended have the same comment. But then again, I know zip zada nothing about freebsd :-[

Trekkie101

It was just a guess really on my part just the one that worked had a path the other didnt.

[Unknown]

Well, interesting.  I'd guess it's a /tmp thing.... probably the not working host doesn't have /tmp writable.  Many hosts are doing this in response to the worm, I expect.

Try something like this:

<?php

echo '<form action="'$_SERVER['PHP_SELF'], '" method="post" enctype="multipart/form-data"><input type="file" name="text" /></form>';

print_r($_FILES);
print_r($php_errormsg);

?>


-[Unknown]

Gray

Sorry, but I'm a complete idiot when it comes to coding.

What are you wanting me to do with this code? Or where are you wanting it put?
Gray

Advertisement: