Skip to content
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 notice when delete cache file for url with no trailing slash #190

Closed
bonny opened this issue Mar 18, 2019 · 0 comments · Fixed by #262
Closed

PHP notice when delete cache file for url with no trailing slash #190

bonny opened this issue Mar 18, 2019 · 0 comments · Fixed by #262

Comments

@bonny
Copy link

bonny commented Mar 18, 2019

I get this notice in my logs:

Notice: Undefined index: path in /var/www/html/public/assets/plugins/nginx-helper/admin/class-purger.php on line 391

This happens when the url is the homepage/only the domain, for example:
http://mysite.localhost or http://example.com

I believe the error is because wp_parse_url does not always return the key PATH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant