• Resolved jordan1990

    (@jordan1990)


    Hi, I added two files .docx and .odt to media, where we can find all photos. After that I’ve received an e-mail from WordPress:

    “WordPress has detected an error in its plugin: WebP Converter for Media.”

    `Error details
    ===================
    The E_ERROR error was caused on line 39 of */Media/Upload.php. Error message: Uncaught TypeError: Argument 1 passed to WebpConverter \ Conversion \ Media \ Upload :: init_attachment_convert () must be of the type array, null given, called in …

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

    (@mateuszgbiorczyk)

    Hello @jordan1990,

    Thanks for your message.

    Does this problem occur all the time when uploading such a file? Can you send me the file you are trying to add to the media library?

    Best,
    Mateusz

    Hi, I have experienced the same error.
    After updating to the newest version of the plugin (3.1.1) the problem still occurs when uploading to the media library a .docx file or .pdf generated from the .docx file.

    Error message below:
    Error Message: Uncaught TypeError: Argument 1 passed to WebpConverter\Conversion\Media\Upload::init_attachment_convert() must be of the type array, null given, called in /public_html/wp-includes/class-wp-hook.php on line 292 and defined in /public_html/wp-content/plugins/webp-converter-for-media/src/Conversion/Media/Upload.php:39

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @theunnicked Can you send me the file you are trying to add to the media library?

    I’ve emailed you the file.

    After further tests on a clean WP installation, WebP Converter throws an error when Smush plugin is activated as well.

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @theunnicked Thank you for sending the file. The problem is not with the file itself, but probably with the Smush plugin. So there is nothing else I can do here.

    Thread Starter jordan1990

    (@jordan1990)

    So what can we do with that problem?

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @jordan1990 Do you also use the Smush plugin? Does everything work fine without it?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Error after adding .odt and .docx files’ is closed to new replies.