• When I try to replace a file on my site I get this warning appear, although the file has been replaced correctly:
    Warning: Invalid argument supplied for foreach() in /path/to/mysite/public_html/wp-content/plugins/enable-media-replace/upload.php on line 59

    Warning: Cannot modify header information – headers already sent by (output started at /path/to/mysite/public_html/wp-content/plugins/enable-media-replace/upload.php:59) in /var/sites/c/crickhowellparish.org.uk/public_html/wp-includes/pluggable.php on line 1219
    Thank you for creating with WordPress.

    Version 4.9.8

    I’m using the latest version of EMR.

Viewing 1 replies (of 1 total)
  • Hi,

    You can simply turn off these warnings by following these steps:
    1. Navigate to your wordpress root directory.
    2. Edit wp-config.php file and add the following code in the next line after the php tag:
    error_reporting(0);
    2. Make sure that WP_DEBUG is set to false in wp-config.php file

Viewing 1 replies (of 1 total)
  • The topic ‘Invalid argument supplied for foreach()’ is closed to new replies.