• Resolved drbroad

    (@drbroad)


    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Gerard Blanco

    (@sixaxis)

    Hi drbroad,

    Our plugin is only compatible with WP Offload Media when it comes to offloaded files, therefore I’m afraid that it’s expected to see these kind of issues.

    Can you please verify if the same happens with local, not offloaded files?

    Thank you,

    Thread Starter drbroad

    (@drbroad)

    It does not happen with local files, or jpgs that are offloaded.

    I will try another plugin – thanks

    Plugin Support Gerard Blanco

    (@sixaxis)

    No problem, we will be around if you need further assistance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Critical error with offloaded files’ is closed to new replies.