October 26, 2012 at 6:04 am #345
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/
Title: Presentation descriptions
Post Type: presentations
Title: Day descriptions
Post Type: days
October 26, 2012 at 7:19 am #348
October 26, 2012 at 8:28 am #349
October 26, 2012 at 1:35 pm #350
October 26, 2012 at 3:59 pm #351
Ok 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.
October 27, 2012 at 11:33 am #352
This is a very simplified version of my plugin.
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
November 12, 2012 at 5:09 pm #396
- You must be logged in to reply to this topic.