-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fatal error: Uncaught League\Uri\PublicSuffix\Exception #13
Comments
Issue #8 was related to this issue as well. That user however wasn't available to debug further. Does loading the DAT file directly in your browser work or fail? This was one thing I was curious about in that instance but was unable to test it. Please attempt to load this URL in your browser, or via CURL in command line: https://publicsuffix.org/list/public_suffix_list.dat |
hello https://publicsuffix.org/list/public_suffix_list.dat is accessible for me either browser or cli |
hello it is so strange for me , when I compose this script in local XAMPP with PHP 7.2.10, it works ok |
It does seem very odd. I haven't had time yet to test this myself but I did look into the underlying Exception more and it's really only thrown if a method to refresh the Public Suffix List returns false. Found here. Without any other errors associated it makes me think there's an issue reaching the dat file, but if you can see it in CLI then I'm not sure. Very peculiar indeed. |
Hey @erichuang2015, You said:
So it seems that this library works fine for you locally. Previously I asked if you could test via browser or cli and you said:
When you did the testing for this, did you do that locally or on the server throwing the exception? You should test loading the .dat file via CURL on the server experiencing the issue. If it doesn't work via CURL on the server throwing the Exception when using this library then that indicates an issue isolated to that server. |
Yes. online server throws errors |
@erichuang2015 Unfortunately it seems that this error you're experiencing is isolated to that server. It's not something I can reproduce or debug myself - I don't have a CentOS 7.3 server. I would guess that even if I had a CentOS 7.3 server I may not even experience the issue. I would guess that there may be a network/firewall related issue causing the problem. If your server is hosted at a managed hosting provider, then potentially you could submit a ticket with their support. If that's not an option and you'd have to debug this on your own the best I can do is provide some basic advice. Not sure if it will all apply, but it still may help. From the affected server do the following:
Again I hope this helps you debug the issue! |
Since this is likely an issue isolated to the server I'm going to close this. |
Hi there
Fatal error: Uncaught League\Uri\PublicSuffix\Exception: Unable to load the public suffix list rules for https://publicsuffix.org/list/public_suffix_list.dat
PHP Version 7.1.22
CentOS Linux 7.3.1611
The text was updated successfully, but these errors were encountered: