Error - Forum users are only able to post 1 picture at a time

Started by ElectricSquid, March 10, 2008, 03:01:18 PM

Previous topic - Next topic

ElectricSquid

I originally posted a reply in another topic about this, but then saw it was marked Solved, and since it's not solved for me, figured a new topic was in order. Thanks.

-----------------------------------------------------------------------------------------

Forum users are only able to post 1 picture at a time if they can even upload a pic attachment at all.


This is the error in the error log:
Quotehttp://wherethetrailends.com/index.php?action=post2;start=0;msg=3155;sesc;board=1

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.


The attachments were JPG and about 50KB each x3 attachments.
My server settings (SMF) are to allow 100 attachments per post @ 750KB total size for all attachments. So I don't think I overshot the size limit like the error said.

Crappy part about this error is it totally dumps everything a user writes in the post when it errors out, and they have to totally rewright the reply. From what I've found, the rewrite only happens 25% of the time, so I think I'm pissing off members :(


I run:
SMF 1.1.4
TinyPortal 0.983
Rhino Theme (fairly stripped down for mod compatibility)

Mods include:
Display Age and Location next to posts  1.0
Auto Embed Video Clips    1.9

Any help will be   ...helpful :P

jerm

Thanks for making a new post ;) We probably would have never seen your other post since the topic is solved.
Could we also have your phpinfo:
What is a phpinfo() file?

Are there any errors in the log? Or is that just the error the user sees? Can you try with multiple types of browsers? Does it happen to everyone?

greyknight17

I was working with another member on that other topic that you posted on.....

Did you try the default theme and see if the attachment issues is still occurring? The last member that had this problem didn't get the attachments to work (with more than 1 file) because it was a theme issue.

ElectricSquid

I tried it with the default theme and it gave me the same issue.

QuoteAn 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.

Haha, I guess I'm supposed to consult myself :P That line is funny.


Anyway, I'll get the phpinfo posted in a sec. Thanks for the quick help.

ElectricSquid

#4
OK, you asked for it. Boy it it long :P

==================================



DELETED for security reasons
.


ElectricSquid

#5
During testing uploading pics with the default theme, I got the idea that I might try to do it with AutoEmbed Video Clips uninstalled, since that is the only real similarity I saw between my list of stuff, and the other guy in the other topic about this.

What I got was an error when I tried to do the uninstall.
It said:

Uninstall Actions "Auto Embed Video Clips":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./index.php    Test successful
2.    Execute Modification    ./SSI.php    Test failed
3.    Execute Modification    .\Sources/ModSettings.php    Test successful
4.    Execute Modification    .\Sources/Subs.php    Test successful
5.    Execute Modification    .\Themes\default/BoardIndex.template.php    Test failed
6.    Execute Modification    .\Themes\default/index.template.php    Test successful
7.    Execute Modification    .\Themes\default/languages/Modifications.english.php    Test successful
8.    Execute Modification    .\Themes\default/languages/Help.english.php    Test successful
9.    Execute Modification    ./chat/inc/flashChatTag.php    Test failed
10.    Execute Modification    ./chat/inc/cmses/smfCMS2.php    Test failed


I aborted the uninstall in fear that I may really screw things up and not be able to get it back. I'm not a fan of total ground up rebuilds.

ElectricSquid

If there's any more info you may need, just ask, I'll gladly give it.

ElectricSquid

Ooops, I think I know the issue with the uninstall, the error log said this (below) which leads me to believe that somehow my folder permissions are incorrect.

http://wherethetrailends.com/index.php?action=packages;sa=uninstall;package=Auto_Embed_Video_Clips_v11.9.zip
Apply Filter: Only show the errors with the same message
2: unlink(C:\Inetpub\wwwroot/Packages/temp/readme.txt) [<a href='function.unlink'>function.unlink</a>]: Permission denied
File: C:\Inetpub\wwwroot\Sources\Subs-Package.php
Line: 1157

ElectricSquid

#8
Nope, granting full permission didn't work.

