wpsnoop Fatal error: Cannot redeclare getnestedattribute()

If you are dealing with a WordPress issue where a PHP Function getnestedattribute() was already declared it is most likely due to a plugin/theme conflict.

wpsnoop scanned and analyzed over 100,000 WordPress plugins and themes to find and locate potential conflicts including functions that share the same name.

This page has information on the 5 places where that function is declared and used in WordPress plugins and themes.

Note: Our database currently only taps into the free themes and plugins available in the publicly available WordPress plugins and themes, if your site uses paid plugins, themes or custom code there may be additional conflicts.


Our database has uncovered 5 different instances of potential conflicts where different plugins or themes share the function name.

Examples of this error include:

PHP Fatal error: Cannot redeclare getnestedattribute() (previously declared in wp-content/plugins/miniorange-login-with-whmcs/class-mo-oauth-widget.php:479)

This file is part of the WordPress plugin Login with WHMCS and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare getnestedattribute() (previously declared in wp-content/plugins/miniorange-openid-connect-client/class-mo-oauth-widget.php:695)

This file is part of the WordPress plugin OpenID Connect Login ( OpenID Connect Client) and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare getnestedattribute() (previously declared in wp-content/plugins/login-with-azure/class-mo-oauth-widget.php:476)

This file is part of the WordPress plugin Login with Azure (Azure SSO) and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare getnestedattribute() (previously declared in wp-content/plugins/login-with-cognito/class-mo-oauth-widget.php:479)

This file is part of the WordPress plugin Login with Cognito and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare getnestedattribute() (previously declared in wp-content/plugins/oauth-client/class-mo-oauth-widget.php:674)

This file is part of the WordPress plugin OAuth 2.0 client for SSO and could be interacting with another theme or plugin and causing a fatal error.

The error occurs because two (or more) plugins that you are using are both trying to declare a function with the same name.