• Resolved vitaliysemenko

    (@vitaliysemenko)


    PHP Fatal error: Uncaught Error: Undefined constant “WebpConverter\Model\CURLINFO_SIZE_DOWNLOAD_T” in wp-content/plugins/webp-converter-for-media/src/Model/DebugCurl.php:28

    cURL Information => 7.29.0
    php8.3

    possible to fix with:
    $this->response_length = curl_getinfo( $curl_handle, defined( ‘CURLINFO_SIZE_DOWNLOAD_T’ ) ? CURLINFO_SIZE_DOWNLOAD_T : CURLINFO_SIZE_DOWNLOAD );

    instaed of:
    $this->response_length = curl_getinfo( $curl_handle, CURLINFO_SIZE_DOWNLOAD_T );

Viewing 1 replies (of 1 total)
  • Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Hi @vitaliysemenko,

    Thank you for your message.

    Running PHP 8.3 alongside cURL 7.29.0 (which was released back in early 2013) is a very outdated and unsupported server environment. The CURLINFO_SIZE_DOWNLOAD_T constant requires cURL 7.55.0+ (released in 2017). Trying to run modern PHP 8.3 on system libraries that are over a decade old will inevitably break many modern plugins.

    Please contact your hosting provider and ask them to update cURL library on your server to a modern, supported version.

    We will also look into adding a safety fallback in a future release, but updating your server’s cURL is strongly recommended for security and stability reasons.

    Best,
    Mateusz

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.