Tagged: notice
- This topic has 7 replies, 2 voices, and was last updated 9 years, 2 months ago by
Steve.
-
AuthorPosts
-
-
October 26, 2012 at 6:04 am #345
kattagamiMemberHello,
I created a plugin which create two Custom Post Type.
When I activate my plugin, I’ve got this Notice :
Notice: Undefined index: days in /www/wordpress/wp-content/plugins/piklist/includes/class-piklist-cpt.php on line 122
With one CPT, no problem. With three CPT, I have two Notices, the same as above but for two of the three CPT.
This is the code of my two files in /my_plugin/parts/meta-boxes/
<?php
/*
Title: Presentation descriptions
Post Type: presentations
*/
<?php
/*
Title: Day descriptions
Post Type: days
*/ -
October 26, 2012 at 7:19 am #348
SteveKeymaster@kattagami– Can you post your code for REGISTERING the CPT’s?
-
October 26, 2012 at 8:28 am #349
-
October 26, 2012 at 1:35 pm #350
SteveKeymaster@kattagami– We really need to see more code so we can reproduce.
-
October 26, 2012 at 3:59 pm #351
kattagamiMemberOk I will come back with more code. I will try to reproduce the problem with a simplified version of my plugin. May be tomorrow otherwise in a week.
Thank you
-
October 27, 2012 at 11:33 am #352
kattagamiMemberThis is a very simplified version of my plugin.
My environnement:
WordPress 3.4.2
Piklist 0.6.6
Empty Data base
No other plugin activated apart from Piklist plugin.This is a simple plugin to use with 2010 theme of WP for example.
This plugin just creates two CPTs (CPT1 and CPT2) and two Pages.
When you activate this plugin, you must see this Notice:
Notice: Undefined index: cpt2 in xxx/www/wordpress/wp-content/plugins/piklist/includes/class-piklist-cpt.php on line 122
I hope this code could help you.
-
November 12, 2012 at 2:23 pm #393
SteveKeymaster@kattagami– Will be fixed in v0.6.7
-
November 12, 2012 at 5:09 pm #396
-
-
AuthorPosts
- You must be logged in to reply to this topic.