Error while uploading after upgraded wp to 3.8
-
Hi, I have a big problem since I upgraded wp to 3.8. So, when I start upload images, I receive an error message below after a few seconds:
“An unexpected error occured. This is most likely due to a server misconfiguration. Check your PHP error log or ask your hosting provider for assistance.”
-
@mstfcbn – Was there anything recent in your
error_log
referencing NextGEN Gallery … or anything else that may be related?– Cais.
@photocrati – Thanks for your reply. I checked the error_log but couldn’t find any log referencing NextGEN Gallery or anything else. Now, I have a recorded video while I was uploading an image a gallery and receiving the error. You will see that is upload restart a few time then appears an error. The error video link is https://www.dropbox.com/s/kgc8eqzcms754w8/nextgen-upload-error-720p.mov . Thanks for your interest.
@mstfcbn – That is a very strange thing to see, I have never seen the uploader do that before. Please submit a Bug Report (https://www.nextgen-gallery.com/report-bug/ … please reference this topic, or at least that video) so we can get a closer look at your site.
We will need log in and FTP credentials for your WordPress installation as well, please include those with the Bug Report, too.
Thanks!
– Cais.
I am new to WordPress and NextGEN, and have the most current versions of both. I am receiving this exact same error message when trying to upload photos to a NextGEN Gallery. I click on Add Gallery/Images. I select “Create a new gallery” in the first pulldown. Then I type the name of a new gallery, “LongLakeCabin” in the next field, and click the [Add Files} button. I select 21 .JPG images (1024 pixels maximum dimension) from a folder. Then I click “Start upload”. After a minute or so, I receive the error message, “”An unexpected error occured. This is most likely due to a server misconfiguration. Check your PHP error log or ask your hosting provider for assistance.” Here are the server settings:
Operating System : Linux (32 Bit)
Server : Apache
Memory usage : 17.56 MByte
MYSQL Version : 5.1.72-log
SQL Mode : Not set
PHP Version : 5.4.23
PHP Safe Mode : Off
PHP Allow URL fopen : On
PHP Memory Limit : 90
PHP Max Upload Size : 8M
PHP Max Post Size : 8M
PCRE Backtracking Limit : 1000000
PHP Max Script Execute Time : 50000s
PHP Exif support : Yes ( V1.4 )
PHP IPTC support : Yes
PHP XML support : YesGraphic Library
GD Version : bundled (2.1.0 compatible)
FreeType Support : Yes
FreeType Linkage : with freetype
T1Lib Support : No
GIF Read Support : Yes
GIF Create Support : Yes
JPEG Support : Yes
PNG Support : Yes
WBMP Support : Yes
XPM Support : No
XBM Support : Yes
JIS-mapped Japanese Font Support : NoI have changed my hosting provider and server then the problem solved. Thanks.
I’ve got a similar problem like PeterLeabo.
Wanted to upload multiple images to a new gallery. Only one image is uploaded then everything comes to a grinding halt with a small exclamation mark behind the image that was uploaded. A hover over the exclamationmark shows this message: “http error.”. In the topright corner the message is: Upload completed, 0 images were uploaded.
WP 3.8, NG 2.040, Server settings:
Operating System : Linux (64 Bit)
Server : Apache
Memory usage : 43.74 MByte
MYSQL Version : 5.5.32-cll
SQL Mode : Not set
PHP Version : 5.3.28
PHP Safe Mode : On
PHP Allow URL fopen : Off
PHP Memory Limit : 128
PHP Max Upload Size : 4M
PHP Max Post Size : 8M
PCRE Backtracking Limit : 1000000
PHP Max Script Execute Time : 30s
PHP Exif support : Yes ( V1.4 )
PHP IPTC support : Yes
PHP XML support : Yes
Graphic LibraryGD Version : bundled (2.1.0 compatible)
FreeType Support : Yes
FreeType Linkage : with freetype
T1Lib Support : No
GIF Read Support : Yes
GIF Create Support : Yes
JPEG Support : Yes
PNG Support : Yes
WBMP Support : Yes
XPM Support : Yes
XBM Support : Yes
JIS-mapped Japanese Font Support : NoI use win7 with Chrome 31.0.1650.63
Problems were caused by these settings (thanks Cais):
PHP Safe Mode : On
PHP Allow URL fopen : Off
My provider does not want to change these settings (security risk). I will switch to another provider.
@photocrati – Can you confirm that the settings described by zenman_nl should be changed? And, if so, to what? Is this something I need to ask my provider to do? Thanks.
@peterleabo, safe mode must be OFF and allow URL fopen must be ON.
Yes, you need to ask to your provider to avoid problems not only with Nextgen but also with other plugins or WordPress itselfEdit: I see now that you already have those settings.
@tizz – I clearly need more caffeine! I must have been dyslexic when looking at my settings … my provider does indeed have those parameters set properly. Any other suggestions as to why this may be failing? @photocrati?
my provider does indeed have those parameters set properly
That’s why everyone should open his own topic – even if the issue looks the same it is almost always caused by other reasons.
In your case it could be the low max upload size, or even the PHP memory limit. Have you tried to upload only one image? (Possibly much smaller than 8 MB, I hope).
If you are new to WordPress you probably haven’t uploaded to media gallery yet, so try to upload some images via WP uploader as well to see if it works.
Anyway, you have to ask your provider and check your error log (or ask someone to check it) and look for the time when the error occurred.P.S.: 1024 pixels each image are a little too many, especially you if haven’t resized them for the web (72 or 96 dpi) and 21 images could overall be too much for your max limit.
Images shouldn’t be much larger than 800/900 px on the long side, and they should be saved for the web with a maximum size of 100 KB, to the advantage of taking up less space on the server and have faster loads.@tizz – OMG, it was a file size issue! My first files were 1024 pixels max dimension (72 dpi) at 100% quality and were about 800k each. Those were the ones that failed. I exported them again at 800 pixels max dimension (72 dpi) at 80% quality and those were about 250k each. They worked just fine! Thanks for the tip!
– Pete@tizz – Thanks for jumping in and helping to get this sorted out.
@mstfcbn & @zenman_nl & @peterleabo – Glad to read this is working now.
– Cais.
- The topic ‘Error while uploading after upgraded wp to 3.8’ is closed to new replies.