WordPress.org

Ready to get started?Download WordPress

Forums

Fatal error: Call to undefined function get_dirsize() in ... (9 posts)

  1. futureking
    Member
    Posted 4 years ago #

    Hi,
    I have just installed wordpress 3.0 Beta1 on my local server. I was configuring wordpress for multiple sites and I got this error after completing configuration on dashboard:

    Fatal error: Call to undefined function get_dirsize() in G:\websites\server4.localhost\wordpress3_beta1\wp-admin\includes\ms.php on line 458

    Screenshot:
    http://www.freeimagehosting.net/uploads/691d127318.png

  2. futureking
    Member
    Posted 4 years ago #

    I also got this error

    Fatal error: Call to undefined function get_user_count() in G:\websites\server4.localhost\wordpress3_beta1\wp-admin\ms-admin.php on line 21

    on SuperAdmin > admin

    Almost every page of Superadmin area is showing some error.
    Fatal error: Call to undefined function is_subdomain_install() in G:\websites\server4.localhost\wordpress3_beta1\wp-admin\ms-sites.php on line 461

    Fatal error: Call to undefined function get_blogs_of_user() in G:\websites\server4.localhost\wordpress3_beta1\wp-admin\ms-users.php on line 261

    Fatal error: Call to undefined function is_subdomain_install() in G:\websites\server4.localhost\wordpress3_beta1\wp-admin\ms-options.php on line 107

    Fatal error: Call to undefined function get_blogs_of_user() in G:\websites\server4.localhost\wordpress3_beta1\wp-admin\my-sites.php on line 12

  3. Andre
    Member
    Posted 4 years ago #

    I'm getting the same error using Dreamhost:

    Fatal error: Call to undefined function get_dirsize() in /demo.andrejcarter.com/wp-admin/includes/ms.php on line 458

  4. Megalomac
    Member
    Posted 4 years ago #

    Same error on the same line for me. Followed the multi-sites instructions to a "t". Fatal error: Call to undefined function get_dirsize() in /home/public_html/wordpress/wp-admin/includes/ms.php on line 458

  5. reddshack
    Member
    Posted 4 years ago #

    Despite the fact the install says you can put the additional wp-config.php code anywhere in the file, you have to actually put it anywhere before the last two lines of code. Put your custom wp-config.php code before this:

    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . 'wp-settings.php');

    I chose to put my code here at the bottom of my wp-config.php:

    /** Enable Multisite features. */
    define ('WP_ALLOW_MULTISITE', true  ) ;
    define( 'MULTISITE', true );
    define( 'VHOST', 'no' );
    $base = '/';
    define( 'DOMAIN_CURRENT_SITE', 'mysite.com' );
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );
    
    /* That's all, stop editing! Happy blogging. */
    
    /** Absolute path to the WordPress directory. */
    if ( !defined('ABSPATH') )
    	define('ABSPATH', dirname(__FILE__) . '/');
    
    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . 'wp-settings.php');

    Took me a few tries to figure this out.

  6. Andre
    Member
    Posted 4 years ago #

    Thank you reddshack!!!

  7. Megalomac
    Member
    Posted 4 years ago #

    Awesome - thanks! Those pesky errors are gone.

  8. Brian Hatano
    Member
    Posted 4 years ago #

    Great!

  9. tjmapes
    Member
    Posted 4 years ago #

    THANK YOU!

Topic Closed

This topic has been closed to new replies.

About this Topic