The MU forums have moved to WordPress.org

wpmu 2.7 and nextgen gallery 1.1.0 flash uploader does not work (6 posts)

  1. johnnytee
    Member
    Posted 13 years ago #

    Has any one else experienced this. I have added this to my .htaccess,

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

    browser version works fine, wordpress flash uploader works fine. Test ie, ff, opera, safari.

  2. johnnytee
    Member
    Posted 13 years ago #

    Solution:

    On line 700 in nextgen-gallery/admin/functions.php

    if ( (IS_WPMU) && wpmu_enable_function('wpmuQuotaCheck'))

    Make it look like :

    if ( (IS_WPMU))

  3. ezhang@csiu.org
    Member
    Posted 13 years ago #

    perfect solution, thanks!

  4. wamitchell
    Member
    Posted 13 years ago #

    The underlying issue here is that wpmu_enable_function is not defined in any file included by upload.php. Another possible quick fix is to conditionally redefine it in nextgen-gallery/admin/functions.php:

    if (!function_exists('wpmu_enable_function')) {
    
    	function wpmu_enable_function($value) {
    		if (IS_WPMU) {
    			$ngg_options = get_site_option('ngg_options');
    			return $ngg_options[$value];
    		}
    		// if this is not WPMU, enable it !
    		return true;
    	}
    
    }
  5. wanderglobe.com
    Member
    Posted 13 years ago #

    johnnytee - Thanks a lot.

  6. cameronadair
    Member
    Posted 13 years ago #

    With
    if ( (IS_WPMU))
    i get:

    # ID 4: A failure occurred
    [more]
    1

    How does one make this error go away?

    Also,
    I get an error with:

    if (!function_exists('wpmu_enable_function')) {
    
    	function wpmu_enable_function($value) {
    		if (IS_WPMU) {
    			$ngg_options = get_site_option('ngg_options');
    			return $ngg_options[$value];
    		}
    		// if this is not WPMU, enable it !
    		return true;
    	}
    
    }

    how exactly do you enter it into functions.php to redefine the funtion correctly?

About this Topic

  • Started 13 years ago by johnnytee
  • Latest reply from cameronadair