Title: Redeclare Error
Last modified: October 17, 2024

---

# Redeclare Error

 *  Resolved [bobjgarrett](https://wordpress.org/support/users/bobjgarrett/)
 * (@bobjgarrett)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/redeclare-error/)
 * I am getting the following error:
 * Cannot redeclare sendtheSMS() (previously declared in C:\inetpub\vhosts\mywebsite.
   co.uk\httpdocs\wp-content\plugins\insert-headers-and-footers\includes\class-wpcode-
   snippet-execute.php(316) : eval()’d code:156)
 * But I don’t think this is being redeclared. There is one statement setting out
   the function and one statement calling it.
 * Can you suggest why this is happening and how to fix it. I am sure this used 
   to work either in your plugin or the previous plugin I used for running php.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Mircea Sandu](https://wordpress.org/support/users/gripgrip/)
 * (@gripgrip)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/redeclare-error/#post-18080691)
 * Hi [@bobjgarrett](https://wordpress.org/support/users/bobjgarrett/),
 * Can you please try deactivating the snippet when you update it and then activating
   it separately?
 * If that still doesn’t work, make sure you don’t have any duplicates in other 
   snippets where you define this function either in WPCode or somewhere else.
 *  [ronnymuller](https://wordpress.org/support/users/ronnymuller/)
 * (@ronnymuller)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/redeclare-error/#post-18324180)
 * @[fall guys](https://fallguys.onl) Your error is related to the insert-headers-
   and-footers plugin, specifically the file:
 * `C:\inetpub\vhosts\mywebsite.co.uk\httpdocs\wp-content\plugins\insert-headers-
   and-footers\includes\class-wpcode-snippet-execute.php(316) : eval()'d code:156`
 * If you have inserted PHP into this plugin, try disabling the plugin and check
   again to see if the error still appears.
 *  [ronnymuller](https://wordpress.org/support/users/ronnymuller/)
 * (@ronnymuller)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/redeclare-error/#post-18324181)
 * @[fall guys](https://fallguys.onl) Your error is related to the insert-headers-
   and-footers plugin, specifically the file:
 * `C:\inetpub\vhosts\mywebsite.co.uk\httpdocs\wp-content\plugins\insert-headers-
   and-footers\includes\class-wpcode-snippet-execute.php(316) : eval()'d code:156`
 * If you have inserted PHP into this plugin, try disabling the plugin and check
   again to see if the error still appears.
    -  This reply was modified 1 year, 3 months ago by [ronnymuller](https://wordpress.org/support/users/ronnymuller/).
    -  This reply was modified 1 year, 3 months ago by [ronnymuller](https://wordpress.org/support/users/ronnymuller/).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Redeclare Error’ is closed to new replies.

 * ![](https://ps.w.org/insert-headers-and-footers/assets/icon-256x256.png?rev=2758516)
 * [WPCode - Insert Headers and Footers + Custom Code Snippets - WordPress Code Manager](https://wordpress.org/plugins/insert-headers-and-footers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-headers-and-footers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-headers-and-footers/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-headers-and-footers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-headers-and-footers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-headers-and-footers/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [ronnymuller](https://wordpress.org/support/users/ronnymuller/)
 * Last activity: [1 year, 3 months ago](https://wordpress.org/support/topic/redeclare-error/#post-18324181)
 * Status: resolved