WPIntell

Source evidence

PhP fatal error on multisite network admin screen

Tag Manager – Header, Body And Footer · support · 2022-03-08T15:47:00+00:00

complaintsentiment
highseverity
1.0relevance
2replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

5 / 31 rows with source links

16.1% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

26 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
thomasportobello unresolved
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 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.

Comments

2 shown
yydevelopment 2022-03-08T16:54:00+00:00

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.

Remon Pel 2022-03-28T09:33:00+00:00

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.