Title: update php error &#8211; Warning: in_array() expects parameter 2 to be array
Last modified: March 2, 2017

---

# update php error – Warning: in_array() expects parameter 2 to be array

 *  [clockwood](https://wordpress.org/support/users/clockwood/)
 * (@clockwood)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/update-php-error-warning-in_array-expects-parameter-2-to-be-array/)
 * Got this warning on installing latest update.
 * Warning: in_array() expects parameter 2 to be array, null given in /app/public/
   wp-content/plugins/custom-post-type-permalinks/CPTP/Module/Setting.php on line
   44
 * This is on php 7.0.3

Viewing 1 replies (of 1 total)

 *  Plugin Author [Toro_Unit (Hiroshi Urabe)](https://wordpress.org/support/users/toro_unit/)
 * (@toro_unit)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/update-php-error-warning-in_array-expects-parameter-2-to-be-array/#post-8869619)
 * [@clockwood](https://wordpress.org/support/users/clockwood/)
 * Thanks! I will fix it soon.

Viewing 1 replies (of 1 total)

The topic ‘update php error – Warning: in_array() expects parameter 2 to be array’
is closed to new replies.

 * ![](https://ps.w.org/custom-post-type-permalinks/assets/icon-256x256.png?rev=
   3495884)
 * [Custom Post Type Permalinks](https://wordpress.org/plugins/custom-post-type-permalinks/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-post-type-permalinks/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-post-type-permalinks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-post-type-permalinks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-post-type-permalinks/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Toro_Unit (Hiroshi Urabe)](https://wordpress.org/support/users/toro_unit/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/update-php-error-warning-in_array-expects-parameter-2-to-be-array/#post-8869619)
 * Status: not resolved