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
PHP Warning: parse_url(http://): Unable to parse URL in core/UrlHelper.php on line 494 #5180
Comments
Actually, the warning error in parse_url() is suppressed since PHP 5.3.3. With PHP 5.3.2 you get the Warning-Error, because the parameter $url is false in Piwik\UrlHelper::getHostFromUrl() Instead of handling the error in getHostFromUrl(), I'd rather fix the initial problem in Piwik\Console\initPiwikHost(), where the code explicitly demands --piwik-domain as an input parameter, which contradicts to the documentation at http://piwik.org/docs/setup-auto-archiving/, where --url is used: $piwikHostname = $input->getParameterOption('--piwik-domain'); Sorry I don't have any code contribution.. |
@merowinbt thanks for the tip, we will definitely fix this one for the next version! (we will always read both |
…ure if I understand the problem fully but this should fix it I reckon
Can someone confirm this fixes the issue? I cannot reproduce it as I do not have an installation with 5.3.2. |
Closing it as it should work I reckon. Please reopen at any time if not and I will definitely look into it. |
thanks, looks good, at least I don't get the warning anymore; tested with PHP 5.3.2-1ubuntu4.26 |
Reported by at least two users in forum post
Changing the cron command fro, --url= to --piwik-domain= fixed it.
The text was updated successfully, but these errors were encountered: