• Hello,

    A fatal error appears in the network administration screen on a multi-site installation. I tried to activate the plugin only on the child sites rather than on the network, and the error still appears.

    Here are the error messages that appear:

    Fatal error: Uncaught Error: Call to undefined function wp_get_current_user() in /home/sitename/public_html/wp-includes/capabilities.php:693 Stack trace: #0 /home/sitename/public_html/wp-admin/network/settings.php(16): current_user_can('manage_network_...') #1 /home/sitename/public_html/wp-content/plugins/tag-manager-header-body-footer/include/install.php(11): include('/home/storesnan...') #2 /home/sitename/public_html/wp-content/plugins/tag-manager-header-body-footer/index.php(40): require_once('/home/storesnan...') #3 /home/sitename/public_html/wp-settings.php(366): include_once('/home/storesnan...') #4 /home/sitename/public_html/wp-config.php(112): require_once('/home/storesnan...') #5 /home/sitename/public_html/wp-load.php(50): require_once('/home/storesnan...') #6 /home/sitename/public_html/wp-admin/admin.php(34): require_once('/home/storesnan...') #7 /home/sitename/public_html/wp-admin/network/admin.php(13): require_once('/home/storesnan...') #8 /home/sitename/public in /home/sitename/public_html/wp-includes/capabilities.php on line 693
    
    Notice: is_embed est appelée de la mauvaise manière. Les balises de requête conditionnelle ne fonctionnent pas avant le lancement de la requête. Avant cela, elles renvoient toujours le booléen false. Veuillez lire Débogage dans WordPress (en) pour plus d’informations. (Ce message a été ajouté à la version 3.1.0.) in /home/sitename/public_html/wp-includes/functions.php on line 5768
    
    Notice: is_search est appelée de la mauvaise manière. Les balises de requête conditionnelle ne fonctionnent pas avant le lancement de la requête. Avant cela, elles renvoient toujours le booléen false. Veuillez lire Débogage dans WordPress (en) pour plus d’informations. (Ce message a été ajouté à la version 3.1.0.) in /home/sitename/public_html/wp-includes/functions.php on line 5768
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author yydevelopment

    (@yydevelopment)

    Hey, sorry about the trouble.
    I haven’t tested it on multi-site installation and i might do that in the future.

    At the moment given the fact it’s a free plugin without a pro version i don’t support the plugin unless it’s an error that effect all sites so i think it might be the best idea to try different plugin that offer the same functions.

    Solution:

    install.php line 11

    change

    include( ‘settings.php’); // Load the files to get the databse info

    to

    include( __DIR__ .’/settings.php’); // Load the files to get the databse info

    Include paths are a funny thing in PHP; always make sure the correct file is included.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PhP fatal error on multisite network admin screen’ is closed to new replies.