Support » Plugins » [Plugin: NextGEN Gallery] 500 Error with Flash image uploader

  • First of all, this is an awesome plugin. I really admire the complexity of the tool – very cool!

    We recently upgraded our WPMu install and now the Flash-based uploader stopped working. We can upload images without it, but we generally have to upload anywhere from 15 to 20 pics, so it’s a chore.

    When I try to select all the images I want to upload, the plugin returns a 500 http error for each one, and then says the blog file directory is empty.

    What could be causing that error?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Havn’t a long time tested WPMU, do you have no problem with the internal WordPress Media Flash loader ?

    Thread Starter alexo05

    (@alexo05)

    Yea no problem. I’m able to upload photos that way.

    I had the same problem with a WPMU upgrade and was eventually able to hack together a solution. It turned out that nextgen’s admin/wp25/upload.php script was dying. Here’s what I did.

    1. in the nextgen plugin code, move the function

    function wpmu_enable_function($value)

    from admin/wp25/admin.php to the bottom of admin/wp25/functions.php

    2. add the line

    include_once (NGGALLERY_ABSPATH. 'admin/wp25/functions.php');

    at the top of admin/wp25/admin.php.

    This will make that function available to admin/wp25/upload.php

    3. In the wordpress code, edit wp-admin/admin.php and change

    require_once('../wp-includes/class-snoopy.php');

    to

    require_once(ABSPATH . 'wp-includes/class-snoopy.php');

    This will stop wordpress from throwing a different error that results from not being able to load class-snoopy when wp-admin/admin.php is included by nextgen gallery’s upload.php. In general, changing wordpress core code is a bad idea. It might be better to modify the include_path within the plugin. But this is a hack solution that got batch uploading working for me.

    Same thing here. I’m wondering, I just upgraded to the latest Flash Player. Would this have anything to do with this?

    @wamitchell:

    I tried this out, didn’t work out for me. 🙁

    @v3rona – I’m sorry to hear that. I was able to track down the error by debugging the plugin’s admin/wp25/upload.php with error_log() statements, tailing the php error long to find out where it was dying and why. You might have luck with a similar process. Do you have access to your server’s php error log?

    @wamitchell:
    Thank you for your reply. I solved my problem this way:

    _____________________________________________________________________
    Many thanks to John Blackbourn at http://lud.icro.us/wordpress-plugin-image-upload-http-error-fix/ for helping me at solving this problem!

    My ERROR 503 is gone now and Flash unloader works like charm!

    SOLUTION:

    If you’re happy editing your blog’s .htaccess file, try adding this to the end of the file:

    <IfModule mod_security.c>
    <Files upload.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    </IfModule>

    NextGen uses a file called upload.php for handling uploads, and this code should disable mod_security on that file.

    Well, I would just like to add that i was having the same error, and created a new .htaccess file, which did NOT help. THEN realised i had been using google chrome from where i had not uploaded any images with the flash uploader before, so I switched back to IE and hey presto, the upload is working again.

    BTW installing the plugin to fix this problem generated the following message :-
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    REMOVING the .htaccess file created by installing the plugin )from the root directory resolved that error

    I’ll try the debugging myself, but it will be my first time 🙂

    I get an error in both chrome and IE8 (but showing different errors, but same thing happends). Seems to be related to what version on the server as my local installation and my private installation on an external server is working fine, but an external installation I have on a different server is not. When I disable flash upload and use regular upload, it works fine.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: NextGEN Gallery] 500 Error with Flash image uploader’ is closed to new replies.