• Resolved levelzwo

    (@levelzwo)


    Hi,

    we want to use the plugin without using the Session_ID, so identification is handeled via Cookie. When deleting the Cookie and refreshing the page, the following error is triggered as an infinite loop (+40.000 lines in the debug.log) and generates an Internal Server Error. After a second refresh, the Error disappears. The interesting part is, that before the “Internal Server Error”-Message appears, the helpful-Cookie is being set.
    Error Message in the debug.log:
    PHP Warning: Cannot modify header information - headers already sent by (output started at /html/magazin/wp-content/themes/twentytwentyone/header.php:15) in /html/magazin/wp-content/plugins/helpful/core/helpers/class-user.php on line 111

    • This topic was modified 3 years, 6 months ago by levelzwo.
    • This topic was modified 3 years, 6 months ago by levelzwo.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Pixelbart

    (@pixelbart)

    @levelzwo

    Thank you for your feedback!

    Helpful throws an error there, which is why then also comes the message that the header has already been sent. However, line 111 in the specified file looks error-free to me. The only error that could appear there would be that the setcookie function doesn’t exist, which can’t be when the cookie is set.

    This is really strange. Which PHP version are you running then?

    Thread Starter levelzwo

    (@levelzwo)

    @pixelbart

    thanks for the fast response.

    we are runing PHP 7.4.3.

    Helpful-Version	4.4.31
    WordPress-Version	5.7.1
    PHP-Version	7.4.3
    Pro insgesamt	3
    Kontra insgesamt	0
    Feedback insgesamt	0
    DataTables-Version	1.10.20
    Charts.js-Version	2.9.3
    • This reply was modified 3 years, 6 months ago by levelzwo.
    Plugin Author Pixelbart

    (@pixelbart)

    @levelzwo

    Looks good so far. I just ran an update and fixed a bug. Maybe it works better now? Unfortunately, I can not reproduce the error.

    Thread Starter levelzwo

    (@levelzwo)

    I’ve updated but it still does this. I also could reproduce it on another installation following this steps:

    1. Clean install helpful
    2. Activate only for posts
    3. Hide helpful in content
    4. Disable Session (only Cookies)
    5. Add shortcode [helpful] to post
    6. View Post, Vote
    7. Go to Browser Inspector>Application>Cookies and delete all cookies
    8. Reload the page with the Post.

    Here a short screen-recording: https://files.levelzwo.com/helpful_magazin_server-error.mp4

    Plugin Author Pixelbart

    (@pixelbart)

    @levelzwo

    Thank you, with this I was able to reproduce the error and find out the cause. The error should be fixed with the latest version.

    Thread Starter levelzwo

    (@levelzwo)

    @pixelbart

    Thank you very much! Very pleased with the fast support you offering.

    Plugin Author Pixelbart

    (@pixelbart)

    @levelzwo

    No problem! Have a look at your website: Looks great! Stay as you are!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Deleting Cookie triggers Internal Server Err’ is closed to new replies.