Support
Support » Plugin: User Avatar » Plugin don't work properly with "WP Hide Dashboard"
(@cidx)
8 years, 5 months ago
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)
8 years, 4 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:
<?php
error_reporting(0); @ini_set(‘display_errors’, 0);
3) Save and re-upload plugin.php to wp-admin/includes/