I don't know if this uninstall issue and the error on pic upload issue are related.

SlammedDime

Let's put aside the issue with the mod uninstall, its most likely irrelvant.

As for the attachment problem... have you chmod'd the attachments directory to 777 and tried again?
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

ElectricSquid

Quote from: SlammedDime on March 12, 2008, 02:46:09 AM
Let's put aside the issue with the mod uninstall, its most likely irrelvant.

As for the attachment problem... have you chmod'd the attachments directory to 777 and tried again?

Sorry, I should have mentioned that I'm running on Windows Server 2003 w/ IIS6

Yes, I have tried completely allowing all permissions (for a brief time) and tried again. There was no change. That leads me to think that it is not a permissions based issue.

ElectricSquid


SlammedDime

Referencing the error above, when you look in "C:\Inetpub\wwwroot/Packages/temp/", does readme.txt exist, or is it no longer there? 

Going back to the permissions thing... does your webserver run as a different user than you use on your computer? I'm really not to fond of IIS and do not use it, but Apache, for example, can run as a different user on Windows with its own permission set aside from the username you normally use when on your computer (assuming that your computer and the server are one in the same).
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

ElectricSquid

Quote from: SlammedDime on March 17, 2008, 01:23:16 PM
Referencing the error above, when you look in "C:\Inetpub\wwwroot/Packages/temp/", does readme.txt exist, or is it no longer there? 

Readme.txt is still in that location. Within it is some info on the FlashChat Intigration mod that is no longer installed since it did not work/install on my Windows server.

QuoteGoing back to the permissions thing... does your webserver run as a different user than you use on your computer? I'm really not to fond of IIS and do not use it, but Apache, for example, can run as a different user on Windows with its own permission set aside from the username you normally use when on your computer (assuming that your computer and the server are one in the same).

My server is physically a totally seperate machine then my regular user computer. Everything on the server has been installed under the Admin account, and if it was available during install, runs as a service.

I rarely log in to the server, only when needed. As a security measure I keep it locked.

SlammedDime

I'm at a loss for ideas at this point.  I've posted the topic on our team board so that someone with a bit more experience than I with IIS can give you a hand.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

ElectricSquid

Cool, thanks.

It is kinda weird. Sometimes it does it, sometimes not.

In the error message, it does say "This might happen because it took too long to upload" But the weird part about that, and this may be a clue, is that the error message comes up immediately. There is no lag time between the push of the submit button, and the error page loading.

If the server did indeed take too long, wouldn't there be a page loading lag time before you got the error?


青山 素子

Firstly, check what directory is set for uploads in PHP. Make sure the IUSR account has write permissions for that directory.

Next, make sure the IUSR account has write permissions for your attachments directory.

Usually one of the two won't have permissions set properly and will cause this message.

Also, since you are running IIS6, you might want to look into using FastCGI, as PHP is much more stable under that than via direct CGI or ISAPI.
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


ElectricSquid

I'll look into that tomorrow, thanks.

I did just have the upload issue while modifying a reply. I was deleting one attachment and uploading another. I had just successfully uploaded 3 pics in a new topic, but one needed to be changed. This was all through a different machine than the server. Anyway, I went and logged on to the server, then logged off. Retried the attachment on the other machine, and it went right through that time.

ElectricSquid

I have PHP running as ISAPI, since when I loaded everything in a few months ago, CGI and FastCGI where said to be less stable and a lot less secure. I found that info directly on the PHP website.

As far as the IUSER account and permissions, IUSER has the proper permissions for those files and folders.

After last nights weirdness, the logging on and back off of the server to make the pic upload work, it dawned on me that SETI may be the problem. I have it configured to only run when the server is inactive, but I'm not so sure it considers web traffic to be active. The logs show that it's not pausing during the times that I tried to upload the pics.

So this morning I reluctantly removed BOINC Manager and SETI from the server, and we'll see if that solves the problem.

ElectricSquid

Nope, wasn't SETI. Even with SETI totally removed, I was able to recreate the error durring upload.

Advertisement: