Title: PHP 7.4 conflict
Last modified: April 21, 2021

---

# PHP 7.4 conflict

 *  [David LeBlanc](https://wordpress.org/support/users/davidtleblanc/)
 * (@davidtleblanc)
 * [5 years ago](https://wordpress.org/support/topic/php-7-4-conflict/)
 * I updated PHP to 7.4 and I got this error message: Fatal error: Cannot declare
   class ITSEC_Schema, because the name is already in use.
 * Any correction or anyone else getting this?

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [nlpro](https://wordpress.org/support/users/nlpro/)
 * (@nlpro)
 * [5 years ago](https://wordpress.org/support/topic/php-7-4-conflict/#post-14350159)
 * Hi David,
 * Please try and (temporarily) set the constant WP_DEBUG to true in the wp-config.
   php file. Hopefully this will provide some extra error info.
 * Hoping to get some additional info about the file/line where this is failing.
 * Oh, one other thing: Does the error reproduce in the latest plugin release (7.9.1)?
 * To prevent any confusion, I’m not iThemes.
 *  Thread Starter [David LeBlanc](https://wordpress.org/support/users/davidtleblanc/)
 * (@davidtleblanc)
 * [5 years ago](https://wordpress.org/support/topic/php-7-4-conflict/#post-14351837)
 * nlpro, thanks for the reply.
 * Yes, it reproduces on the latest release of the plugin.
 * Sorry, not going to set up the debug to true. I got fed up dealing with this 
   conflict (and others) and deleted the plugin. I am doing this on all my sites.
 * I couldn’t delete it in the plugin manager, the conflict seemed to prevent that.
   I had to delete it via FTP and then go remove it from database.
 * Really, this was a final straw kind of thing for me. Lately, it’s one thing after
   another it seems and I am tired of wasting my time on it. Right now I am just
   using the security features in JetPack and keep everything updated. Not even 
   sure a security plugin like iThemes is worth it now.
 *  [dbengston](https://wordpress.org/support/users/dbengston/)
 * (@dbengston)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/php-7-4-conflict/#post-14533933)
 * Same problem here. My client encountered a fatal error this morning after logging
   into wp-admin. Things I tried:
 * I manually updated the iThemes Security plugin via ftp so see if it was a stuck
   update problem, but the error persisted.
 * I renamed the plugin folder to disable it, and I was able to log in.
 * I updated WordPress and all other plugins prior to re-activating iThemes Security,
   and the error came back.
 * I turned on debug, but it reveals no other errors beyond this one.
 * The full error message is
    Fatal error: Cannot declare class ITSEC_Schema, because
   the name is already in use in /path/to/site/wp-content/plugins/better-wp-security/
   core/lib/schema.php on line 3
 * WordPress 5.7.2
    PHP 7.4.19 iThemes Security 7.9.1
 *  [nlpro](https://wordpress.org/support/users/nlpro/)
 * (@nlpro)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/php-7-4-conflict/#post-14534019)
 * Hi,
 * Can you provide a list of activated plugins ?
 * Would it be possible to deactivate all plugins and then try to only activate 
   the iTSec plugin ?
 * This will help in ruling out the possibility of a plugin conflict.
 * +++++ To prevent any confusion, I’m not iThemes +++++
    -  This reply was modified 4 years, 11 months ago by [nlpro](https://wordpress.org/support/users/nlpro/).
 *  [nlpro](https://wordpress.org/support/users/nlpro/)
 * (@nlpro)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/php-7-4-conflict/#post-14536342)
 * … or alternatively temporarily add the code below to the functions.php file of
   the active theme:
 *     ```
       add_action( 'admin_notices', 'showmewhichfile' );
   
       function showmewhichfile() {
       	$a = new \ReflectionClass( 'ITSEC_Schema' );
   
       	echo '<div class="notice notice-info"><p>' . sprintf( 'The class <strong>ITSEC_Schema</strong> is declared in the file: %s', $a->getFileName() ) . '</p></div>';
       }
       ```
   
 * This will show you a notice in the WordPress Dashboard telling you which file
   declared the **ITSEC_Schema** class for the current page request.
    This kind 
   of assumes there is another plugin (or piece of code somewhere) declaring the
   same class.
 *  [nlpro](https://wordpress.org/support/users/nlpro/)
 * (@nlpro)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/php-7-4-conflict/#post-14537775)
 * Improved code version:
 *     ```
       add_action( 'admin_notices', 'showmewhichfile' );
   
       function showmewhichfile() {
       	if ( class_exists( 'ITSEC_Schema' ) ) {
       		$a = new \ReflectionClass( 'ITSEC_Schema' );
   
       		echo '<div class="notice notice-info"><p>' . sprintf( 'The class <strong>ITSEC_Schema</strong> is declared in the file: %s', $a->getFileName() ) . '</p></div>';
       	} else {
       		echo '<div class="notice notice-info"><p>The class <strong>ITSEC_Schema</strong> is not declared.</p></div>';
       	}
       }
       ```
   

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘PHP 7.4 conflict’ is closed to new replies.

 * ![](https://ps.w.org/better-wp-security/assets/icon.svg?rev=2980272)
 * [Solid Security – Password, Two Factor Authentication, and Brute Force Protection](https://wordpress.org/plugins/better-wp-security/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-wp-security/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-wp-security/)
 * [Active Topics](https://wordpress.org/support/plugin/better-wp-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-wp-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-wp-security/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [nlpro](https://wordpress.org/support/users/nlpro/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/php-7-4-conflict/#post-14537775)
 * Status: not resolved