When I activate "WP Hide Dashboard" and try to modify my picture as a "subscriber" I get a warning:
Warning: Invalid argument supplied for foreach() in /home/dipboco1/public_html/dv/wp-admin/includes/plugin.php on line 1261
in "Upload and Crop an Image to be Displayed" pop-up frame.
Can you check this please?
Captain Jeff
Member
Posted 10 months ago #
Found a fix for this!
Since it does work, even though it reports this error, the way to work around it (I admit, it's technically sloppy), is to hide the error.
1) Open wp-admin/includes/plugin.php using a standard text editor
2) Immediately after the opening line <?php add the following:
error_reporting(0);
@ini_set(‘display_errors’, 0);
3) Save and re-upload plugin.php to wp-admin/includes/