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.