edventures
Member
Posted 2 years ago #
After upgrading Stout Google Calendar to version 1.2.0 on our WP Multisite, it causes the following error:
Fatal error: Call to undefined function wp_get_current_user() in /OUR_DOMAIN/wp-includes/capabilities.php on line 1059
Deactivating plugin restores all functionality, deleting and reinstalling this plugin causes problem to recur.
Would love any ideas on how to troubleshoot as this plugin is great for our school but obviously we can't use it if it kills our install.
edventures
Member
Posted 2 years ago #
Did you modify the plugin and add this code:
include_once(ABSPATH . 'wp-includes/pluggable.php');
The latest version includes internationalization, a new method of retrieving the calendar from Google and a fix to the update code. None of those *should* have affected the bit that deals with user permissions of the plugin.
edventures
Member
Posted 2 years ago #
I did and that did the trick. Don't you just love coding? It's like raising kids sometimes! Really worthwhile but frustrating as H-E-double hockey sticks!
OK, I just added that fix to version 1.2.1 and pushed it to the repository. It should be available very soon.
edventures
Member
Posted 2 years ago #
Rock on! And thanks for the plugin, I'm not there yet in my own PHP dev so I really appreciate the efforts of those who develop and share their code. And by extension, my school community thanks you too!