Title: PDb_List_Query::_clear_query_session
Last modified: February 12, 2017

---

# PDb_List_Query::_clear_query_session

 *  Resolved [tetontrekker](https://wordpress.org/support/users/tetontrekker/)
 * (@tetontrekker)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/pdb_list_query_clear_query_session/)
 * Hello Roland,
 * I just so happened to be debugging my site when I loaded the latest version of
   PDb.
 * Prior to that I wasn’t getting any errors from PDb on the log but I did have 
   a warning in WP Debug mode. After the update I’m getting multiple errors on my
   log.
 * I’m getting this error for every PDb short code instance:
    PDb_List_Query::_clear_query_session
 * See this page [http://jhcband.org/ourmembers/](http://jhcband.org/ourmembers/)
 * It needed to be sorted in Score Order so I have a custom template short code 
   for each section. The birthdays in the right are called with do_shortcode. The
   birthdays in the bottom widget are also called with do_shortcode but also in 
   an iFrame. I deactivated both those, cleared my log, and refreshed the page. 
   I got the PDb_List_Query::_clear_query_session on my error log exactly as many
   times as I have a short code on that page.
 * Other errors and warnings..
    When I started debugging on 2/3 I had this warning:
   Warning: session_start(): Cannot send session cache limiter – headers already
   sent (output started at —/plugins/omni-secure-files/omni-secure-files.php:280)
   in —/plugins/participants-database/classes/PDb_Session.class.php on line 71
 * I deactivated omni-secure-files (it was throwing a bunch of warnings).
 * On 2/11, before I updated the PDb plug in I was still getting this warning (I
   included 2 warnings I’m working on that had the same line number). And I’m still
   getting this warning after the update:
 * Notice: is_archive was called incorrectly. Conditional query tags do not work
   before the query is run. Before then, they always return false. Please see Debugging
   in WordPress for more information. (This message was added in version 3.1.0.)
   in —/wp-includes/functions.php on line 4136
 * Notice: is_home was called incorrectly. Conditional query tags do not work before
   the query is run. Before then, they always return false. Please see Debugging
   in WordPress for more information. (This message was added in version 3.1.0.)
   in —/wp-includes/functions.php on line 4136
 * Warning: session_start(): Cannot send session cache limiter – headers already
   sent (output started at —/wp-includes/functions.php:4136) in —/plugins/participants-
   database/classes/PDb_Session.class.php on line 71
 * Thank you for any help on this.
    Julie

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

 *  Thread Starter [tetontrekker](https://wordpress.org/support/users/tetontrekker/)
 * (@tetontrekker)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/pdb_list_query_clear_query_session/#post-8796681)
 * Update: When I deactivate the PDb plug in the “Notice: is_archive” & “Notice:
   is_home go away”.
    -  This reply was modified 9 years, 3 months ago by [tetontrekker](https://wordpress.org/support/users/tetontrekker/).
 *  Plugin Author [Roland Barker](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/pdb_list_query_clear_query_session/#post-8796812)
 * OK, thanks for this, I made a mistake and left a debugging statement in the plugin.
   This is on line 1169 of classes/PDb_List_Query.class.php which can be safely 
   removed or commented out.
 * I’m issuing an update today that fixes this and a couple of other issues.
 * Your two warnings about is_archive() and is_home() being called incorrectly, 
   this is due to another plugin or perhaps your theme or a custom theme template.
   Participants Database doesn’t use these functions.
 * You final error is also not directly due to Participants Database, another plugin
   or perhaps your theme is calling the session_start() function incorrectly, it
   is necessary to check that headers have not already been sent before calling 
   that function.
 *  Thread Starter [tetontrekker](https://wordpress.org/support/users/tetontrekker/)
 * (@tetontrekker)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/pdb_list_query_clear_query_session/#post-8796868)
 * OK, Thank You!
 *  Thread Starter [tetontrekker](https://wordpress.org/support/users/tetontrekker/)
 * (@tetontrekker)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/pdb_list_query_clear_query_session/#post-8817024)
 * Just in case someone finds this in a search; The two warnings about is_archive()
   and is_home() was caused by YOP Poll. It was also causing an annoying server 
   error, I’ll put in a bug report.
    -  This reply was modified 9 years, 3 months ago by [tetontrekker](https://wordpress.org/support/users/tetontrekker/).

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

The topic ‘PDb_List_Query::_clear_query_session’ is closed to new replies.

 * ![](https://ps.w.org/participants-database/assets/icon-256x256.jpg?rev=1389807)
 * [Participants Database](https://wordpress.org/plugins/participants-database/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/participants-database/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/participants-database/)
 * [Active Topics](https://wordpress.org/support/plugin/participants-database/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/participants-database/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/participants-database/reviews/)

## Tags

 * [PDB](https://wordpress.org/support/topic-tag/pdb/)

 * 4 replies
 * 2 participants
 * Last reply from: [tetontrekker](https://wordpress.org/support/users/tetontrekker/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/pdb_list_query_clear_query_session/#post-8817024)
 * Status: resolved