wpsnoop Fatal error: Cannot redeclare get_the_image_by_attachment()
If you are dealing with a WordPress issue where a PHP Function get_the_image_by_attachment() 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 76 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 76 different instances of potential conflicts where different plugins or themes share the function name.
Examples of this error include:PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/extant/lib/ext/get-the-image.php:1011)
This file is part of the WordPress theme Extant and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/stargazer/library/ext/get-the-image.php:1065)
This file is part of the WordPress theme Alice and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/epic-base/vendor/composer/justintadlock/hybrid-core/ext/get-the-image.php:1031)
This file is part of the WordPress theme Epic Base and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/ravel/library/extensions/get-the-image.php:879)
This file is part of the WordPress theme Ravel and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/cakifo/library/extensions/get-the-image.php:299)
This file is part of the WordPress theme Cakifo and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/femme-flora/lib/hybrid-core/ext/get-the-image.php:982)
This file is part of the WordPress theme Femme Flora and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/stargazer/library/ext/get-the-image.php:1065)
This file is part of the WordPress theme Material Gaze and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/press-start/includes/get-the-image.php:969)
This file is part of the WordPress theme Press Start and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/stargazer/library/ext/get-the-image.php:1065)
This file is part of the WordPress theme Steep and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/themelia/library/ext/get-the-image.php:1071)
This file is part of the WordPress theme Themelia and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/unique/library/extensions/get-the-image.php:299)
This file is part of the WordPress theme Unique and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/wuqi/library/ext/get-the-image.php:1065)
This file is part of the WordPress theme Wuqi and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/stargazer/library/ext/get-the-image.php:1065)
This file is part of the WordPress theme Munchkin Maestro and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/campus/academia-admin/components/get-the-image.php:289)
This file is part of the WordPress theme Campus and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/plugins/deepcore/src/components/helper-classes/get-the-image.php:902)
This file is part of the WordPress plugin Deep Core and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/spine/hybrid-core/extensions/get-the-image.php:273)
This file is part of the WordPress theme Spine and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/retro-fitted/library/extensions/get-the-image.php:273)
This file is part of the WordPress theme Ectopudding and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/saga/library/extensions/get-the-image.php:902)
This file is part of the WordPress theme Edda and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/stargazer/library/ext/get-the-image.php:1065)
This file is part of the WordPress theme Boldly Go Blue and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/stargazer/library/ext/get-the-image.php:1065)
This file is part of the WordPress theme Boldly Go Green and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/drop-shipping/library/ext/get-the-image.php:982)
This file is part of the WordPress theme Drop Shipping and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/socially-awkward/library/extensions/get-the-image.php:879)
This file is part of the WordPress theme Cycnus and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/blog-start/library/ext/get-the-image.php:982)
This file is part of the WordPress theme Blog Start and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/socially-awkward/library/extensions/get-the-image.php:879)
This file is part of the WordPress theme Socially Awkward and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/stargazer/library/ext/get-the-image.php:1065)
This file is part of the WordPress theme Garden Harvest and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/cara/library/extensions/get-the-image.php:902)
This file is part of the WordPress theme Cara and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/inception/library/extensions/get-the-image.php:902)
This file is part of the WordPress theme Inception and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/stargazer/library/ext/get-the-image.php:1065)
This file is part of the WordPress theme Polymer and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/hybrid/library/extensions/get-the-image.php:273)
This file is part of the WordPress theme Hybrid and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/picturesque/library/extensions/get-the-image.php:273)
This file is part of the WordPress theme Picturesque and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/oxygen/library/extensions/get-the-image.php:299)
This file is part of the WordPress theme Oxygen and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/mantel-lite/library/extensions/get-the-image.php:273)
This file is part of the WordPress theme Mantel Lite and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/reception/hermes-admin/components/get-the-image.php:911)
This file is part of the WordPress theme Reception and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/plugins/get-the-image/get-the-image.php:1074)
This file is part of the WordPress plugin Get The Image and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/stargazer/library/ext/get-the-image.php:1065)
This file is part of the WordPress theme Twiggy and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/stargazer/library/ext/get-the-image.php:1065)
This file is part of the WordPress theme Spring Song and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/springboard/library/extensions/get-the-image.php:263)
This file is part of the WordPress theme SpringBoard and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/ascetica/library/extensions/get-the-image.php:299)
This file is part of the WordPress theme Ascetica and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/fanwood/library/extensions/get-the-image.php:273)
This file is part of the WordPress theme Fanwood and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/saga/library/extensions/get-the-image.php:902)
This file is part of the WordPress theme Trailing Spaces and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/uridimmu/library/extensions/get-the-image.php:273)
This file is part of the WordPress theme Uridimmu and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/stargazer/library/ext/get-the-image.php:1065)
This file is part of the WordPress theme Dancing In The Moonlight and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/live-wire/library/extensions/get-the-image.php:299)
This file is part of the WordPress theme Live Wire and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/skyfall/library/extensions/get-the-image.php:299)
This file is part of the WordPress theme SkyFall and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/creativepress/hybrid-core/ext/get-the-image.php:1065)
This file is part of the WordPress theme CreativePress and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/genbu/library/extensions/get-the-image.php:902)
This file is part of the WordPress theme Genbu and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/stargazer/library/ext/get-the-image.php:1065)
This file is part of the WordPress theme Kepler and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/socially-awkward/library/extensions/get-the-image.php:879)
This file is part of the WordPress theme Ambling Bellows and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/mosalon/library/ext/get-the-image.php:982)
This file is part of the WordPress theme Mosalon and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/saga/library/extensions/get-the-image.php:902)
This file is part of the WordPress theme Vaaka and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/saga/library/extensions/get-the-image.php:902)
This file is part of the WordPress theme Yarn and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/stargazer/library/ext/get-the-image.php:1065)
This file is part of the WordPress theme Ex Astris and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/stargazer/library/ext/get-the-image.php:1065)
This file is part of the WordPress theme Christmas Joy and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/saga/library/extensions/get-the-image.php:902)
This file is part of the WordPress theme Saga and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/waterside/hermes-admin/components/get-the-image.php:911)
This file is part of the WordPress theme Waterside and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/retro-fitted/library/extensions/get-the-image.php:273)
This file is part of the WordPress theme Retro-fitted and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/saga/library/extensions/get-the-image.php:902)
This file is part of the WordPress theme Sahagin and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/stargazer/library/ext/get-the-image.php:1065)
This file is part of the WordPress theme Mixr and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/stargazer/library/ext/get-the-image.php:1065)
This file is part of the WordPress theme Ugallu and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/stargazer/library/ext/get-the-image.php:1065)
This file is part of the WordPress theme Buntu and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/chun/library/extensions/get-the-image.php:273)
This file is part of the WordPress theme Chun and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/stargazer/library/ext/get-the-image.php:1065)
This file is part of the WordPress theme Stargazer and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/saiph-lite/inc/includes/get-the-image.php:982)
This file is part of the WordPress theme Saiph Lite and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/stargazer/library/ext/get-the-image.php:1065)
This file is part of the WordPress theme Stargazer Colloquium and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/fathom/library/ext/get-the-image.php:1065)
This file is part of the WordPress theme Fathom and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/rakiya/library/ext/get-the-image.php:982)
This file is part of the WordPress theme Rakiya and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/prototype/library/extensions/get-the-image.php:273)
This file is part of the WordPress theme Prototype and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/loose/inc/get-the-image.php:1077)
This file is part of the WordPress theme Loose and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/eino/library/extensions/get-the-image.php:299)
This file is part of the WordPress theme Eino and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/celebrate/library/extensions/get-the-image.php:299)
This file is part of the WordPress theme Celebrate and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/lifelog/library/extensions/get-the-image.php:902)
This file is part of the WordPress theme LifeLog and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/envince/library/ext/get-the-image.php:982)
This file is part of the WordPress theme Envince and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/neutro/library/extensions/get-the-image.php:299)
This file is part of the WordPress theme Neutro and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/plain-wp/library/extensions/get-the-image.php:273)
This file is part of the WordPress theme Plain WP and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/birthday-gift/library/extensions/get-the-image.php:902)
This file is part of the WordPress theme Birthday Gift and could be interacting with another theme or plugin and causing a fatal error.
PHP Fatal error: Cannot redeclare get_the_image_by_attachment() (previously declared in wp-content/themes/adroa/library/extensions/get-the-image.php:273)
This file is part of the WordPress theme Adroa 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.