Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi Luis,

    It looks like you’ve just discovered a compatibility issue between the latest WordPress 3.5 and NextGEN Gallery!

    According to the version 3.5 dev page, the upload_is_user_over_quota() function was only just introduced for multisite installs, yet NextGEN is already referencing a function with the same name in nextgen-gallery/lib/multisite.php

    This might be something for Photocrati (the NextGEN devs) to look into if others can confirm this as a bug, but in the meantime, you might like to try reverting back to WordPress 3.4.2.

    Hope this helps!

    Cheers,
    Mark.

    RoxyJo

    (@roxyjo)

    I am getting the same error in multisite.

    When uploading files using the flash uploader I get:
    “Fatal error: Call to undefined function upload_is_user_over_quota() in…”

    I’m getting the same error with NGG 1.9.12 and WP 3.5.1.

    If I just return true in check_quota() (where upload_is_user_over_quota() is called) I get no errors, but no files are uploaded

    Has anyone a temporal fix for this?

    Non flash upload works fine.

    Plugin Contributor photocrati

    (@photocrati)

    Would you all mind submitting this error as a bug report on our site here? See: http://www.nextgen-gallery.com/report-bug/

    This will go straight to our developers to look into. Please also include login details to your site, so our developers can better confirm if this is a bug in our software. If we can confirm it, we’ll do our best to include a fix asap!

    Thanks!
    –Becky

    Solved temporaly in my installation.

    Create a file in plugins directory named myfunction.php:

    <?php
    /*
    Plugin Name: Temporally solved problem with upload_is_user_over_quota
    Plugin URI:
    Description: Temporally solved problem with upload_is_user_over_quota
    Version: 1.0
    Author:
    Author URI:
    License: GPLv2 o posterior
    */
    
    if (!function_exists('upload_is_user_over_quota'))
    {
    	function upload_is_user_over_quota( $echo = true ) {
    		if ( get_site_option( 'upload_space_check_disabled' ) )
    			return false;
    
    		$space_allowed = get_space_allowed();
    		if ( empty( $space_allowed ) || !is_numeric( $space_allowed ) )
    			$space_allowed = 10; // Default space allowed is 10 MB
    
    		$space_used = get_space_used();
    
    		if ( ( $space_allowed - $space_used ) < 0 ) {
    			if ( $echo )
    				_e( 'Sorry, you have used your space allocation. Please delete some files to upload more files.' );
    			return true;
    		} else {
    			return false;
    		}
    	}
    }

    Edit wp-admin\includes\ms.php and find:

    function upload_is_user_over_quota( $echo = true ).

    Add before:

    if
    (!function_exists('upload_is_user_over_quota'))
    {

    and add a extra

    }

    at the function finish.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘NextGen error uploading images "undefined function upload_is_user_over_quota"’ is closed to new replies.