Error: idn_to_ascii() expects at most 2 parameters, 3 given

Yep, that looks like a bug in Strato’s setup. As I wrote above, maybe they have installed an older version of the PECL extension even though PHP 7 already ships with the features.

Please contact Strato about this. Unfortunately we can’t fix this in Kirby (but for Kirby 3 we will most likely use another library for this that doesn’t depend as much on the available PHP extensions).

Please note that staying on Kirby 2.5.6 isn’t really an option because of the security fixes in 2.5.7. You may however downgrade to Kirby 2.4.2, which contains the security fixes as well.

Ok @lukasbestle I have sent a ticket to Strato.

Let’s see what they answer.

I received the answer from Strato. They recommend me:

  • use the last version of PHP available in my web space (I’m using 7.1)
  • and check the PECL extension version in the info.php

Do you know where can I find the extension version in that file?

Actually I encounter the same problems:

  • typing in the panel url and it redirects to localhost
  • and the ascii problem

I also have Strato with PHP Version 7.1.11.

What can I do? Localhost just works fine.

I think the problem lies here: where there is the ascii error in localhost there is the site name. So maybe there are some problems with the URL: I looked where I could rewrite the localhost to my domain name, but don’t know where and if I really need to do that.

Also - right after the site name there needs to be a tab where I can see my account and who is logged in and the recently edited files. So the Kirby system just cut off everything after the error.

@11bits

As far as I understood PECL is just a repository for all the extensions which there can be for PHP. So there is a problem with a specific extension?

Same here, the Strato server I´m on offers only PHP 5.6.32 but that shouldn´t be the problem according to @lukasbestle, I had to downgrade to 2.5.5 to access the panel. Also, the “insert link” doesn´t work, but thats a known bug.
Has the OP been able to make 2.5.7 run on Strato? Did you, Alex?

Yes, that seems. And the answer from Strato was that I can’t I use that CMS (Kirby) because my hosting doesn’t support PECL (?).

I’m using an older version for now.

The thing is that the PECL extension is not even needed in modern PHP versions. They should be a bit more supportive, I think.

So this is really an issue with Strato?

I don’t know. But now we have 3 people with a similar issue on a Strato-Server.

What is OP? I may also be switching to an older version if the error is unacceptable for the client. As for now, it is still possible to edit sites.

Yet one needs to go to mysite.com/panel/login so that in this case there won’t be any redirects. Then the login credentials, but again: it only accepts them the second time and I don’t know the reason for this.

Then I can edit the site and files.

With OP I was referring to @11bits as the person that started the thread, a.k.a. the Original Poster :slight_smile:

I downgraded yesterday back to my older version 2.5.5 since I had jumped the 2.5.6. But from what I read now, you can also go back to 2.5.6, the panel will come back.

@MartinS

Is there a possibility to only change some files?
All the core files of the new Kirby 2.5.7 still remain and only on specific file needs to be reversed to a previous version?

I thought about the file
kirby/vendor/getkirby/toolkit/lib/url.php
and then starting with line 399.

If you undo the changes introduced with Kirby 2.5.7:

this should “fix” the issue.

At least you would then get the security fixes of 2.5.7

3 Likes

@texnixe

It worked! I also needed to delete the .logins file in site/accounts to be able to login.

@MartinS Could you test if this does the trick for you as well?

Worked! I changed those lines back and updated to 2.5.7. :love_you_gesture:

I’m pretty sure now that it’s an issue at Strato. Probably a misconfiguration.
However Strato’s support is known for often not being very helpful.

We will rewrite the IDN support in Kirby 3 so that it doesn’t depend on the Intl PHP module anymore.

2 Likes

After updating Kirby to 2.5.9 the error doesn’t appear again.

Here too, I had that problem with Strato and the panel (Cannot access panel anymore on Strato Server, kirby 2.5.7), I´ve just installed 2.5.9 and it works. Magic! Thank you :slight_smile: