Fatal Error PHP Call to Function Undefined Multi-Site - php

I added Wordpress SEO by Yoast to a website.Turns out the site wasn't compatible with the plugin.
The following error message is displayed:
Fatal error: Call to undefined function is_multisite() in /home2/(websitedomain)/public_html/events/wp-content/plugins/wordpress-seo/inc/class-wpseo-options.php on line 2899
It's not letting me access plugin section to disable or remove the plugin.
I went through the database, and I deleted the plugin files, but I still see the error message of the website.
How do I get the incompatible plugin totally off the website?

I don't have actually the possibility to look at a wordpress database, so I only can give you a very general explanation :
Use phpmyadmin
look for the table with the plugin data (named wp_plugins or similar)
There is a field that indicates if the plugin is active. Set it to zero for the plugin you want to disable.

Related

How do I resolve fatal errors while trying to setup Updraft in wordpress?

While I am trying to set up Updraft Plus, for backup reasons I get this message:
PHP Fatal error (TypeError) has occurred during save settings. Error
Message: array_diff(): Argument #2 must be of type array, bool given
(Code: 0, line 39 in
/home/www/emprime/emprimevintage.com/www/wp-content/plugins/woocommerce-multilingual/vendor/otgs/installer/includes/upgrade/AutoUpgrade.php)
I am new to WordPress and coding so it is very difficult for me to resolve this problem. The site was made by somebody else and I can't come in contact with him.
Can anybody help me to resolve the issue?
The error that you posted shows that there is some issue with the plugin called "WooCommerce Multilingual & Multicurrency with WPML" try deactivating that plugin and see if that resolves the issue.
As found here: https://wpml.org/errata/php8-fatal-error-uncaught-typeerror-array_diff-argument-2-must-be-of-type-array/
Overview of the issue
If you are running a server with PHP8, whenever you try to activate the Enable auto-updates option in Dashboard → Plugins, you will get the following error:
PHP Fatal error: Uncaught TypeError: array_diff(): Argument #2 must be of type array, bool given in …/wp-content/plugins/sitepress-multilingual-cms/vendor/otgs/installer/includes/upgrade/AutoUpgrade.php:39
Workaround
As a workaround:
Go to Dashboard → Plugins.
Disable WPML Multilingual CMS.
Activate the Enable auto-updates option. (I did it for Updraftplus
plugin)
Re-enable WPML.
It worked for me, then I could save the settings for Updraftplus.

Fatal Errors Template Tags

I am working on an old WordPress site. Although the site is updated to the latest version of WordPress (5.9.1) it was apparently built on the twentyfouteeen theme.
Just lately, I am getting a fatal error on the Posts Page:
Fatal error: Uncaught Error: Call to undefined function twentyfourteen_categorized_blog()
The function is located in the template-tags.php file and it exists so the theme should be able to access it. In fact, I'm getting the fatal error on any page that calls a twentyfourteen function.
I copied the functions from template-tags.php to content.php which did in fact load posts but then gave me a different error Cannot redeclare twentyfourteen_categorized_blog()
I've never had to troubleshoot this kind of error and since the theme is old, I'm not sure how to go about it.
"Cannot redeclare twentyfourteen_categorized_blog()" means that your file is trying to declare the same function multiple times. Either the function is defined in two separate files or in two places in the same file.
I was able to resolve this by including template_tags.php in functions.php

How to fix "Fatal error: Uncaught Error: Call to undefined function get_header()"

I am trying to put this website back online. The error message is the following:
Fatal error: Uncaught Error: Call to undefined function get_header()
in
/homepages/25/d584099293/htdocs/clickandbuilds/X3DSYSTEMS/wp-content/themes/x3dprotheme/index.php:4
Stack trace: #0 {main} thrown in
/homepages/25/d584099293/htdocs/clickandbuilds/X3DSYSTEMS/wp-content/themes/x3dprotheme/index.php
on line 4
The client told me he "accidentally reset the domain".
First when I went on the website, I had an error message about Wordfence and I did what I needed to do to correct it (here what I did:
After moving a site or deleting some files, I see: PHP Fatal error: Unknown: Failed opening required /var/www/html/wordfence-waf.php
I removed the firewall setup manually.
Then I got this new error message about index.php:
In this index.php, here is what I found:
<?php get_header(); ?>
<?php get_footer(); ?>
I try to get this website back online.
The webhost is 1and1 IONOS. I can't log into WP, but I have SFTP access.
What webhost is this? Maybe if we know, we can ascertain what the "domain reset" involved and backtrack the fix once we know exactly what those steps entailed.
When these sorts of things happen to me (I manage about 30 WordPress sites), the first thing I do is disable all plugins, and sometimes if I can't actually log into WordPress, I remove the plugins via SFTP or through cPanel.
You're stuck though if you have no access to the host. It'll extremely difficult to solve this without access to the server or control panel for the hosting environment. Do you at least have SFTP access?
This looks like a path to a core theme file.
If you are using child theme, you should be able to update the parent via the theme settings found in your dashboard, without data loss from style sheets, etc. you made in your child theme.
This would work like the backup restore as suggested above, but without the need to get into cPanel or FTP.
The client changed the "target" with his webhost, and the site is back online.
There was also a problem with revolution slider, but anyway, the problem looks solved.

My plugin has templates directory , none of them is executing any of the wp functions. All are throwing fatal error : call to undefined function

I am new to wordpress and creating a plugin, an error log has been created automatically in my plugins templates folder which listed so many errors saying -
[22-Dec-2015 07:57:25 Etc/GMT] PHP Fatal error: Call to undefined
function wp_redirect() in
/home/techgwpj/public_html/www.hostrecyclers.com/WP/doctor/wp-content/plugins/tg-doctorin/templates/user-activation.php
on line 12.
When I was doing the same thing from my themes/templates folder this was working fine, but as soon as i placed the same code into my plugins/templates folder it stopped working and a blank page appeared and all the wp functions became undefined
i.e. wp_redirect, get_header(), get_footer() etc

Fatal pluggable.php wordpress error

Fatal error: Call to undefined function wp_get_current_user() in /hermes/bosnaweb01a/b1513/ipg.framingnepalcom/wp-includes/capabilities.php on line 1329
I am getting the mentioned error in my wordpress site. I found the problem but couldn't find a permanent solution. What happens is the pluggable.php file is automatically erased from the database and ;the above error pops up disabling me to even access the admin panel. And the site gets back to normal after I upload the pluggable.php file manually. I tried downgrading wordpress, deactivating all plugins and so on. Please Help!!

Categories