XF 2.2 Server error log - need help

Roiarthur

Active member
I need help to fix this system error

Code:
Server error log

    ErrorException: Fatal Error: Declaration of Egulias\EmailValidator\Validation\MessageIDValidation::isValid(string $email, Egulias\EmailValidator\EmailLexer $emailLexer): bool must be compatible with Egulias\EmailValidator\Validation\EmailValidation::isValid($email, Egulias\EmailValidator\EmailLexer $emailLexer) src/vendor/egulias/email-validator/src/Validation/MessageIDValidation.php:23

    Generated by: Sylvain Jul 5, 2024 at 7:38 PM

Stack trace

#0 [internal function]: XF::handleFatalError()
#1 {main}

Request state

array(4) {
  ["url"] => string(81) "/conversations/impossible-de-proceder-a-la-mise-a-jour-automatique.3050/add-reply"
  ["referrer"] => string(107) "https://www.tutoriaux-excalibur.com/conversations/impossible-de-proceder-a-la-mise-a-jour-automatique.3050/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(11) {
    ["_xfToken"] => string(8) "********"
    ["message_html"] => string(313) "<p>Andy told me it's better to use the default Xenforo style for 2.3 version because it has a light and dark theme and to just replace the banner. I think he's probably right about the default Xenforo style</p>"
    ["attachment_hash"] => string(32) "8b44afba5886a1ed110f4a500027713c"
    ["attachment_hash_combined"] => string(108) "{"type":"conversation_message","context":{"conversation_id":3050},"hash":"8b44afba5886a1ed110f4a500027713c"}"
    ["last_date"] => string(10) "1720221430"
    ["last_known_date"] => string(1) "0"
    ["load_extra"] => string(1) "1"
    ["ct_checkjs"] => string(4) "2024"
    ["_xfRequestUri"] => string(72) "/conversations/impossible-de-proceder-a-la-mise-a-jour-automatique.3050/"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
It seems like you have some outdated files. You may wish to do a file health check to find any others, but at a minimum you'll want to download the upgrade archive from your customer area and re-upload src/vendor/egulias/email-validator/src/Validation/EmailValidation.php.
 
I fix the error, i tried an update to XF 2.3 but it is incompatible with many of my addons and style.

I came back to XF 2.2.16

How did you fix it? I upgraded to 2.3 but it broke all of my templates so I had to restore from a server backup to get my site back. Now I'm getting this error.
 
I upgraded to version 2.3, but after encountering many errors, I reverted to my old backup. The result is the same. I am seeking support on this matter and hope we can find a solution.

1720361927167.webp



Code:
Fatal error: Declaration of Egulias\EmailValidator\Validation\MessageIDValidation::isValid(string $email, Egulias\EmailValidator\EmailLexer $emailLexer): bool must be compatible with Egulias\EmailValidator\Validation\EmailValidation::isValid($email, Egulias\EmailValidator\EmailLexer $emailLexer) in /var/www/********.com/****/****/src/vendor/egulias/email-validator/src/Validation/MessageIDValidation.php on line 23
 
I upgraded to version 2.3, but after encountering many errors, I reverted to my old backup. The result is the same. I am seeking support on this matter and hope we can find a solution.

View attachment 305519



Code:
Fatal error: Declaration of Egulias\EmailValidator\Validation\MessageIDValidation::isValid(string $email, Egulias\EmailValidator\EmailLexer $emailLexer): bool must be compatible with Egulias\EmailValidator\Validation\EmailValidation::isValid($email, Egulias\EmailValidator\EmailLexer $emailLexer) in /var/www/********.com/****/****/src/vendor/egulias/email-validator/src/Validation/MessageIDValidation.php on line 23

Do a backup and save a backup of the file, but delete MessageIDValidation.php. That worked for me. Are you using a form addon?
 
XF 2.2 does not include the src/vendor/egulias/email-validator/src/Validation/MessageIDValidation.php file, so if you restored from a backup it appears to have left new files from XF 2.3 around at the very least.
 
Back
Top Bottom