Email Form Plugin Error with Multisite Network

Hey there!

I have a multisite installation. With the Email Forms plugin activated, accessing the site from the Network Dashboard returns the following error message:


Fatal error: Uncaught Error: Call to undefined function wp_get_current_user() in /home/davidale/public_html/wp-includes/capabilities.php:615 Stack trace: #0 /home/davidale/public_html/wp-admin/network.php(18): current_user_can(‘setup_network’) #1 /home/davidale/public_html/wp-admin/network/setup.php(13): require(’/home/davidale/…’) #2 /home/davidale/public_html/wp-content/plugins/tco-email-forms/email-integration/functions/framework/init.php(35): require_once(’/home/davidale/…’) #3 /home/davidale/public_html/wp-content/plugins/tco-email-forms/email-integration/setup.php(60): require(’/home/davidale/…’) #4 /home/davidale/public_html/wp-content/plugins/tco-email-forms/tco-email-forms.php(38): require(’/home/davidale/…’) #5 /home/davidale/public_html/wp-settings.php(322): include_once(’/home/davidale/…’) #6 /home/davidale/public_html/wp-config.php(100): require_once(’/home/davidale/…’) #7 /home/davidale/public_html/wp-load.php(37): require_once(’/home/davidale/…’) #8 /home/davidale/public_html/wp-admin/admin.ph in /home/davidale/public_html/wp-includes/capabilities.php on line 615


When the Email Form plugin is deactivate everything works as normal.

Could you please assist with this issue?

I really need the Email Form plugin to work. It’s awesome!

Thanks,
David

Hi David,

Thanks for writing in! I will list the possible causes below, so that you can check them and troubleshoot this issue.

First of all, make sure that you’re fully updated including theme and plugins. I see that you’re using a Pro license. You can check the latest Pro version numbers from here (https://theme.co/changelog/) and latest Pro compatible plugin versions from here (https://theme.co/apex/forum/t/troubleshooting-version-compatibility/195) and then update accordingly (https://theme.co/apex/forum/t/setup-updating-your-themes-and-plugins/62). Also make sure that you’re using the latest version of WordPress core as well (https://wordpress.org/download/), if not you can update it accordingly as well (https://codex.wordpress.org/Upgrading_WordPress).

Then you also need to check the PHP version running on your server. We recommend PHP v5.6.x or later to avoid incompatibility issues. You can contact your hosting provider if needed, to update your PHP version.

Another most possible cause could be your child theme customizations. If you have an active child theme on your site, try switching to your parent X theme by head over to Appearance -> Themes area.

If you’re still having issues, try disabling your 3rd party plugins except Cornerstone plugin and Email Forms plugin and see if you’re getting the same error. If the issue is resolved, then you can activate your plugins one by one to see which plugin is causing this issue.

If you’re using a caching plugin on your server, make sure to purge your server cache before testing. Follow this tutorial if required (https://www.wpbeginner.com/beginners-guide/how-to-clear-your-cache-in-wordpress/).

In case if you cannot isolate the issue, provide us with your FTP credentials along with your WordPress login information in a secure note to investigate this issue further.

Let us know how it goes.
Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.