PHP Fatal error: Class 'WC_Ncr_Settings_Page' not found
-
Hi,
I can’t reach the Network dashboard when NoCaptcha Recaptcha for WooCommerce is installed network-wide.
The issue has been discussed here but the topic is closed.
When reaching the Network dashboard, the error shows:
Call to undefined function wp_get_current_user() in wp-includes/capabilities.php on line 424
. If I disable the plugin, I can reach the Network dashboard.When I try to re-activate the plugin, WordPress tells me that the plugin triggers a fatal error and can’t be activated. The log shows:
Class 'WC_Ncr_Settings_Page' not found in wp-content/plugins/no-captcha-recaptcha-for-woocommerce/woocommerce-no-captcha-recaptcha.php
.That’s strange because the class is defined just above, in
settings.php
. It turns out that if I show the stacktrace, therequire_once 'settings.php';
in the plugin is actually trying to requirewp-admin/network/settings.php
.It’s probably not enough to make the plugin work network-wide, but renaming
settings.php
allows to reach the Network dashboard without error. It’s a good starting point to make it compatible. I don’t have the time to inspect further though.Regards,
Warren.https://wordpress.org/plugins/no-captcha-recaptcha-for-woocommerce/
- The topic ‘PHP Fatal error: Class 'WC_Ncr_Settings_Page' not found’ is closed to new replies.