• Resolved jimk1416

    (@jimk1416)


    The spam log is no longer showing the blocked text correctly.
    This seems to have started around Nov 12 which would be before the latest update. Any ideas?

    It used to read as:

    2023-11-11 10:38:19 :: Visitors IP Address: 23.236.166.15
    The following text is blocked by plugin’s rules:
    hi, (followed by the rest of the text)

    Now it reads:

    2023-11-13 00:33:39 :: Visitors IP Address: 23.230.42.24
    The following [TEXT] is blocked by the plugin’s rules:
    But there is no text.

    I also noticed in the error logs, when it does block something it throws the following warning:
    PHP Warning: Undefined variable $lower_value in /wp-content/plugins/wp-contact-form-7-spam-blocker/frontend/class-front.php on line 101

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter jimk1416

    (@jimk1416)

    I think the problem might be the value was not updated on line 101 to match the changes made in the other lines in the file /wp-contact-form-7-spam-blocker/frontend/class-front.php

    Line 101 currently reads:

    $this->spcf_write_log("\tVisitors IP Address: ".$ip."\nThe following [TEXT] is blocked by the plugin's rules: \n".$lower_value."\n", $post_id);

    I think it should read:

    $this->spcf_write_log("\tVisitors IP Address: ".$ip."\nThe following [TEXT] is blocked by the plugin's rules: \n".$value_to_lower."\n", $post_id);
    

    If I make that change I no longer get the warning and the SPAM log records the correct value submitted by the user.
    Can this fix be implemented and the Version be updated?
    Thanks

    Plugin Author nysl

    (@nysl)

    Please check the latest version of the plugin.

    Thank you.

    NYSL

    Plugin Author nysl

    (@nysl)

    Solved

    Thread Starter jimk1416

    (@jimk1416)

    Thanks.
    Looks good.
    Quick question.
    Is there a way to clear the log of all previous entries?

    Plugin Author nysl

    (@nysl)

    New version will have a lot of new features (coming soon)

    For some reason I didn’t get an email from wordpress when you reported the issue (weird), I saw this topic by luck today.

    Thanks,

    NYSL

    Thread Starter jimk1416

    (@jimk1416)

    Sounds great. Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Missing Text in log’ is closed to new replies.