Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In php 5.5 i get error "Deprecated function: curl_setopt(): The usage of the @filename API for file uploading is deprecated. Please use the CURLFile class instead in imageapi_optimize_services_smushit() (line 32"
Comment | File | Size | Author |
---|---|---|---|
#4 | 2333345_imageapi_optimize_deprecated_curl_setopt_file.patch | 884 bytes | id.tarzanych |
Comments
Comment #1
jcisio CreditAttribution: jcisio commentedIt should keep it compatible with PHP < 5.5 too. Maybe something like this (from php.net):
Comment #2
blesss CreditAttribution: blesss commentedAdded compatible with PHP < 5.5
Comment #3
pbz1912 CreditAttribution: pbz1912 commentedI get the following error with the patch in #2 applied, when images are generated:
Comment #4
id.tarzanych CreditAttribution: id.tarzanych commentedDeveloped another version of patch providing compatability with PHP 5.5 and lower versions
Comment #5
alexander.sibert CreditAttribution: alexander.sibert commentedI will test it.
Comment #6
hctomPatch from #4 works like a charm and applies cleanly to 7.x-1.2. Marking this as RTBC, because this issue is opened way too long already ;)
Comment #7
rootworkSmushit no longer exists. #2458453: Smush.it service has changed so it is no longer available to the module replaces it with Resmushit, and the new process doesn't include this bug. Given that, marking this as won't fix -- apply the patch in that issue instead.
Comment #8
rootworkOops