• Resolved cdogstu99

    (@cdogstu99)


    Hi, thanks for a great plugin!

    So, i’m using snippets to pull in data from eBay API to include items on my wordpress pages.

    I included one snippet on a page—worked perfectly.

    Second page, not so much. Getting a 500 server error when i save the page. It’s basically the same snippet but just using a different query for the eBay API. This is my error message:

    [STDERR] PHP Fatal error: Cannot redeclare CurrencyFormat() (previously declared in /home/public_html/wp-content/plugins/insert-php/includes/shortcodes/shortcode-php.php(52) : eval()'d code:28) in /home/public_html/wp-content/plugins/insert-php/includes/shortcodes/shortcode-php.php(52) : eval()'d code on line 28

    I’m guessing that the ‘CurrencyFormat’ function that I have is conflicting with the other one? I tried removing that function but getting the same error. Any advice?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Fatal error: Cannot redeclare’ is closed to new replies.