Support » Plugin: Enable Media Replace » Error replacing PDF file – Invalid argument supplied for foreach

  • When replacing two PDF files and using default settings, I got the following errors:

    Warning: Invalid argument supplied for foreach() in /var/www/REDACTED/wp-content/plugins/enable-media-replace/classes/replacer.php on line 673
    
    Warning: Invalid argument supplied for foreach() in /var/www/REDACTED/wp-content/plugins/enable-media-replace/classes/replacer.php on line 673
    
    Warning: Invalid argument supplied for foreach() in /var/www/REDACTED/wp-content/plugins/enable-media-replace/classes/replacer.php on line 673
    
    Warning: Cannot modify header information - headers already sent by (output started at /var/www/REDACTED/wp-content/plugins/enable-media-replace/classes/replacer.php:673) in /var/www/u0590497/data/www/tiger-optics.ru/wp-includes/pluggable.php on line 1281
    
    Warning: Cannot modify header information - headers already sent by (output started at /var/www/REDACTED/wp-content/plugins/enable-media-replace/classes/replacer.php:673) in /var/www/u0590497/data/www/tiger-optics.ru/wp-includes/pluggable.php on line 1284
    

    When browsing to the Media page after this, I see the following:
    There was an issue with updating your image URLS: Search and replace have different amount of values. Aborting updating thumbnails

    Also thumbnails are not being generated.

    Any ideas?

    • This topic was modified 3 months, 3 weeks ago by mrotter7000.
    • This topic was modified 3 months, 3 weeks ago by mrotter7000.
    • This topic was modified 3 months, 3 weeks ago by mrotter7000.
Viewing 1 replies (of 1 total)
  • Plugin Support Gerard Blanco

    (@sixaxis)

    Hi @mrotter7000,

    A few questions:

    • Does it happen with all PDF files?
    • Does the same happen on all browsers
    • If you delete and re-install the plugin, does the same happen?
    • Are you using the latest version of Enable Media Replace?

    Thank you,

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