Title: Error adding Post Type
Last modified: November 22, 2016

---

# Error adding Post Type

 *  Resolved [Fernando Lopes](https://wordpress.org/support/users/fernandolopes/)
 * (@fernandolopes)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/error-adding-post-type/)
 * After adding a new Post Type, this error appeared. What can I do?
    Thank you.
 * Warning: array_key_exists() expects parameter 2 to be array, boolean given in/
   home/XXXXXXX/public_html/wp-content/plugins/acf-post-types/src/PostType.php on
   line 158
 * Warning: array_key_exists() expects parameter 2 to be array, boolean given in/
   home/XXXXXXX/public_html/wp-content/plugins/acf-post-types/src/PostType.php on
   line 158
 * Warning: array_key_exists() expects parameter 2 to be array, boolean given in/
   home/XXXXXXX/public_html/wp-content/plugins/acf-post-types/src/PostType.php on
   line 158
 * Warning: array_key_exists() expects parameter 2 to be array, boolean given in/
   home/XXXXXXX/public_html/wp-content/plugins/acf-post-types/src/PostType.php on
   line 158
 * Warning: array_key_exists() expects parameter 2 to be array, boolean given in/
   home/XXXXXXX/public_html/wp-content/plugins/acf-post-types/src/PostType.php on
   line 158
 * Warning: array_key_exists() expects parameter 2 to be array, boolean given in/
   home/XXXXXXX/public_html/wp-content/plugins/acf-post-types/src/PostType.php on
   line 158
 * Warning: array_key_exists() expects parameter 2 to be array, boolean given in/
   home/XXXXXXX/public_html/wp-content/plugins/acf-post-types/src/PostType.php on
   line 158
 * Warning: array_key_exists() expects parameter 2 to be array, boolean given in/
   home/XXXXXXX/public_html/wp-content/plugins/acf-post-types/src/PostType.php on
   line 158
 * Warning: array_key_exists() expects parameter 2 to be array, boolean given in/
   home/XXXXXXX/public_html/wp-content/plugins/acf-post-types/src/PostType.php on
   line 158
 * Warning: array_key_exists() expects parameter 2 to be array, boolean given in/
   home/XXXXXXX/public_html/wp-content/plugins/acf-post-types/src/PostType.php on
   line 158
 * Warning: array_key_exists() expects parameter 2 to be array, boolean given in/
   home/XXXXXXX/public_html/wp-content/plugins/acf-post-types/src/PostType.php on
   line 158
 * Warning: array_key_exists() expects parameter 2 to be array, boolean given in/
   home/XXXXXXX/public_html/wp-content/plugins/acf-post-types/src/PostType.php on
   line 158
 * Warning: array_key_exists() expects parameter 2 to be array, boolean given in/
   home/XXXXXXX/public_html/wp-content/plugins/acf-post-types/src/PostType.php on
   line 158
 * Warning: array_key_exists() expects parameter 2 to be array, boolean given in/
   home/XXXXXXX/public_html/wp-content/plugins/acf-post-types/src/PostType.php on
   line 158
 * Warning: array_key_exists() expects parameter 2 to be array, boolean given in/
   home/XXXXXXX/public_html/wp-content/plugins/acf-post-types/src/PostType.php on
   line 158
 * Warning: array_key_exists() expects parameter 2 to be array, boolean given in/
   home/XXXXXXX/public_html/wp-content/plugins/acf-post-types/src/PostType.php on
   line 158
 * Warning: array_key_exists() expects parameter 2 to be array, boolean given in/
   home/XXXXXXX/public_html/wp-content/plugins/acf-post-types/src/PostType.php on
   line 158
 * Warning: array_key_exists() expects parameter 2 to be array, boolean given in/
   home/XXXXXXX/public_html/wp-content/plugins/acf-post-types/src/PostType.php on
   line 158
 * Warning: array_key_exists() expects parameter 2 to be array, boolean given in/
   home/XXXXXXX/public_html/wp-content/plugins/acf-post-types/src/PostType.php on
   line 158
 * Warning: array_key_exists() expects parameter 2 to be array, boolean given in/
   home/XXXXXXX/public_html/wp-content/plugins/acf-post-types/src/PostType.php on
   line 158
 * Warning: array_key_exists() expects parameter 2 to be array, boolean given in/
   home/XXXXXXX/public_html/wp-content/plugins/acf-post-types/src/PostType.php on
   line 158
 * Warning: array_key_exists() expects parameter 2 to be array, boolean given in/
   home/XXXXXXX/public_html/wp-content/plugins/acf-post-types/src/PostType.php on
   line 158
 * Warning: array_key_exists() expects parameter 2 to be array, boolean given in/
   home/XXXXXXX/public_html/wp-content/plugins/acf-post-types/src/PostType.php on
   line 158
 * Warning: array_key_exists() expects parameter 2 to be array, boolean given in/
   home/XXXXXXX/public_html/wp-content/plugins/acf-post-types/src/PostType.php on
   line 38
 * Warning: array_key_exists() expects parameter 2 to be array, boolean given in/
   home/XXXXXXX/public_html/wp-content/plugins/acf-post-types/src/PostType.php on
   line 38
 * Warning: array_key_exists() expects parameter 2 to be array, boolean given in/
   home/XXXXXXX/public_html/wp-content/plugins/acf-post-types/src/PostType.php on
   line 38
 * Warning: array_key_exists() expects parameter 2 to be array, boolean given in/
   home/XXXXXXX/public_html/wp-content/plugins/acf-post-types/src/PostType.php on
   line 38
 * Warning: array_key_exists() expects parameter 2 to be array, boolean given in/
   home/XXXXXXX/public_html/wp-content/plugins/acf-post-types/src/PostType.php on
   line 92
 * Warning: array_key_exists() expects parameter 2 to be array, boolean given in/
   home/XXXXXXX/public_html/wp-content/plugins/acf-post-types/src/PostType.php on
   line 38
 * Warning: array_key_exists() expects parameter 2 to be array, boolean given in/
   home/XXXXXXX/public_html/wp-content/plugins/acf-post-types/src/PostType.php on
   line 38
 * Warning: array_key_exists() expects parameter 2 to be array, boolean given in/
   home/XXXXXXX/public_html/wp-content/plugins/acf-post-types/src/PostType.php on
   line 38
 * Warning: array_key_exists() expects parameter 2 to be array, boolean given in/
   home/XXXXXXX/public_html/wp-content/plugins/acf-post-types/src/PostType.php on
   line 75

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

 *  Plugin Author [goldhat](https://wordpress.org/support/users/goldhat/)
 * (@goldhat)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/error-adding-post-type/#post-8606476)
 * Sorry for the delayed reply I’m not getting notifications from WP support for
   some reason. What version is your site running? If it’s not 1.1.0 the latest,
   please try this latest version and tell me if that resolves it.
 *  Thread Starter [Fernando Lopes](https://wordpress.org/support/users/fernandolopes/)
 * (@fernandolopes)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/error-adding-post-type/#post-8687087)
 * I’m sorry for the delay.
    The error was because the server had an old version
   of PHP. I upgraded to PHP 7.0 and the error disappeared.

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

The topic ‘Error adding Post Type’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/acf-post-types.svg)
 * [ACF Post Types](https://wordpress.org/plugins/acf-post-types/)
 * [Support Threads](https://wordpress.org/support/plugin/acf-post-types/)
 * [Active Topics](https://wordpress.org/support/plugin/acf-post-types/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/acf-post-types/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/acf-post-types/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Fernando Lopes](https://wordpress.org/support/users/fernandolopes/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/error-adding-post-type/#post-8687087)
 * Status: resolved