• Hi,

    I’m using shared hosting, wordpress 6.1.1 on PHP 8.1.13, Titan Anti-spam & Security plugin version 7.3.4. I get this warning on the top of all wp-admin pages.

    I switched off all plugins and enabled one by one to find the source of that warning and it’s Titan Anti-spam.

    Warning: define(): Argument #3 ($case_insensitive) is ignored since declaration of case-insensitive constants is no longer supported in /usr/local/share/pear/File.php on line 35 Warning: define(): Argument #3 ($case_insensitive) is ignored since declaration of case-insensitive constants is no longer supported in /usr/local/share/pear/File.php on line 42 Warning: define(): Argument #3 ($case_insensitive) is ignored since declaration of case-insensitive constants is no longer supported in /usr/local/share/pear/File.php on line 49 Warning: define(): Argument #3 ($case_insensitive) is ignored since declaration of case-insensitive constants is no longer supported in /usr/local/share/pear/File.php on line 55 Warning: define(): Argument #3 ($case_insensitive) is ignored since declaration of case-insensitive constants is no longer supported in /usr/local/share/pear/File.php on line 60 Warning: define(): Argument #3 ($case_insensitive) is ignored since declaration of case-insensitive constants is no longer supported in /usr/local/share/pear/File.php on line 65 Warning: define(): Argument #3 ($case_insensitive) is ignored since declaration of case-insensitive constants is no longer supported in /usr/local/share/pear/File.php on line 70 Warning: define(): Argument #3 ($case_insensitive) is ignored since declaration of case-insensitive constants is no longer supported in /usr/local/share/pear/File.php on line 75

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Temyk

    (@webtemyk)

    Hello.

    in /usr/local/share/pear/File.php on line 35
    The log says that there are errors in one of the outdated libraries for PHP. This error has nothing to do with the plugin.

    Contact the hosting support for clarification.

    Thread Starter matdev

    (@matdev)

    Thanks Temyk!

    It seems to be a bug in the incorrect use of require_once in anti-spam/includes/scanner/classes/scanner/boot.php
    When PEAR FILE package is installed (https://pear.php.net/package/File) require_once includes the File.php from Pear instead of anti-spam/includes/scanner/classes/scanner/File.php file.

    Fix should be something like this (similar is used in anti-spam/libs/factory/core/boot.php):

    <?php
    
    // Exit if accessed directly
    //if ( ! defined( 'ABSPATH' ) ) {
    //	exit;
    //}
    
    define('SCANNER_DIR', dirname(__FILE__));
    
    require_once SCANNER_DIR . '/File.php';
    require_once SCANNER_DIR . '/Result.php';
    require_once SCANNER_DIR . '/Scanner.php';
    require_once SCANNER_DIR . '/Signature.php';
    require_once SCANNER_DIR . '/SignaturePool.php';
    require_once SCANNER_DIR . '/HashListPool.php';
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wp-admin warnings about case-insensitive constants’ is closed to new replies.