[Site Bug?]Attachment Uploads and Mod Attachment Upload are not working...

Started by ディン1031, May 21, 2009, 06:33:55 AM

Previous topic - Next topic

ディン1031

Quote
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.
Am i the only one with this problem?
And 64 kb zip file is not really to large ;) and the filename is not longer than the old one :X

So i tested it with Firefox, Opera and IE. I test it on my Windows XP and OpenBSD... every time the same... tested it on a system without firewall and antivir... but no system work...

And now i have problem... that i removed already a file <<...

I move this thread to a prober position *g*.
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

CapadY

I tried to upload an attachement to show an mismatch here in this particulairy bug-report forum but I couldn't either.

File was about 80 kb
Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

Sakae

I'm experiencing the same, when I tried to upload my Twitter MOD.

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.

Same thing with attachments.
http://www.tigrelog.com.br
l: simple p: machines

metallica48423

We are aware of this and are in the process of tracking down the problem.

Thanks :D
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

SleePy

Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

robotokon

I redownloaded the install package, reinstalled, and this problem still persists.  How should I go about resolving it?

QuoteParse error: syntax error, unexpected T_ELSE in /home/asdfasdf/public_html/forum/Sources/Subs-Graphics.php on line 227

Vekseid

Quote from: SleePy on May 21, 2009, 04:27:00 PM
This should be resolved now.

How do we resolve it manually?

Quote from: robotokon on May 21, 2009, 06:58:37 PM
I redownloaded the install package, reinstalled, and this problem still persists.  How should I go about resolving it?

QuoteParse error: syntax error, unexpected T_ELSE in /home/asdfasdf/public_html/forum/Sources/Subs-Graphics.php on line 227

That's a different problem. I'm not sure if this is what the intended sequence should be, but they commented out an if without fixing the resulting else statement. I did this:

Quote
      // Walk the right path.      if (!empty($modSettings['currentAttachmentUploadDir']))
    if (!is_array($modSettings['attachmentUploadDir']))
      {
        $modSettings['attachmentUploadDir'] = unserialize($modSettings['attachmentUploadDir']);
        $path = $modSettings['attachmentUploadDir'][$dir];
      }
  else
    $path = $modSettings['attachmentUploadDir'];

Adult Role Playing Forums - - Over five million posts - - Elliquiy's LAMP configuration (maybe NSFW)

Blog about Forums and Servers - - Twenty things to make Simple Machines Forum go faster

Private/Instant Message requests for free support will be ignored.

robotokon

Quote from: Vekseid on May 21, 2009, 07:43:16 PM
Quote from: robotokon on May 21, 2009, 06:58:37 PM
I redownloaded the install package, reinstalled, and this problem still persists.  How should I go about resolving it?

QuoteParse error: syntax error, unexpected T_ELSE in /home/asdfasdf/public_html/forum/Sources/Subs-Graphics.php on line 227

That's a different problem. I'm not sure if this is what the intended sequence should be, but they commented out an if without fixing the resulting else statement. I did this:

Quote
      // Walk the right path.      if (!empty($modSettings['currentAttachmentUploadDir']))
    if (!is_array($modSettings['attachmentUploadDir']))
      {
        $modSettings['attachmentUploadDir'] = unserialize($modSettings['attachmentUploadDir']);
        $path = $modSettings['attachmentUploadDir'][$dir];
      }
  else
    $path = $modSettings['attachmentUploadDir'];

Thank you, that worked like a charm.

forumite

Quote from: metallicaWe are aware of this and are in the process of tracking down the problem.

Any chance of knowing what the fix was &/or where I can get a "clean" Subs-Graphics.php ?

I've chased down several other fixes reported for other attachment-related issues, but this one eludes me.

TIA.

Trekkie101

Here you go, clean for a 2.0 install :)

Its on line 227, just needs one line taken out of the comment.

forumite

A big thanks Trekkie, much appreciated. However, I already implemented that fix. I was asking about this error that SleePy said was fixed:

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.

forumite

Problem solved. I'd implemented Feline's tweak of Subs.php. Went back to the original file and all appears well.

Advertisement: