• Great plugin, but is broken under PHP 5.4+ as the plugin attempts to pass a string in as an array (previous PHP versions were more forgiving and ignored the type error).

    If you’re getting the “Warning: Illegal string offset ‘list_only’…” error, a quick and dirty fix is to manually edit the plugin and insert the following code line into summary-child-pages.php on line 56 (inside the summary_child_pages function, right before the $list_only = $atts['list_only']; line):

    /* ---------------------------------------------------*/
      /* Version v1.0.0: Patch for error under PHP 5.4+ to   */
      /*  address the "Warning: Illegal string offset        */
      /* 'list_only'" issue. An array (not a string) is      */
      /* expected, so check & convert $atts string to array. */
      /* ----------------------------------------------------*/
      if (!is_array($atts)) {$atts=explode(',',$atts,0);}
      /* ----------------------------------------------------*/

    This checks to see if $atts is not an array, and converts it to one if so. If anyone has a better solution feel free to post it ??

    To the developer: Thanks for making such a useful little plugin, and if possible could you please fix this in the next update so it works properly with PHP 5.4+? Thanks!

  • The topic ‘Great plugin but broken in PHP 5.4 – here's a quick fix’ is closed to new replies.