WordPress.org

Ready to get started?Download WordPress

Forums

SI CAPTCHA Anti-Spam
[resolved] Conflict with Statrix plugin (3 posts)

  1. KhunCha
    Member
    Posted 4 years ago #

    Hi,

    I'm having some problems getting SI Captcha and Statrix (http://wordpress.org/extend/plugins/statrix/) to work together.

    The Statrix Graphics are only showing up when I disable SI Captcha.
    And I cannot Exclude Users in Statrix either.

    Also see: http://wordpress.org/support/topic/410697?replies=1

    Don't know which plugin is causing the problem, but I hope it can be fixed cos I love both of them.

    Thanks and best regards,

    Khun Cha

    http://wordpress.org/extend/plugins/si-captcha-for-wordpress/

  2. Mike Challis
    Member
    Plugin Author

    Posted 4 years ago #

    Please try this:
    edit the file statrix.js.php found in the resources folder.

    This is a PHP file.
    Take a look and note that the opening tag <?php is not at the top of the file where it should be. Move it to the top. Save the file and test if the conflict is gone. If it fixes the conflict, please notify the author of Statrix. Also reply here to let me know.

    Here is what happened:
    My plugin uses the PHP session_start() function.
    http://php.net/manual/en/function.session-start.php
    The session_start is required for the captcha-image to function.
    In PHP coding rules, session_start() must be processed before any HTML
    output or you might get a warning "Warning: session_start()
    [function.session-start]: Cannot send session cookie - headers already sent". The error may or may not be displayed because sometimes PHP error warnings are turned off.

    Some plugins with non compliant coding will output some HTML or even whitespace prematurely before the HTML doctype. This can be the direct cause of session_start error and the captcha cookie session not working.

  3. KhunCha
    Member
    Posted 4 years ago #

    Hi Mike, sorry for the late reply.

    It works :-)

    The Statrix graphics are back and I'm able to Exclude Users again as well.

    Thanks for helping me out.

    Will write a post on the Statrix page too.

    Best regards,

    Khun Cha

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic