Fatal error on REST API image upload in 5.6.0
-
Hi,
since I auto-upgraded to SPIO 5.6.0 I have been having issues with a script what was working fine before.
It throws Fatal Error on every file upload that is done on the REST API.
As soon as I downgraded to 5.5.5, everything is fine.
2024/05/08 16:19:48 [error] 1260054#1260054: *2145324 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to a member function getExtension() on bool in /home/qcblog/public_html/wp-content/plugins/shortpixel-image-optimiser/class/Model/Converter/Converter.php:95 Stack trace: #0 /home/qcblog/public_html/wp-content/plugins/shortpixel-image-optimiser/class/Controller/AdminController.php(46): ShortPixel\Model\Converter\Converter::getConverter() #1 /home/qcblog/public_html/wp-includes/class-wp-hook.php(324): ShortPixel\Controller\AdminController->addAttachmentHook() #2 /home/qcblog/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #3 /home/qcblog/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #4 /home/qcblog/public_html/wp-includes/post.php(4751): do_action() #5 /home/qcblog/public_html/wp-includes/post.php(6295): wp_insert_post() #6 /home/qcblog/public_html/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php(301): wp_insert_attachment() #7 /home/qcblog/public_html/wp-includes/rest-api/endpoints/cl" while reading response header from upstream, client: 172.69.214.51, server: speciauxquebec.com, request: "POST /wp-json/wp/v2/media HTTP/2.0", upstream: "fastcgi://unix:/run/php/php8.1-fpm.sock:", host: "speciauxquebec.com"
Do you have an idea?
Is there a filter to juste disable the work of SPIO on REST or better…. a bug fix ??
Cheers.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Fatal error on REST API image upload in 5.6.0’ is closed to new replies.