Forums

NextGEN Gallery
upload.php 1.7.2 =Error 500 1.6.2 = works AOK (4 posts)

  1. jozwikjp
    Member
    Posted 1 year ago #

    Multi-Site install..

    Testing both version of the plugins.
    Flash upload was not working with the new upload.php

    1.6.2 version of upload.php It is working.
    The new version kept giving me a error 500 for the flash uploading

    It just seems the head of the file is difference is
    the very top..

    define('WP_ADMIN', true);

    // look up for the path
    require_once( dirname( dirname(__FILE__) ) . '/ngg-config.php');

    // Flash often fails to send cookies with the POST or upload, so we need to pass it in GET or POST instead
    if (function_exists('is_ssl')) {
    if ( is_ssl() && empty($_COOKIE[SECURE_AUTH_COOKIE]) && !empty($_REQUEST['auth_cookie']) )
    $_COOKIE[SECURE_AUTH_COOKIE] = $_REQUEST['auth_cookie'];
    elseif ( empty($_COOKIE[AUTH_COOKIE]) && !empty($_REQUEST['auth_cookie']) )
    $_COOKIE[AUTH_COOKIE] = $_REQUEST['auth_cookie'];
    } else {
    if ( empty($_COOKIE[AUTH_COOKIE]) && !empty($_REQUEST['auth_cookie']) )
    $_COOKIE[AUTH_COOKIE] = $_REQUEST['auth_cookie'];
    }

    http://wordpress.org/extend/plugins/nextgen-gallery/

  2. Alex Rabe
    Member
    Posted 1 year ago #

    If you just add

    define('WP_ADMIN', true);

    To the upload.php , does it work for you ?

  3. jozwikjp
    Member
    Posted 1 year ago #

    I am guessing that is what fixed it.. It looks the

    if (function_exists('is_ssl')) {

    might be a little different but that is the only changes I can see..
    After I changed it I uploaded about 500 megs of photos with no problem.

  4. jozwikjp
    Member
    Posted 1 year ago #

    Yes
    Just
    define('WP_ADMIN', true);

    Fixes it.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.