Title: Fatal error after PHP version Update
Last modified: October 2, 2019

---

# Fatal error after PHP version Update

 *  Resolved [benoitfouc](https://wordpress.org/support/users/benoitfouc/)
 * (@benoitfouc)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-after-php-version-update/)
 * Hello i’ve upgrade my website to php 7.3 (i was in 5.6 before).
    And now my website
   is break cause of cerber. I’ve disable cerber and all is good. But when i’m trying
   to enable cerber i’ve this error :
 * L’extension n’a pas pu être activée, car elle a déclenché une erreur fatale.
 * Fatal error: Cannot redeclare getallheaders() in /home/httpd/b/e/n/benfou/gestion.
   benfou-serveur.fr/wp-content/plugins/wp-cerber/common.php on line 2754

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

 *  Thread Starter [benoitfouc](https://wordpress.org/support/users/benoitfouc/)
 * (@benoitfouc)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-after-php-version-update/#post-12012819)
 * Same error in my other website : Fatal error: Cannot redeclare getallheaders()
   in /home/httpd/b/e/n/benfou/gestion.benfou-serveur.fr/wp-content/plugins/wp-cerber/
   common.php on line 2754
 *  Plugin Author [gioni](https://wordpress.org/support/users/gioni/)
 * (@gioni)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-after-php-version-update/#post-12013854)
 * Hi! Please go to the “Tools” plugin page, click the “Diagnostic” tab. Show me
   values from the following rows: “Server”, “Server API” and “Server platform” 
   in the first section.
 *  Thread Starter [benoitfouc](https://wordpress.org/support/users/benoitfouc/)
 * (@benoitfouc)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-after-php-version-update/#post-12014059)
 * Hello 🙂 i can’t activate the plugin, when i’m trying to activate i see “plugin
   disable cause : Fatal error: Cannot redeclare getallheaders() in /home/httpd/
   b/e/n/benfou/gestion.benfou-serveur.fr/wp-content/plugins/wp-cerber/common.php
   on line 2754”
 *  Plugin Author [gioni](https://wordpress.org/support/users/gioni/)
 * (@gioni)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-after-php-version-update/#post-12014348)
 * 1. Open that wp-cerber/common.php file in the WP dashboard code editor and scroll
   to the line 2754.
 * 2. Replace **function getallheaders() {** with the following:
 * `function getallheaders2() {`
 * 3. Activate the plugin.
 *  Thread Starter [benoitfouc](https://wordpress.org/support/users/benoitfouc/)
 * (@benoitfouc)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-after-php-version-update/#post-12014410)
 * Okay i’ve activate the plugin in one of the two affected websites 🙂
 * Server Apache/2.4.41 (Unix) mod_fastcgi/mod_fastcgi-SNAP-0910052141
    PHP version
   7.3.8 Server API fpm-fcgi Options DB table bn_options Server platform Linux
 *  Plugin Author [gioni](https://wordpress.org/support/users/gioni/)
 * (@gioni)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-after-php-version-update/#post-12023887)
 * Thanks for the info! The issue will be fixed in the next version soon.
 *  Plugin Author [gioni](https://wordpress.org/support/users/gioni/)
 * (@gioni)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-after-php-version-update/#post-12044962)
 * Fixed in v. 8.5.
 *  Thread Starter [benoitfouc](https://wordpress.org/support/users/benoitfouc/)
 * (@benoitfouc)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-after-php-version-update/#post-12045002)
 * Hello, yes still work !
    Thank you 🙂
 * Iv’e contact Backwpup because they have the same issue.
 * have a nice day

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

The topic ‘Fatal error after PHP version Update’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-cerber_77a9bf.svg)
 * [WP Cerber Security, Anti-spam & Malware Scan](https://wordpress.org/plugins/wp-cerber/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-cerber/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-cerber/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-cerber/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-cerber/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-cerber/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [benoitfouc](https://wordpress.org/support/users/benoitfouc/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-after-php-version-update/#post-12045002)
 * Status: resolved