• Hello,

    I’ve recently installed a fresh multisite WordPress and installed the Artworks Responsive theme on it, it’s a free theme you can get it if you want for testing purposes here: http://www.dessign.net/art-works-responsive-theme-free-2013/

    When I activate this theme, I get the following error message when I try to access the network Dashboard, and only the network Dashboard, not the other dashboards:

    Fatal error: Call to undefined function get_current_screen() in /myaccount/mysite.com/wp-admin/network/settings.php on line 22

    If I use another theme I don’t get this problem, so I’m sure the problem comes from the theme, but I’d really like to find a solution to be able to keep using this theme.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter su1

    (@su1)

    no luck so far!

    I downloaded the theme into my WP multisite instance and ran into the same problem. Going into the theme code I found the problem. In functions.php, there is an include statement on line #2 that is incorrect. It loads, in error, WP’s settings.php instead of the theme’s settings.php. In functions.php, fix line #2:

    - include('settings.php');
    + include(trailingslashit( get_template_directory() ).'settings.php');

    This is how I debugged the problem. I turned on debugging in wp-config.php:

    define('WP_DEBUG', true);

    Then I went to wp-admin/network/settings.php. Turning on debugging identified the problem at functions.php:2

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘"Call to undefined function get_current_screen()" on multisite dashboard only’ is closed to new replies.