[wp-trac] [WordPress Trac] #16848: /wp-admin/admin.php: Setting 'memory_limit' makes Admin inaccessible

WordPress Trac wp-trac at lists.automattic.com
Sun Mar 13 12:17:06 UTC 2011

#16848: /wp-admin/admin.php: Setting 'memory_limit' makes Admin inaccessible
 Reporter:  mastermind      |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:
 Severity:  normal          |   Keywords:
 After upgrading an older blog to 3.1, I could not enter the admin area of
 the site in question.

 I was able to track it down to the following lines in /wp-admin/admin.php:
 if ( current_user_can( 'manage_options' ) )
         @ini_set( 'memory_limit', apply_filters( 'admin_memory_limit',
 '256M' ) );

 Commenting these lines makes WP's admin area accessible again.

 Removing the @ before ini_set while having WP_DEBUG set to true doesn't
 throw any errors.

 I have no special setup (can post vHost config, if necessary). My machine
 is a Ubuntu 10.04 LTS, with a distro-provided LAMP stack. The global
 php.ini is nothing special, either.

 I have disabled all plugins, just to see. But to no avail.

 For now, I can only keep these lines deactivated.

Ticket URL: <http://core.trac.wordpress.org/ticket/16848>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list