Author Topic: help  (Read 4970 times)

Offline Win_7

  • Newbie
  • *
  • Posts: 2
help
« on: March 11, 2023, 06:00:59 AM »
hello i have an issue where it throws an internal error while trying to login heres the error log

[11-Mar-2023 11:53:28 Europe/Berlin] PHP Fatal error:  Uncaught Error: Undefined constant "INTL_IDNA_VARIANT_UTS46" in C:\xampp\htdocs\program\lib\Roundcube\rcube_utils.php:1153
Stack trace:
#0 C:\xampp\htdocs\program\lib\Roundcube\rcube_utils.php(1117): rcube_utils::idn_convert('localhost', true)
#1 C:\xampp\htdocs\program\include\rcmail.php(761): rcube_utils::idn_to_ascii('localhost')
#2 C:\xampp\htdocs\index.php(119): rcmail->login('email', 'password', 'localhost', true)
#3 {main}
  thrown in C:\xampp\htdocs\program\lib\Roundcube\rcube_utils.php on line 1153

Offline simoneitalia

  • Newbie
  • *
  • Posts: 5
Re: help
« Reply #1 on: March 23, 2023, 04:32:47 AM »
do you solve it?

Offline Win_7

  • Newbie
  • *
  • Posts: 2
Re: help
« Reply #2 on: March 23, 2023, 05:50:13 AM »
do you solve it?

yes i did solve it i edited the file to define that variable with the help of chatgpt ill send u the code if i remember today if i dont remember then quote me

Offline markc

  • Newbie
  • *
  • Posts: 9
Re: help
« Reply #3 on: June 03, 2023, 01:27:17 AM »
Yes, please. I just upgraded to php 8.2 and hit the same problem. I don't know how to use ChatGPT or what to "ask" it.

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,855
Re: help
« Reply #4 on: June 03, 2023, 03:20:21 AM »
Its not specifically a Roundcube issue. It has to do with PHP's intl extension and the version of ICU you have on your system. From https://www.php.net/manual/en/function.idn-to-ascii.php "Either INTL_IDNA_VARIANT_2003 (deprecated as of PHP 7.2.0) for IDNA 2003 or INTL_IDNA_VARIANT_UTS46 (only available as of ICU 4.6) for UTS #46."

Also see https://github.com/roundcube/roundcubemail/issues/8755
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