wpsnoop Fatal error: Cannot redeclare env()

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

Examples of this error include:

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

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 env() (previously declared in wp-content/plugins/ap-sms-manager/vendor/illuminate/support/helpers.php:274)

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

PHP Fatal error: Cannot redeclare env() (previously declared in wp-content/plugins/kudobux-testimonial-widget/src/helpers/env.php:162)

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

PHP Fatal error: Cannot redeclare env() (previously declared in wp-content/plugins/flow-flow-social-streams/libs/cakephp/core/functions.php:201)

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

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

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 env() (previously declared in wp-content/plugins/fat-rat-collect/vendor/illuminate/support/helpers.php:573)

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 env() (previously declared in wp-content/plugins/admin-todotastic/vendor/illuminate/support/helpers.php:263)

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

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

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 env() (previously declared in wp-content/plugins/wschat-live-chat/vendor/illuminate/support/helpers.php:641)

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 env() (previously declared in wp-content/plugins/mpl-publisher/vendor/illuminate/support/helpers.php:641)

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 env() (previously declared in wp-content/plugins/wp-blade-engine/vendor/illuminate/support/helpers.php:559)

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 env() (previously declared in wp-content/plugins/indicative-analytics/vendor/illuminate/support/helpers.php:606)

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 env() (previously declared in wp-content/plugins/cache-ultra/vendor/illuminate/support/helpers.php:263)

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

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

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 env() (previously declared in wp-content/plugins/webinane-commerce/vendor/illuminate/support/helpers.php:641)

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 env() (previously declared in wp-content/plugins/basic-landing-pages-wizard/vendor/illuminate/support/helpers.php:606)

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 env() (previously declared in wp-content/plugins/datacake-core/vendor/illuminate/support/helpers.php:641)

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 env() (previously declared in wp-content/plugins/http-requests-tracker/vendor/illuminate/support/helpers.php:641)

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 env() (previously declared in wp-content/plugins/easycontent/vendor/cakephp/core/functions.php:201)

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

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

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 env() (previously declared in wp-content/plugins/wpgenealogy/vendor/illuminate/support/helpers.php:263)

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

PHP Fatal error: Cannot redeclare env() (previously declared in wp-content/plugins/two-tap/includes/functions/two-tap-core-functions.php:291)

This file is part of the WordPress plugin Two Tap Product Catalog 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.