Viewing 2 reply threads
  • Author
    Posts
    • #7920
      daveslaughter
      Participant

      Piklist 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:405

      You 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.

    • #8370
      cyclissmo
      Member

      Getting the exact same message.

      Piklist 9.9.12

    • #8419
      bimbaim
      Participant

      I just assign value in-line as int.

      `return (int)$a[‘args’][‘order’] – (int)$b[‘args’][‘order’];

Viewing 2 reply threads
  • You must be logged in to reply to this topic.