Support » Plugin: Enable Media Replace » PDF replace results in errors

  • Just tried to replace a PDF file from the media library and got a list of errors from the plugin. These include:

    Warning: Invalid argument supplied for foreach() in xxxx/enable-media-replace/classes/replacer.php on line 673
    Warning: Cannot modify header information – headers already sent by (output started at xxxx/enable-media-replace/classes/replacer.php:673) in xxxx/wp-includes/pluggable.php on line 1281

    I haven’t looked into the code but it suggests this might be to do with it trying to generate thumbnails for a PDF?

    Enable Media Replace version: 3.4.1
    WordPress version: 5.4.2

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


    Hi @ntking,

    Does it happen with only a specific PDF or with all PDFs?

    Also, can you deactivate all plugins excepte Enable Media Replace and try again? Does it work now?

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.