Title: Array warning when adding new post
Last modified: August 30, 2016

---

# Array warning when adding new post

 *  [wordpressfrank](https://wordpress.org/support/users/wordpressfrank/)
 * (@wordpressfrank)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/array-warning-when-adding-new-post/)
 * Hi everyone,
 * I am having an issue with wordpress while adding a new post. The moment I create
   a post it will give the following error:
 * **Warning: array_map(): Argument #2 should be an array in /home2/ab34099/public_html/
   wp-includes/category-template.php on line 1158**
 * Warning: array_map(): Argument #2 should be an array in /home2/ab34099/public_html/
   wp-includes/category-template.php on line 1158
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home2/ab34099/public_html/wp-includes/category-template.php:1158) in /home2/
   ab34099/public_html/wp-admin/post.php on line 197
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home2/ab34099/public_html/wp-includes/category-template.php:1158) in /home2/
   ab34099/public_html/wp-includes/pluggable.php on line 1228
 * I am new to wordpress and do not have any coding experience. Could you please
   help me out?
 * My website: [http://www.skootchie.com](http://www.skootchie.com)
 * Thank you!

Viewing 1 replies (of 1 total)

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/array-warning-when-adding-new-post/#post-6899262)
 * Have you tried:
    – Flushing any caching plugins you might be running, as well
   as server and/or browser caches. Also, any op cache or content network cache,
   as well as Cloudflare, clear those caches. – deactivating ALL (yes all) plugins
   temporarily to see if this resolves the problem (plugin functions can interfere).
   If this works, re-activate them individually (one-by-one) to find the problematic
   plugin(s). – If you can’t get into your admin dashboard, try [resetting the plugins folder](http://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F)
   by [FTP](http://codex.wordpress.org/FTP_Clients). Sometimes, an apparently inactive
   plugin can still cause problems. Also remember to deactivate any plugins in the
   mu-plugins folder (if you have created such folder). The easiest way is to rename
   that folder to mu-plugins-old. – switching to the unedited default Theme (Twenty
   Sixteen, etc.) for a moment using the WP dashboard to rule out any theme-specific
   issue (theme functions can interfere like plugins). If you don’t have access 
   to your admin area, use [FTP ](http://codex.wordpress.org/FTP_Clients), or your
   web-host’s cPanel or whatever file management application your host provides (
   no Dashboard access required). Navigate to /wp-content/themes/ and switch to 
   the default theme by renaming your current theme’s folder by adding “-old” to
   the end of the folder name. Alternately, you can remove other themes except the
   default theme. That will force your site to use it. – If all the above steps 
   do not resolve the issue, then try **MANUALLY** updating. Download a fresh copy
   of the WordPress .zip file to your computer, unzip it, and use that to copy up
   all files and folders **EXCEPT the wp-config.php file and the /wp-content/ directory.**
   You may need to delete the old wp-admin and wp-includes folders and files on 
   your server before uploading the new ones. Read the Manual Update directions 
   first. –**Backup: If you haven’t already done, always backup everything (including
   your database) before doing any actions, just in case something really goes wrong.**

Viewing 1 replies (of 1 total)

The topic ‘Array warning when adding new post’ is closed to new replies.

## Tags

 * [array](https://wordpress.org/support/topic-tag/array/)
 * [new-post](https://wordpress.org/support/topic-tag/new-post/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [t-p](https://wordpress.org/support/users/t-p/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/array-warning-when-adding-new-post/#post-6899262)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
