You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Occurred in another installation.
Fatal error: Cannot redeclare class idna_convert in /home//public_html/home/modules/registrars/registrobr/Idna/idna_convert.class.php on line 54
I fixed the issue replacing the follow code at the file RegistroEPP> RegistroEPP.class.php
I changed the line :
require_once('Idna/idna_convert.class.php');
to
if (!class_exists('idna_convert')) require_once('Idna/idna_convert.class.php');
Very good to know Pablo. Wasn't the purpose of "require_once" to do just that ? Just wondering whether other class declarations should have the same safeguards.
Fatal error: Cannot redeclare class idna_convert in /home//public_html/core/modules/registrars/registrobr/Idna/idna_convert.class.php on line 54
Issue happened in a single installation, hasn't be reproduced. idna_convert is instanced with require_once so this shouldn't occur.
The text was updated successfully, but these errors were encountered: