Title: mod_fcgid: stderr: PHP Warning: array_unique() expects parameter 1 to be array
Last modified: July 6, 2020

---

# mod_fcgid: stderr: PHP Warning: array_unique() expects parameter 1 to be array

 *  [jagomez](https://wordpress.org/support/users/jagomez/)
 * (@jagomez)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/mod_fcgid-stderr-php-warning-array_unique-expects-parameter-1-to-be-array/)
 * I’ve some apache errors on my site with this description.
 * mod_fcgid: stderr: PHP Warning: array_unique() expects parameter 1 to be array,
   null given in /var/www/vhosts/wowate.com/academia.wowate.com/wp-content/plugins/
   nav-menu-roles/nav-menu-roles.php on line 457, referer: [https://academia.wowate.com/Club-de-Inversores/debate/preguntas-y-respuestas-06-07-20/](https://academia.wowate.com/Club-de-Inversores/debate/preguntas-y-respuestas-06-07-20/)
 * Any idea to solve it? Thanks in advance.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmod_fcgid-stderr-php-warning-array_unique-expects-parameter-1-to-be-array%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [HelgaTheViking](https://wordpress.org/support/users/helgatheviking/)
 * (@helgatheviking)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/mod_fcgid-stderr-php-warning-array_unique-expects-parameter-1-to-be-array/#post-13079980)
 * Hi, can you show me a screenshot of the menu item setup? Does this problem persist
   if you turn off all other plugins and switch to a default theme?
 * The line in question:
 *     ```
       $menu_item->classes = array_unique( array_merge( $menu_item->classes, $new_classes ) );
       ```
   
 * expects:
 * `$menu_item->classes` to be an array. This is the WordPress default so if something
   else has interfered it may cause an issue with the array manipulation. I might
   be able to add some type casting to make extra sure that the variables are both
   arrays like they are supposed to be.
 *  Thread Starter [jagomez](https://wordpress.org/support/users/jagomez/)
 * (@jagomez)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/mod_fcgid-stderr-php-warning-array_unique-expects-parameter-1-to-be-array/#post-13091106)
 * Hi, this is one menu item config.
 * [https://www.screencast.com/t/wkycTpYVVd](https://www.screencast.com/t/wkycTpYVVd)
 * Now appears the plugin update to v1.10.2. Can solve this issue? Thanks a lot.
 *  Plugin Author [HelgaTheViking](https://wordpress.org/support/users/helgatheviking/)
 * (@helgatheviking)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/mod_fcgid-stderr-php-warning-array_unique-expects-parameter-1-to-be-array/#post-13091226)
 * I added the strict type casting I mentioned, which I hope will solve your issue.
   Update and please let me know.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘mod_fcgid: stderr: PHP Warning: array_unique() expects parameter 1 to
be array’ is closed to new replies.

 * ![](https://ps.w.org/nav-menu-roles/assets/icon-256x256.png?rev=2336319)
 * [Nav Menu Roles](https://wordpress.org/plugins/nav-menu-roles/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nav-menu-roles/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nav-menu-roles/)
 * [Active Topics](https://wordpress.org/support/plugin/nav-menu-roles/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nav-menu-roles/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nav-menu-roles/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [HelgaTheViking](https://wordpress.org/support/users/helgatheviking/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/mod_fcgid-stderr-php-warning-array_unique-expects-parameter-1-to-be-array/#post-13091226)
 * Status: not resolved