Case Study: Fatal error – Call to undefined function wp_dashboard_setup() in /home/username/public_html/wp-admin/index.php on line XX

Posted by

Hi,

Problem Summary:
Many wordpress users getting this error message when they try to login into the wordpress admin area:

Fatal error: Call to undefined function wp_dashboard_setup() in /home/username/public_html/wp-admin/index.php on line xxx

Possible Solution:
It seems that it is due to the PHP version and settings changed on the hosting server. In order to resolve this problem, you have to modify the wp-admin/index.php file.

Find this code in wp-admin/index.php:

require_once(ABSPATH . ‘wp-admin/includes/dashboard.php’);

Replace with:

require_once(‘./includes/dashboard.php’);

This should resolve the problem.

Thanks,

Shane G.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.