The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

MarketPress - WordPress eCommerce
[resolved] function in_array: Wrong data type for second argument (4 posts)

  1. linux4me2
    Posted 3 years ago #

    I'm using Marketpress Lite 2.5.1 on a WP 3.5.1 site in a Twenty-Ten theme.

    When a user clicks a Category tag in a product listing, multiple warnings like this are thrown:
    [20-Mar-2013 18:30:59] PHP Warning: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument in /home/<my server user name>/public_html/wp-includes/post-template.php on line 1039

    This does not occur when the user clicks Category tags in posts.

    It looks like the same issue discussed here, where they say a fix was released a couple of months ago in version 2.8. It appears that is the Pro version. Is there a fix in an upcoming version of Marketpress Lite? Is there a workaround in the meantime?


  2. tom.eagles
    Posted 3 years ago #


    Hi There, a new version is on the way it was delayed slightly to incorportate some last minute new features.



  3. federicoh
    Posted 3 years ago #

    Same issue here error showing on some categories

  4. federicoh
    Posted 3 years ago #

    This is what worked for me:

    I didn't have a custom menu, I recreated my menu in Appearance - Menu, just like the one I used to have and I don't get any more errors messages. Good luck

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • MarketPress - WordPress eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic