• Resolved flicker177

    (@flicker177)


    Hi Jacob,

    On 4/10/2026 I started getting an error message every 15 minutes that references WPPA. I have my own cron system for WordPress that runs every 15 minutes. In my cron logs I notice the only thing referencing WPPA is a wppa-cleanup function that runs once an hour. Here’s a snippet of the error log:

    [25-Apr-2026 09:00:46 UTC] PHP Warning: Cannot modify header information - headers already sent in /home/billtho1/public_html/bt/wp-content/plugins/wp-photo-album-plus/wppa-wpdb-insert.php on line 56
    [25-Apr-2026 09:15:40 UTC] PHP Warning: Cannot modify header information - headers already sent in /home/billtho1/public_html/bt/wp-content/plugins/wp-photo-album-plus/wppa-wpdb-insert.php on line 56
    [25-Apr-2026 09:30:37 UTC] PHP Warning: Cannot modify header information - headers already sent in /home/billtho1/public_html/bt/wp-content/plugins/wp-photo-album-plus/wppa-wpdb-insert.php on line 56
    [25-Apr-2026 09:45:34 UTC] PHP Warning: Cannot modify header information - headers already sent in /home/billtho1/public_html/bt/wp-content/plugins/wp-photo-album-plus/wppa-wpdb-insert.php on line 56
    [25-Apr-2026 10:00:39 UTC] PHP Warning: Cannot modify header information - headers already sent in /home/billtho1/public_html/bt/wp-content/plugins/wp-photo-album-plus/wppa-wpdb-insert.php on line 56
    [25-Apr-2026 10:15:35 UTC] PHP Warning: Cannot modify header information - headers already sent in /home/billtho1/public_html/bt/wp-content/plugins/wp-photo-album-plus/wppa-wpdb-insert.php on line 56
    [25-Apr-2026 10:30:37 UTC] PHP Warning: Cannot modify header information - headers already sent in /home/billtho1/public_html/bt/wp-content/plugins/wp-photo-album-plus/wppa-wpdb-insert.php on line 56
    [25-Apr-2026 10:45:40 UTC] PHP Warning: Cannot modify header information - headers already sent in /home/billtho1/public_html/bt/wp-content/plugins/wp-photo-album-plus/wppa-wpdb-insert.php on line 56
    [25-Apr-2026 11:00:50 UTC] PHP Warning: Cannot modify header information - headers already sent in /home/billtho1/public_html/bt/wp-content/plugins/wp-photo-album-plus/wppa-wpdb-insert.php on line 56
    [25-Apr-2026 11:15:37 UTC] PHP Warning: Cannot modify header information - headers already sent in /home/billtho1/public_html/bt/wp-content/plugins/wp-photo-album-plus/wppa-wpdb-insert.php on line 56
    [25-Apr-2026 11:30:36 UTC] PHP Warning: Cannot modify header information - headers already sent in /home/billtho1/public_html/bt/wp-content/plugins/wp-photo-album-plus/wppa-wpdb-insert.php on line 56
    [25-Apr-2026 11:45:37 UTC] PHP Warning: Cannot modify header information - headers already sent in /home/billtho1/public_html/bt/wp-content/plugins/wp-photo-album-plus/wppa-wpdb-insert.php on line 56
    [25-Apr-2026 12:00:43 UTC] PHP Warning: Cannot modify header information - headers already sent in /home/billtho1/public_html/bt/wp-content/plugins/wp-photo-album-plus/wppa-wpdb-insert.php on line 56
    [25-Apr-2026 12:15:33 UTC] PHP Warning: Cannot modify header information - headers already sent in /home/billtho1/public_html/bt/wp-content/plugins/wp-photo-album-plus/wppa-wpdb-insert.php on line 56
    [25-Apr-2026 12:30:35 UTC] PHP Warning: Cannot modify header information - headers already sent in /home/billtho1/public_html/bt/wp-content/plugins/wp-photo-album-plus/wppa-wpdb-insert.php on line 56
    [25-Apr-2026 12:45:44 UTC] PHP Warning: Cannot modify header information - headers already sent in /home/billtho1/public_html/bt/wp-content/plugins/wp-photo-album-plus/wppa-wpdb-insert.php on line 56
    [25-Apr-2026 13:00:44 UTC] PHP Warning: Cannot modify header information - headers already sent in /home/billtho1/public_html/bt/wp-content/plugins/wp-photo-album-plus/wppa-wpdb-insert.php on line 56
    [25-Apr-2026 13:15:34 UTC] PHP Warning: Cannot modify header information - headers already sent in /home/billtho1/public_html/bt/wp-content/plugins/wp-photo-album-plus/wppa-wpdb-insert.php on line 56
    [25-Apr-2026 13:30:38 UTC] PHP Warning: Cannot modify header information - headers already sent in /home/billtho1/public_html/bt/wp-content/plugins/wp-photo-album-plus/wppa-wpdb-insert.php on line 56
    [25-Apr-2026 13:45:39 UTC] PHP Warning: Cannot modify header information - headers already sent in /home/billtho1/public_html/bt/wp-content/plugins/wp-photo-album-plus/wppa-wpdb-insert.php on line 56

    Any idea what might be causing this? Thanks!

    –Bill

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Jacob N. Breetvelt

    (@opajaap)

    I will investigate this

    Thread Starter flicker177

    (@flicker177)

    Thanks! Additional info:

    WordPress 6.9.4

    php 8.3.30

    mariadb 10.5.26

    –Bill

    Thread Starter flicker177

    (@flicker177)

    I looked at this a bunch more, its really strange. I doubt it’s WPPA’s fault. I tried de-activating all the plugins in the site except WPPA. That made no difference. I noticed that the error occurred every time my WordPress cron ran (cron job) but that nothing related to WPPA ran every 15 minutes.

    The file referenced in the error message and line 56 don’t look like they have any relation to the error.

    The cron job used curl to access the file wp-cron.php by https every 15 minutes. I found that if I used php to access the wp-cron.php file it ran fine and the error didn’t occur.

    On a local staging machine running a setup pretty similar to my host, the cron job with curl runs fine and generates no errors. I don’t know what’s different from my host. Interestingly I can’t get the cron to work on that machine using php but the version using curl works fine. Maybe that’s a permission issue, I haven’t spent much time on it.

    Anyway I hope this helps and I seem to be error free now.

    –Bill

    Thread Starter flicker177

    (@flicker177)

    Oooops…It seems my cron using php rather than curl does not work. So I’m back to the curl version and generating errors every 15 minutes. I’ll keep looking…

    I do note that if I de-activate WPPA the error message goes away so I guess WPPA is actually involved but I don’t see how.

    –Bill

    • This reply was modified 1 month ago by flicker177. Reason: typo
    • This reply was modified 1 month ago by flicker177.
    Thread Starter flicker177

    (@flicker177)

    I’m getting closer. The problem is indeed at line 56 of the file wppa-wpdb-insert.php. Specifically this section:

    if ( $bret ) { setcookie( ‘wppa_session_id’, $sid, time() + 3600 ); return $wpdb->insert_id; }

    If I comment this out the error message stops. I don’t see any adverse effect on wppa as I’m using it. I read that the setcookie function can cause this issue but I don’t know enough about it to understand. The whole issue as I understand it is when php is outputting an html page it can send headers with meta info to the server before the body of the page. Once you’ve sent any of the body you can’t send a header again.

    Anyway hope this helps. Thanks!

    –Bill

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Yes, that is also my fix. It looks like your cron implementation generates an error when a cookie is set. For the program it is not an issue to comment it out.
    The same fix will be in the nxt release, so, problem closed.
    Thanx for thinking along with me…

    Thread Starter flicker177

    (@flicker177)

    Very good! Thanks for the support! Case closed…

    –Bill

    Thread Starter flicker177

    (@flicker177)

    One last thing: My cron setup is nothing unusual. All it does is use curl to hit the file wp-cron.php which runs cron processes when they’re due. If I use my WordPress cron manager I can run each item in the schedule manually with no error, If I manually run wp-cron.php it always generates the error. Anyway, the fix works so I’m happy 😉

    –Bill

    • This reply was modified 1 month ago by flicker177.
Viewing 8 replies - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.