I have a similar problem. when I put child_of=# in the wp_list_pages, I get that error on line 368. Also, the sort_column option simply does not work for me. Other options have worded.
For me, wp_list_pages is fine after ?php the_content(), it is just the child_of that causes a bug.