• Resolved thejasonator

    (@thejasonator)


    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 41

    You can try something like

    if ( ! class_exists(‘Library’))
    at the beginning of the file

    or

    if (! function_exists(‘Function’))
    before each function definition

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘PHP Fatal Errors’ is closed to new replies.