• Resolved andrewkinney

    (@andrewkinney)


    Alright Im having the same issue as this old thread (https://www.ads-software.com/support/topic/php-7-4-conflict/) and the full error message Im getting is this:

    Fatal error: Cannot declare class ITSEC_Schema, because the name is already in use in /services/webpages/c/o/concretefloors.ca/public/wp-content/plugins/better-wp-security/core/lib/schema.php on line 3

    I figured out that Better-WP-Security is the old name for iThemes security (and as theres no “iThemes-security” plugin in my plugins folder Im going to assume that they never changed the file name) and Im just not quite sure where to go from here.

    @nlpro left some code to input in my fuctions.php file which only told me the class ITSEC_Schema is not declared.

    Any help is appreciated.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi andrewkinney,

    When does this error exactly occur ? On plugin activation ?
    Does the fatal error prevent the plugin from activating ?

    When my snippet of code says the ITSEC_Schema class is not declared, that suggests the iTSec plugin is not activated.

    +++++ To prevent any confusion, I’m not iThemes +++++

    Thread Starter andrewkinney

    (@andrewkinney)

    Greetings!

    Yes, the fatal error occurs when I try to activate the plugin and yes the error stops the plugin from activating.

    Ok, I see.
    What exact PHP version is the site running on ?
    Server OS ? (Linux, Windows?)

    Thread Starter andrewkinney

    (@andrewkinney)

    Server architecture Linux 5.0.2.328-1 x86_64
    Web server Apache
    PHP version 7.4.19 (Supports 64bit values)

    Ah, right. I’ve seen this issue many times on this forum. Yet, have never been able to pinpoint the root cause.
    But the factor all these topics seem to have in common is PHP 7.4.19 (on Linux).

    So I’m tempted to say, contact your hosting and (if not already available) ask for an updated PHP 7.4.x release. Latest seems to be 7.4.29.

    The test envs at my hosting are currently on PHP 7.4.25 (Linux) and I have never run into this issue.

    Definately let the community know how updating the PHP version works out ??

    I wonder if there is a stuck file open somewhere on the system. Are you able to review the output of lsof via ssh? I’m wondering if there is any mention of the schema.

    Plugin Support chandelierrr

    (@shanedelierrr)

    Hi @andrewkinney, I hope the information provided helped resolve the issue. Since we haven’t received a response, I’ll mark this post resolved. If you still need some assistance, feel free to open a new support topic, and we’d be happy to assist. Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Cannot Declare Class ITSEC_Schema (PHP 7.4 Conflict continued)’ is closed to new replies.