• Resolved pingram

    (@pingram3541)


    PHP Fatal error: Cannot redeclare ep()

    Sprout Invoices uses this same declaration. Had to tweak a bit but thanks for the useful tool.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author bobbingwide

    (@bobbingwide)

    Thanks for the heads up. I wrote those functions in bobbfunc.php back in 2009, before I started writing any code for a WordPress plugin. In those days I didn’t know about namespaces and/or PHP classes.

    Can you confirm the tweaks you needed to make?

    Thread Starter pingram

    (@pingram3541)

    I changed the function name and updated all references to ‘ep’ adding a prefix ‘bw_ep’ and all was good.

    Plugin Author bobbingwide

    (@bobbingwide)

    Oops, I forgot to update this when I released oik-bwtrace v4.0.0. That’s similar to the solution I used in my fix. I also renamed wp() to bw_ep(). But to avoid version dependency problems I changed all my plugins that used wp() to call bw_echo( '</p>' ) instead.

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