Forums

User Avatar
Plugin don't work properly with "WP Hide Dashboard" (2 posts)

  1. Cidx
    Member
    Posted 10 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?

  2. 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/

Reply

You must log in to post.

About this Plugin

About this Topic