Critical error with offloaded files

[ad_1]

We are using the cloudinary plugin to handle our file offloading.
When trying to replace a pdf, we. have critical errors:

2024/01/24 18:42:55 [error] 11796#11796: *175271 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught TypeError: Unsupported operand types: string / int in /www/[SERVER]/public/releases/20240124183741/web/app/plugins/enable-media-replace/classes/uihelper.php:248
Stack trace:
#0 /www/[SERVER]/public/releases/20240124183741/web/app/plugins/enable-media-replace/views/screen.php(88): EnableMediaReplace\UIHelper->getPreviewImage(2763, Object(EnableMediaReplace\FileSystem\Model\File\FileModel))
#1 /www/[SERVER]/public/releases/20240124183741/web/app/plugins/enable-media-replace/classes/ViewController.php(72): include('/www/[SERVER]...')
#2 /www/[SERVER]/public/releases/20240124183741/web/app/plugins/enable-media-replace/classes/ViewController/ReplaceViewController.php(76): EnableMediaReplace\ViewController->loadView('screen')
#3 /www/[SERVER]/public/releases/20240124183741/web/app/plugins/enable-media-replace/classes/emr-plugin.php(231): EnableMediaReplace\ViewController\ReplaceViewController->load()
#4 /www/[SERVER]/public/releases/20240" while reading response header from upstream, client: 24.218.46.206, server: [DOMAIN], request: "GET /wp/wp-admin/upload.php?page=enable-media-replace%2Fenable-media-replace.php&action=media_replace&attachment_id=2763&_wpnonce=3e8dff4dce HTTP/2.0", upstream: "fastcgi://unix:/var/run/php8.1-fpm-[DOMAIN].sock:", host: "[DOMAIN]:31145", referrer: "https://[DOMAIN]/wp/wp-admin/post.php?post=2763&action=edit"

This does not happen with offloaded jpgs.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer