wpsnoop Fatal error: Cannot redeclare main()

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

Examples of this error include:

PHP Fatal error: Cannot redeclare main() (previously declared in wp-content/plugins/sso-flarum/sso-flarum.php:79)

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

PHP Fatal error: Cannot redeclare main() (previously declared in wp-content/plugins/elite-accordion/index.php:52)

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

PHP Fatal error: Cannot redeclare main() (previously declared in wp-content/plugins/get-picasa-albums/GetPicasaAlbums.php:67)

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

PHP Fatal error: Cannot redeclare main() (previously declared in wp-content/plugins/zd-youtube-flv-player/zd-youtube-flv-player.php:77)

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

PHP Fatal error: Cannot redeclare main() (previously declared in wp-content/plugins/shipday-for-woocommerce/shipday-integration-for-wooCommerce.php:37)

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

PHP Fatal error: Cannot redeclare main() (previously declared in wp-content/plugins/mailchimp-for-shopified/index.php:64)

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

PHP Fatal error: Cannot redeclare main() (previously declared in wp-content/plugins/photostream/photostream.php:91)

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

PHP Fatal error: Cannot redeclare main() (previously declared in wp-content/plugins/convoworks-wp/vendor/scoper-autoload.php:145)

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

PHP Fatal error: Cannot redeclare main() (previously declared in wp-content/plugins/remind-new/remind-new.php:14)

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

PHP Fatal error: Cannot redeclare main() (previously declared in wp-content/plugins/reaseo/reaseo.php:29)

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

PHP Fatal error: Cannot redeclare main() (previously declared in wp-content/plugins/download-restriction/ab_download.php:64)

This file is part of the WordPress plugin Download Attachments by User Restrictions 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.