• Resolved tetontrekker

    (@tetontrekker)


    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 https://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

    (@tetontrekker)

    Update: When I deactivate the PDb plug in the “Notice: is_archive” & “Notice: is_home go away”.

    • This reply was modified 7 years, 9 months ago by tetontrekker.
    Plugin Author xnau webdesign

    (@xnau)

    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

    (@tetontrekker)

    OK, Thank You!

    Thread Starter tetontrekker

    (@tetontrekker)

    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 7 years, 9 months ago by tetontrekker.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PDb_List_Query::_clear_query_session’ is closed to new replies.