Support Forum

Image uploader 999 error ?

MO Monkfish
Monkfish
Member

Hello SimplePress.

I have just installed the image uploader to my community, but when I try and upload a file, i receive a 999 unknown server error.

I can’t find any reference to this in the community, so thought I would make post.

Could this be to do with my server memory, or having ImageMagik /GD installed ?

Any assistance would be appriciated.

With thanks

Rich

21 Answers

New Answer

MP Mr Papa
Mr Papa
Member

well, as the message says:

999 – Unknown server error (check image size – may be exhausting memory)

its an unknown error from your server…  if you are trying to upload a large graphics file, your server may not have the memory for processing the image (ie resizing, creating thumbnails, etc)… how big was the file? how much php memory does your server have?

please see this codex article:  http://codex.simple-press.com/codex/faq/troubleshooting/i-have-a-fatal-error-that-says-i-have-run-out-of-memory/

and see if that helps…

MO Monkfish
Monkfish
Member

Thanks for the reply Papa.

Sorry no joy.

My WP-Config file is set to run PHP at 256mb the server has 1GB of RAM and the file I was trying to upload was a mere 340kb (approximately)

I have also checked all folders for 777 access and they are good.

I have also just set the image uploader to accept images that are no greater in size than 1000px in width or height, and attempted to upload a 600x616px file but still no good.

 I have also checked the resource setting in my php.ini file and they are currently like so:

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 120     ; Maximum execution time of each script, in seconds
max_input_time = 60    ; Maximum amount of time each script may spend parsing request data
memory_limit = 512M      ; Maximum amount of memory a script may consume (64MB)

Can you offer any other ideas ? Am I missing a setting or permission somewhere ?

MP Mr Papa
Mr Papa
Member

Not at the moment… need to think on it some more… thus far, think you are the first and only to actually get the 999 error… and its an internal server error so not sure we really have visibility into it…

MO Monkfish
Monkfish
Member

Can I get you any further information from my server to help solve the issue? I’m keen to solve it, as I would like to allow my users the facility to host images.

Please do let me know if I can supply any logs or info.

With thanks
Rich

YS Yellow Swordfish
Yellow Swordfish
Member

The logs might turn something up – it would be worth your while taking a look at any rate.

Another thing to try is to have Firebug open if you have it installed – or – not quite as good but useful would be the Firefox error console.

Open it – clear it out before you start and then try an upload again. When (and if) it fails – see if anything gets reported in the error console. Please – ONLY the error tab results…

MP Mr Papa
Mr Papa
Member

Andy, worth trying to expose the actual error message that the javascript is getting? I think its that e.message stuff? maybe an alert?

MO Monkfish
Monkfish
Member

HI guys, thank you for your time on this.

This morning, I have more information to the cause:

The files I am trying to upload are uploading ( they are present in the correct folder) although no thumbnails are being produced.

Running firebug while I try and upload a file gives me this information through the process console. I think this is why i am getting the 999 error:

Screen-shot-2012-07-16-at-09.45.11.png

Firebug is showing no info in the errors console, or the debug console.

Let me know if this is of any help or i need to send more info.

YS Yellow Swordfish
Yellow Swordfish
Member

Looks like you don’t have the php GD library as part of your installation.  Which is unusual – and I thought we tested for that.

Can you check with your host and ask them if they can add this in for you. And I will check our end for the test I thought we did which seems to have missed this.

MO Monkfish
Monkfish
Member

Thanks Swordfish,

I have requested that my host install GD on my system – I have Imagemagik – but no GD. I wasn’t aware that you needed both, but i guess that depends on the software and how it’s written.

Thanks for the assistance! Hopefully that will solve the problem

Rich

YS Yellow Swordfish
Yellow Swordfish
Member

We don’t use imagemagik. It is more normal to code for the GD library as it seems so rare that hosts do not include it.

MO Monkfish
Monkfish
Member

OK, so I have GD on my server – it has apparently been there all along.

http://www.racecraftmag.co.uk/info.php

Any other ideas please? confused

YS Yellow Swordfish
Yellow Swordfish
Member

You do indeed – but if you take a look you will see that the version you have has been compiled in without JPG support. You have GIF, PNG and BMP but no JPG…

MO Monkfish
Monkfish
Member

Hazaar !

This is now fixed – my host has sorted out my installation of GD and everything is now working as it should! Thank you for your keen detective eyes sirs.

One final question.

Is there an option to turn off the “attachments” box, so it doesn’t appear in each post?

In my situation, it is only duplicating the images that have already been posted, so isn’t really needed.

With thanks

Rich

YS Yellow Swordfish
Yellow Swordfish
Member

Components > File Uploads – the Settings section.