Title: Warning: in_array() [function.in-array]: Wrong datatype for first argument in ..
Last modified: August 19, 2016

---

# Warning: in_array() [function.in-array]: Wrong datatype for first argument in ..

 *  [Fabrizio Pivari](https://wordpress.org/support/users/pivari/)
 * (@pivari)
 * [16 years ago](https://wordpress.org/support/topic/warning-in_array-functionin-array-wrong-datatype-for-first-argument-in/)
 * I’ve just installed to test 3.0 beta 2 and everything seems to work good but 
   when I want to see a post e.g.
    [http://www.pivari.com/video/giudice-di-pace-online-lo-stato-del-procedimento/](http://www.pivari.com/video/giudice-di-pace-online-lo-stato-del-procedimento/)
   I can see correctly the page but the error is Warning: in_array() [function.in-
   array]: Wrong datatype for first argument in /usr/local/share/doc/vhost/pivari.
   com/httpdocs/wp-includes/canonical.php on line 180
 * Suggestion?

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

 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [16 years ago](https://wordpress.org/support/topic/warning-in_array-functionin-array-wrong-datatype-for-first-argument-in/#post-1495796)
 * Do you get this error using another theme?
 *  Thread Starter [Fabrizio Pivari](https://wordpress.org/support/users/pivari/)
 * (@pivari)
 * [16 years ago](https://wordpress.org/support/topic/warning-in_array-functionin-array-wrong-datatype-for-first-argument-in/#post-1495906)
 * I’ve tried with Arthemia 1.0, iBlue, WordPress Classic 1.5 and Twenty Ten 1.0
   and I have the same error.
 * Fabrizio
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [16 years ago](https://wordpress.org/support/topic/warning-in_array-functionin-array-wrong-datatype-for-first-argument-in/#post-1495921)
 * 1) Are you sure you uploaded everything when you upgraded?
 * 2) What plugins are you using?
 *  Thread Starter [Fabrizio Pivari](https://wordpress.org/support/users/pivari/)
 * (@pivari)
 * [16 years ago](https://wordpress.org/support/topic/warning-in_array-functionin-array-wrong-datatype-for-first-argument-in/#post-1495922)
 * 1) I’ve deleted wp-admin and wp-includes and I’ve copy over the new installation.
   Then I made upgrade db
 * 2) I had the same problem with my site [http://www.payperaction.us/](http://www.payperaction.us/)
   
   This is a “test” site and has less plugins
 * The plugins I use are
 * All in One SEO Pack
    Contact Form 7 Google XML Sitemaps One Click Plugin Updater
   Really Simple CAPTCHA WordPress Database Backup
 * I re-install 2.9.2 and everything works good.
    If you need I can re-install 3.0
   beta2 and give you an admin user to see inside.
 * fabrizio (at) pivari dot com
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [16 years ago](https://wordpress.org/support/topic/warning-in_array-functionin-array-wrong-datatype-for-first-argument-in/#post-1495925)
 * That’s really weird. I have two sites on 3.0-beta2 without errors.
 * Can you try the latest nightly? [http://wordpress.org/download/nightly/](http://wordpress.org/download/nightly/)
   Maybe they’ve fixed it.
 *  Thread Starter [Fabrizio Pivari](https://wordpress.org/support/users/pivari/)
 * (@pivari)
 * [16 years ago](https://wordpress.org/support/topic/warning-in_array-functionin-array-wrong-datatype-for-first-argument-in/#post-1495926)
 * The latest nightly doesn’t fix the problem
    [http://www.payperaction.us/maleva/distribuzione-comunicati-stampa/](http://www.payperaction.us/maleva/distribuzione-comunicati-stampa/)
 *  Thread Starter [Fabrizio Pivari](https://wordpress.org/support/users/pivari/)
 * (@pivari)
 * [16 years ago](https://wordpress.org/support/topic/warning-in_array-functionin-array-wrong-datatype-for-first-argument-in/#post-1495927)
 * I deactivate every plugin and use a default thema and nothing changes.
    I think
   I was wrong in the update o there is something strange in the db.
 * I’ve php 4 and old mysql.
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [16 years ago](https://wordpress.org/support/topic/warning-in_array-functionin-array-wrong-datatype-for-first-argument-in/#post-1495928)
 * WP needs PHP 4.3 and MySQL 4.1.2
 * Check if you have those?
 *  [Aaron Ross Powell](https://wordpress.org/support/users/aaronpowell/)
 * (@aaronpowell)
 * [16 years ago](https://wordpress.org/support/topic/warning-in_array-functionin-array-wrong-datatype-for-first-argument-in/#post-1495935)
 * I’ve ran into exactly the same problem. Weird thing was, I’m running 3.0 on two
   different sites and I see it on one, but not the other. Then I realized that 
   my server was setup to use PHP 4 on one domain and PHP 5 on the other. It was
   the site running 4 that had the error message. I switched it to 5 and the message
   went away.
 *  Thread Starter [Fabrizio Pivari](https://wordpress.org/support/users/pivari/)
 * (@pivari)
 * [16 years ago](https://wordpress.org/support/topic/warning-in_array-functionin-array-wrong-datatype-for-first-argument-in/#post-1495948)
 * I can’t switch to PHP 5 🙁
    Can you fully support PHP 4?
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [16 years ago](https://wordpress.org/support/topic/warning-in_array-functionin-array-wrong-datatype-for-first-argument-in/#post-1495949)
 * Which version of 4 are you using?
 * If it’s **less than** 4.3, you’re out of luck.
 *  Thread Starter [Fabrizio Pivari](https://wordpress.org/support/users/pivari/)
 * (@pivari)
 * [16 years ago](https://wordpress.org/support/topic/warning-in_array-functionin-array-wrong-datatype-for-first-argument-in/#post-1495962)
 * ISP tells me php 4.4!
 * 🙂
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [16 years ago](https://wordpress.org/support/topic/warning-in_array-functionin-array-wrong-datatype-for-first-argument-in/#post-1495963)
 * Okay, that should work, and if not, it should ping when you try and upgrade.
 * Raise an issue in the Trac: [http://codex.wordpress.org/Reporting_Bugs](http://codex.wordpress.org/Reporting_Bugs)
 *  [Peter Westwood](https://wordpress.org/support/users/westi/)
 * (@westi)
 * [16 years ago](https://wordpress.org/support/topic/warning-in_array-functionin-array-wrong-datatype-for-first-argument-in/#post-1495970)
 * I’ve committed what I believe is a fix for this to make the new code PHP4 compatible
   and this will be available in the next nightly build to test out.
 * The version number for that build will be 3.0-beta2-14697
 * Please report back on the ticket how you get along with this.
 * Cheers
 *  [Usman Latif](https://wordpress.org/support/users/fitalnamsu/)
 * (@fitalnamsu)
 * [16 years ago](https://wordpress.org/support/topic/warning-in_array-functionin-array-wrong-datatype-for-first-argument-in/#post-1495977)
 * I had the same problem. Its now resolved after upgrading to the latest beta version.
 * Thanks Westi.

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

The topic ‘Warning: in_array() [function.in-array]: Wrong datatype for first argument
in ..’ is closed to new replies.

 * In: [Alpha/Beta/RC](https://wordpress.org/support/forum/alphabeta/)
 * 15 replies
 * 5 participants
 * Last reply from: [Usman Latif](https://wordpress.org/support/users/fitalnamsu/)
 * Last activity: [16 years ago](https://wordpress.org/support/topic/warning-in_array-functionin-array-wrong-datatype-for-first-argument-in/#post-1495977)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
