• Resolved ria.stam

    (@riastam)


    Greetings,

    I just installed your plugin and I have to admit it works really as intended. However, I am seeing the following notices and warnings in wp-admin:

    Notice: Undefined index: rstam_user_cats in wp-content\plugins\restrict-taxonomies\restrict-taxonomies.php on line 619

    Warning: array_diff(): Argument #1 is not an array in wp-content\plugins\restrict-taxonomies\restrict-taxonomies.php on line 619

    Warning: array_values() expects parameter 1 to be array, null given in wp-content\plugins\restrict-taxonomies\restrict-taxonomies.php on line 619

    If that helps, I using both roles and users to restrict my content.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ria.stam

    (@riastam)

    The scenario:

    I have 2 roles, the second one being a sub-role to the 1st one and I want to restrict the users of the sub-role to only one term of a custom taxonomy (that the main role has full access).

    After some testing, I realized that when I try to apply this restriction via the users tab, I get always get the above notices and it only saves the restriction for the last user I checked.

    In addition, I occasionally get the following warnings/notices when saving my changes (blank screen with only the notices/warnings):

    Notice: Undefined index: rstam_user_cats in wp-content/plugins/restrict-taxonomies/restrict-taxonomies.php on line 619
    Warning: array_diff(): Argument #1 is not an array in wp-content/plugins/restrict-taxonomies/restrict-taxonomies.php on line 619
    Warning: array_values() expects parameter 1 to be array, null given in wp-content/plugins/restrict-taxonomies/restrict-taxonomies.php on line 619
    Warning: Cannot modify header information – headers already sent by (output started at wp-content/plugins/restrict-taxonomies/restrict-taxonomies.php:619) in wp-includes/pluggable.php on line 1179

    Hi,

    I’have the the same warnings in wp-admin

    Warning: array_diff(): Argumen #1 is not an array in \wp-content\plugins\restrict-taxonomies\restrict-taxonomies.php on line 619

    Warning: array_values() expects parameter 1 to be array, null given in \wp-content\plugins\restrict-taxonomies\restrict-taxonomies.php on line 619

    Did you find a solution ?

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Notices & Warnings’ is closed to new replies.