xytroyzy / wordpress-custom-content-type-manager

Automatically exported from code.google.com/p/wordpress-custom-content-type-manager
0 stars 0 forks source link

Warning: in_array() shows up on Custom Post Type archives page when archives are enabled #476

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
BEFORE YOU FILE: Are you using the latest version of the CCTM?  Please
check http://wordpress.org/extend/plugins/custom-content-type-manager/

What steps will reproduce the problem? (Be specific enough so that someone
else can make the plugin fail for themselves. Remember: the issue can't
be fixed if it can't be reproduced!)

1. creating custom post type with a few different fields
2. creating archives-custom-post-type template based on the parent-theme 
(thematic) in a child theme
3. enable archives in custom post type archives 

What is the expected output? What do you see instead?

I expect to just see the main menu, instead I see: 

Warning: in_array() [function.in-array]: Wrong datatype for second argument in 
/home/content/28/10426428/html/[mysite]/wp-includes/nav-menu-template.php on 
line 425

....one for each menu item. 

The menu appears underneath the error messages. 

Does the problem continue if you disable all other plugins? (plugin
conflicts cause a LOT of problems, so please isolate the problem)

Yes. 

Please copy and paste the system information that appears in a yellow
textarea when you click on "Report a Bug" on any CCTM admin screen (this
includes the version of the
plugin, the version of PHP, the version of MySQL, a list of other active
plugins etc.):

*SYSTEM INFO* 
------------------------ 
Plugin Version: 0.9.7-pl
WordPress Version: 3.5.1
PHP Version: 5.2.17
MySQL Version: 5.0.96-log
Server OS: Linux
------------------------ 
ACTIVE PLUGINS: 
 * Contact Form 7 v.3.3.3 [http://contactform7.com/]
 * Jetpack by WordPress.com v.2.2.1 [http://wordpress.org/extend/plugins/jetpack/]
 * Meteor Slides v.1.5.1 [http://www.jleuze.com/plugins/meteor-slides]
 * Mingle Forum v.1.0.34 [http://cartpauj.com/projects/mingle-forum-plugin]
 * MP Tweet List v.2.0 [http://MikesPickzWS.com/wordpress-plugins/mp-tweet-list]
 * NextGEN Gallery v.1.9.12 [http://www.nextgen-gallery.com/]
 * Profile Builder v.1.1.47 [http://www.cozmoslabs.com/2011/04/12/wordpress-profile-builder-a-front-end-user-registration-login-and-edit-profile-plugin/]
 * Show Menu Shortcode v.1.0 [http://www.mokamedianyc.com/dev/show-menu-shortcode/]
 * Sitemap v.4.2 [http://wordpress.org/extend/plugins/page-list/]
 * Blackbird Pie v.0.5.3 [http://themergency.com/plugins/twitter-blackbird-pie/]
 * Ultimate CMS v.1.0.5 [http://xydac.com/ultimate-cms/]
 * Ultimate Coming Soon Page v.1.8.0 [http://www.seedprod.com]
------------------------ 
CURRENT THEME: Arc System Works Theme v.1.0 http://thematictheme.com/

Original issue reported on code.google.com by cherry.f...@gmail.com on 4 Apr 2013 at 12:03

GoogleCodeExporter commented 8 years ago

Original comment by ever...@fireproofsocks.com on 11 May 2015 at 4:50