wpsnoop Fatal error: Cannot redeclare array_flatten()

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

Examples of this error include:

PHP Fatal error: Cannot redeclare array_flatten() (previously declared in wp-content/plugins/inbound-brew/vendor/illuminate/support/Illuminate/Support/helpers.php:251)

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

PHP Fatal error: Cannot redeclare array_flatten() (previously declared in wp-content/plugins/wp-default-feature-image/vendor/illuminate/support/helpers.php:126)

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

PHP Fatal error: Cannot redeclare array_flatten() (previously declared in wp-content/plugins/wp-business-intelligence-lite/vendor/illuminate/support/helpers.php:153)

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

PHP Fatal error: Cannot redeclare array_flatten() (previously declared in wp-content/plugins/elex-helpdesk-customer-support-ticket-system/vendor/illuminate/support/helpers.php:144)

This file is part of the WordPress plugin ELEX HelpDesk & Customer Support Ticket System and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare array_flatten() (previously declared in wp-content/plugins/fat-rat-collect/vendor/illuminate/support/helpers.php:125)

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

PHP Fatal error: Cannot redeclare array_flatten() (previously declared in wp-content/plugins/wp-inspect/inc/compat.php:14)

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

PHP Fatal error: Cannot redeclare array_flatten() (previously declared in wp-content/plugins/ilab-media-tools/lib/mcloud-illuminate/support/helpers.php:124)

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

PHP Fatal error: Cannot redeclare array_flatten() (previously declared in wp-content/plugins/property-drive/includes/helpers.php:1581)

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

PHP Fatal error: Cannot redeclare array_flatten() (previously declared in wp-content/plugins/wschat-live-chat/vendor/illuminate/support/helpers.php:144)

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

PHP Fatal error: Cannot redeclare array_flatten() (previously declared in wp-content/plugins/userplace-member-subscription-restriction-payments/vendor/illuminate/support/helpers.php:124)

This file is part of the WordPress plugin Userplace - Member Subscription, Restriction & Payments and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare array_flatten() (previously declared in wp-content/plugins/mpl-publisher/vendor/illuminate/support/helpers.php:144)

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

PHP Fatal error: Cannot redeclare array_flatten() (previously declared in wp-content/plugins/wp-hr-manager/vendor/illuminate/support/helpers.php:178)

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

PHP Fatal error: Cannot redeclare array_flatten() (previously declared in wp-content/plugins/giga-messenger-bots/vendor/illuminate/support/helpers.php:178)

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

PHP Fatal error: Cannot redeclare array_flatten() (previously declared in wp-content/plugins/wp-blade-engine/vendor/illuminate/support/helpers.php:125)

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

PHP Fatal error: Cannot redeclare array_flatten() (previously declared in wp-content/plugins/indicative-analytics/vendor/illuminate/support/helpers.php:126)

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

PHP Fatal error: Cannot redeclare array_flatten() (previously declared in wp-content/plugins/wedevs-project-manager/vendor/illuminate/support/helpers.php:125)

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

PHP Fatal error: Cannot redeclare array_flatten() (previously declared in wp-content/plugins/webinane-commerce/vendor/illuminate/support/helpers.php:144)

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

PHP Fatal error: Cannot redeclare array_flatten() (previously declared in wp-content/plugins/basic-landing-pages-wizard/vendor/illuminate/support/helpers.php:126)

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

PHP Fatal error: Cannot redeclare array_flatten() (previously declared in wp-content/plugins/datacake-core/vendor/illuminate/support/helpers.php:144)

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

PHP Fatal error: Cannot redeclare array_flatten() (previously declared in wp-content/plugins/http-requests-tracker/vendor/illuminate/support/helpers.php:144)

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

PHP Fatal error: Cannot redeclare array_flatten() (previously declared in wp-content/plugins/seo-landing-page-generator/vendor/illuminate/support/helpers.php:178)

This file is part of the WordPress plugin IntellaSoft SEO Landing Page Generator and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare array_flatten() (previously declared in wp-content/plugins/fusionspan-impexium-single-sign-on/wp-bootstrap/src/WP/helpers.php:433)

This file is part of the WordPress plugin fusionSpan | Impexium Single Sign On and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare array_flatten() (previously declared in wp-content/plugins/fusionspan-memsuite-single-sign-on/wp-bootstrap/src/WP/helpers.php:433)

This file is part of the WordPress plugin fusionSpan | Membersuite Single Sign On and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare array_flatten() (previously declared in wp-content/plugins/easydocs/vendor/illuminate/support/helpers.php:126)

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

PHP Fatal error: Cannot redeclare array_flatten() (previously declared in wp-content/plugins/reservation-engine/vendor/illuminate/support/helpers.php:124)

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

PHP Fatal error: Cannot redeclare array_flatten() (previously declared in wp-content/plugins/hrm/vendor/illuminate/support/helpers.php:178)

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

PHP Fatal error: Cannot redeclare array_flatten() (previously declared in wp-content/plugins/fittest/vendor/illuminate/support/Illuminate/Support/helpers.php:210)

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