• Resolved bobjgarrett

    (@bobjgarrett)


    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

    (@gripgrip)

    Hi @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.

    @fall guys 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.

    @fall guys 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 2 weeks, 6 days ago by ronnymuller.
    • This reply was modified 2 weeks, 6 days ago by ronnymuller.
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.