PHP Fatal Errors
-
Looks like you’re not the only plugin developers using the GuzzleHttp library!
I’m getting these messages in the php_errors.log – the whole site crashes both front- and back-end. I commented out the describe_type() function, but then it went on to the next function, so the class should be checked if it’s already loaded before it’s loaded:
[21-Sep-2021 10:09:55 UTC] PHP Fatal error: Cannot redeclare GuzzleHttp\describe_type() (previously declared in /usr/local/lsws/Staging/htdocs
/wp-content/plugins/wsdesk-premium/vendor/guzzlehttp/guzzle/src/functions.php:16) in /usr/local/lsws/Staging/htdocs/wp-content/plugins/splitit-
installment-payments/vendor/guzzlehttp/guzzle/src/functions.php on line 41You can try something like
if ( ! class_exists(‘Library’))
at the beginning of the fileor
if (! function_exists(‘Function’))
before each function definition
- The topic ‘PHP Fatal Errors’ is closed to new replies.