Viewing 5 reply threads
  • Author
    Posts
    • #492
      Miguel
      Member

      Install piklist (base plugin)
      activate it
      go media library
      edit
      save
      Warning: array_merge(): Argument #2 is not an array in ……/wp-includes/post.php on line 2743

      deactivate plugin
      same process
      no error or warning.

    • #493
      Steve
      Keymaster

      @Miguel– Thanks! We’ll look into this.

    • #494
      roger
      Member

      same here, but two error msgs:
      Warning: array_merge() [function.array-merge]: Argument #2 is not an array in …/wp-includes/post.php on line 2743
      Warning: Cannot modify header information – headers already sent by (output started at …/wp-includes/post.php:2743) in …/wp-includes/pluggable.php on line 881

    • #500
      James Mc
      Member

      Error is in process_form function in file includes/class-piklist-media.php

      The fix is to return the $post variable.

      public static function process_form($post, $attachment)
      {
      piklist_form::process_form(array(
      'post' => $post['ID']
      ));
      return $post;
      }

      See the WP Codex

      Note that the filter function must return the $post array after it is finished processing.

    • #502
      Steve
      Keymaster

      @James_Mc– Thanks for the help. Works perfect.

      Will release fix shortly… cleaning up a few others.

    • #515
      Steve
      Keymaster

      @James_Mc– Fixed in v0.7.0. Thanks again!

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