Title: Error Message
Last modified: April 6, 2025

---

# Error Message

 *  [Conny](https://wordpress.org/support/users/conny64/)
 * (@conny64)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/error-message-1056/)
 * Hi,
 * I’ve got this error message:
 * Fatal error: Cannot redeclare fetchWarningsFromSource() (previously declared 
   in /home/www/xxxxx/wp-content/plugins/insert-php-code-snippet/shortcode-handler.
   php(238) : eval()’d code:59)
 * Does anyone have a idea?

Viewing 1 replies (of 1 total)

 *  [anjalixyzscripts](https://wordpress.org/support/users/anjali94/)
 * (@anjali94)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/error-message-1056/#post-18402892)
 * The error you’re encountering indicates that the function `fetchWarningsFromSource()`
   is being declared more than once. This usually happens when the same function
   is defined in multiple places — in this case, it seems the function already exists
   in your theme or another active plugin, and you’re trying to redeclare it in 
   one of your PHP snippets.
 * Please review the custom code snippet you’ve added and ensure that you’re not
   redeclaring an already existing function. To avoid such conflicts, especially
   when you’re unsure if a function is already defined, you can wrap your function
   declaration using `if (!function_exists('fetchWarningsFromSource'))` like this:
 * `if (!function_exists('fetchWarningsFromSource')) { function fetchWarningsFromSource(){//
   Your function code here } }`
 * Also, please note that the plugin _Insert PHP Code Snippet_ itself does **not**
   declare or use any function named `fetchWarningsFromSource()`. We can confirm
   that this function is not part of the plugin’s codebase.
 * Let us know if you need any help.

Viewing 1 replies (of 1 total)

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

 * ![](https://ps.w.org/insert-php-code-snippet/assets/icon-128x128.png?rev=1800967)
 * [Insert PHP Code Snippet](https://wordpress.org/plugins/insert-php-code-snippet/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-php-code-snippet/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-php-code-snippet/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-php-code-snippet/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-php-code-snippet/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-php-code-snippet/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [anjalixyzscripts](https://wordpress.org/support/users/anjali94/)
 * Last activity: [1 year, 1 month ago](https://wordpress.org/support/topic/error-message-1056/#post-18402892)
 * Status: not resolved