I just noticed this error message showing up when I go from one page to another using a url link. As an example, on my homepage https://terrancealexander.com in the left column I have a link to my contact page and to an RSS feed page. The link takes me there but the following error message is at the bottom of the page.
Hi @TAlexanderPhoto, your site should be able to use those links. I’ve looked at the code and the PHP documentation and can’t see how that error would have happened. Strangely, they’re now working without error: https://terrancealexander.com/?page=terrycontact
Hi Ben,
I ran into this same problem recently helping another person with her site. Exact same error message. Changing the url in the internal links cleared it up.
And now, using the ?page= in the url address bar works too.
I’m wondering if it happens only when using the ?page= url form in an internal link?
I switched all of my internal links last night and it works fine now. It does seem to be a recent development because I had my links written that way for a couple of years and never had the error message pop up.
I’ll leave it to the two of you to sort the internal workings of the system! Thanks for the quick assist.
I haven’t been able to reproduce this. What I can see is that the internal PHP function parse_url should always return a path element, even if it’s empty. For some reason it doesn’t seem to have been doing so for you. This is contrary to the documentation, so it’s likely to be a bug in PHP.
An any case, I’ve put an extra check in our working code to accommodate this.