• 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 1 replies (of 1 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.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.