Title: [Plugin: Subpage Listing] Expected string error
Last modified: August 20, 2016

---

# [Plugin: Subpage Listing] Expected string error

 *  [David Radovanovic](https://wordpress.org/support/users/dpaule/)
 * (@dpaule)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-subpage-listing-expected-string-error/)
 * Warning: strpos() expects parameter 1 to be string, array given in /home/thewordp/
   public_html/wp-content/plugins/subpage-listing/subpage-listing.php on line 35
 * I’m using in template as:
 * `<?php txfx_wp_subpages(5, false, false, '<div id="subpages"><ul>', '</div></
   ul>', true); ?>`
 * Line 35 is:
 *  `if ( strpos($text, '<!--%subpages') !== false || is_array($text) || '' == $
   text || '' == $post->post_content || $post->post_content == "<br />\n" ) {`
 * Any ideas? Thanks for a great plugin.
 * [http://wordpress.org/extend/plugins/subpage-listing/](http://wordpress.org/extend/plugins/subpage-listing/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [jtma508](https://wordpress.org/support/users/jtma508/)
 * (@jtma508)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-subpage-listing-expected-string-error/#post-2914155)
 * We just started having tyhe same issue this week after the site having been up
   for a couple years. Any leads on the cause?
 *  [sven_bruun](https://wordpress.org/support/users/sven_bruun/)
 * (@sven_bruun)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-subpage-listing-expected-string-error/#post-2914187)
 * I also have this problem. Any suggestions?
 *  [jtma508](https://wordpress.org/support/users/jtma508/)
 * (@jtma508)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-subpage-listing-expected-string-error/#post-2914188)
 * I’ve gotten nowhere looking for a solution. If you find one PLEASE let me know.
   Very frustrating. One person walked me through going with the WP built-in subpage
   listing function but it doesn’t work as they said it would.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘[Plugin: Subpage Listing] Expected string error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/subpage-listing.svg)
 * [Subpage Listing](https://wordpress.org/plugins/subpage-listing/)
 * [Support Threads](https://wordpress.org/support/plugin/subpage-listing/)
 * [Active Topics](https://wordpress.org/support/plugin/subpage-listing/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/subpage-listing/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/subpage-listing/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [jtma508](https://wordpress.org/support/users/jtma508/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-subpage-listing-expected-string-error/#post-2914188)
 * Status: not resolved