- This topic has 2 replies, 3 voices, and was last updated 4 years, 3 months ago by
bimbaim.
-
AuthorPosts
-
-
April 8, 2017 at 11:10 am #7920
daveslaughterParticipantPiklist 0.9.9.12
For any custom post type, with a custom taxonomy with ‘show_ui’ => true, then you get the following error when you go to the “Add New” page:
Warning: A non-numeric value encountered in C:\sites\pklist\public\wp-content\plugins\piklist\includes\class-piklist.php on line 2009
Call Stack
# Time Memory Function Location
1 0.0160 378160 {main}( ) …\post-new.php:0
2 1.4042 34314696 include( ‘C:\sites\pklist\public\wp-admin\edit-form-advanced.php’ ) …\post-new.php:85
3 1.8995 34743344 require_once( ‘C:\local\sites\centurion\public\wp-admin\admin-header.php’ ) …\edit-form-advanced.php:473
4 2.1568 35269720 do_action( ) …\admin-header.php:142
5 2.1569 35270096 WP_Hook->do_action( ) …\plugin.php:453
6 2.1569 35270096 WP_Hook->apply_filters( ) …\class-wp-hook.php:323
7 2.1803 35206424 Piklist_Meta::sort_meta_boxes( ) …\class-wp-hook.php:298
8 2.1803 35206520 uasort ( ) …\class-piklist-meta.php:405
9 2.1803 35206896 Piklist::sort_by_args_order( ) …\class-piklist-meta.php:405You can recreate by activating demos, then try to add a new Piklist Demo.
I did a little digging and it seems [‘args’][‘order’] for the submitdiv meta box is ‘submitdiv’ and not a number.
-
August 31, 2017 at 1:11 pm #8370
cyclissmoMemberGetting the exact same message.
Piklist 9.9.12
-
October 23, 2017 at 5:59 am #8419
bimbaimParticipantI just assign value in-line as int.
`return (int)$a[‘args’][‘order’] – (int)$b[‘args’][‘order’];
-
-
AuthorPosts
- You must be logged in to reply to this topic.