WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [closed] Call to undefined function get_current_screen() (8 posts)

  1. miquelfa
    Member
    Posted 1 year ago #

    ¡Hi all!

    I've been googling a lot about that and I couldn't get any solution that worked.

    I've recently installed the multisite option as the Codex say, I did all the steps and I'm always getting this error when I try to access the network Dashboard:

    Fatal error: Call to undefined function get_current_screen() in /something/somethingelse/www/wp-admin/network/settings.php on line 22

    Here's my .htacess code (the same WP gave me when I did the installation):

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    Thanks.

    EDIT: By the way, I've installed the sub-domains option, and my installation is in the public directory of my host.

  2. miquelfa
    Member
    Posted 1 year ago #

    I've just realised that I get the error when I activate a concrete theme that I downloaded, modified and installed correctly in WP. All the site is fully functional when the theme is activated, and I can access the panel control from all the sites of the network, but I can not access the Network Panel when the theme is installed. So I have to deactivate the theme, access the Network Panel, change whatever I want to change and reactivate the theme for the concrete theme.

  3. su1
    Member
    Posted 9 months ago #

    Did you find a better solution than this? I also get this error with the Artworks Responsive theme, and only when I access the network Dashboard, not the other dashboards.

  4. miquelfa
    Member
    Posted 9 months ago #

    Nope, now I'm using a separate installation of WP for this theme in particular. That was the only solution.

  5. su1
    Member
    Posted 9 months ago #

    What do you mean separate installation? You're not using multisite anymore with this theme?

  6. miquelfa
    Member
    Posted 9 months ago #

    Exactly. You can have two separate installations in the same server, so I have one for the blog that uses this theme in particular and another installation for other blogs and themes.

  7. su1
    Member
    Posted 9 months ago #

    Ok I can't use this solution so still looking for a way to solve this problem...

  8. su1 - Make a new post for yourself :)

    Describe what you've tried already and we'll see what we can do.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.