wpsnoop Fatal error: Cannot redeclare xml2array()

If you are dealing with a WordPress issue where a PHP Function xml2array() 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 10 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 10 different instances of potential conflicts where different plugins or themes share the function name.

Examples of this error include:

PHP Fatal error: Cannot redeclare xml2array() (previously declared in wp-content/plugins/table-maker/inc/class-wpsm-table-xml.php:62)

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

PHP Fatal error: Cannot redeclare xml2array() (previously declared in wp-content/plugins/agenteasy-properties/agenteasy-properties.php:1209)

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

PHP Fatal error: Cannot redeclare xml2array() (previously declared in wp-content/plugins/efront/utils/utils.php:66)

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

PHP Fatal error: Cannot redeclare xml2array() (previously declared in wp-content/plugins/youtube-channel-showcase/youtubechannel.php:88)

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

PHP Fatal error: Cannot redeclare xml2array() (previously declared in wp-content/plugins/wp-app-store-connect/lib/functions_common.php:12)

This file is part of the WordPress plugin WP App Store Connect and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare xml2array() (previously declared in wp-content/plugins/envialia-carrier-for-woocomerce/funciones.php:25)

This file is part of the WordPress plugin Envialia Carrier for Woocommerce and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare xml2array() (previously declared in wp-content/plugins/seo-friendly-tables-responsive/inc/class-hmg-table-xml.php:62)

This file is part of the WordPress plugin Responsive SEO Friendly Tables and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare xml2array() (previously declared in wp-content/plugins/clima-freekitime/xml2array.php:12)

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

PHP Fatal error: Cannot redeclare xml2array() (previously declared in wp-content/plugins/keral-patels-amazon-wordpress-plugin/keralpatel.php:72)

This file is part of the WordPress plugin Keral Patel Amazon Wordpress Plugin and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare xml2array() (previously declared in wp-content/plugins/icanlocalize-comment-translator/lib/xml2array.php:4)

This file is part of the WordPress plugin ICanLocalize Comment Translator 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.