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

ProcessLogger shows wrong URL when $log is used in file that bootstraps PW #259

Closed
Toutouwai opened this issue May 10, 2017 · 2 comments
Closed

Comments

@Toutouwai
Copy link

Short description of the issue

I have a file that bootstraps ProcessWire. When $log->save() is used in this file, ProcessLogger displays the URL as '/http404/'.

Is it possible for PW to detect when it has been bootstrapped and use some better URL here? I think the path/name of the PHP file would be good, but even no URL at all would be preferable to wrongly showing the 404 URL.

Setup/Environment

  • ProcessWire version: 3.0.62
@ryancramerdesign
Copy link
Member

You can set what page should be used for the $page API variable with the $config->externalPageID setting. Set this to the ID of the page you want it to use, in your /site/config.php file.

@Toutouwai
Copy link
Author

There isn't any existing page ID that would be any better than the 404 page - it would still be misleading because it does not indicate the file/url that actually wrote to the log. I guess I could especially create a page and name it the same as the PHP file but that seems like a weird way to work around the issue. It's not a major problem so I can live with the 404 url.

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

No branches or pull requests

2 participants