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

bit_redirect broken #2

Open
lsces opened this issue May 1, 2020 · 2 comments
Open

bit_redirect broken #2

lsces opened this issue May 1, 2020 · 2 comments

Comments

@lsces
Copy link
Collaborator

lsces commented May 1, 2020

Redirect has not been working for a while on my sites, and I'm only just getting around to trying to fix things.
The problem seems to be the addition of $pStatusCode in header() ... have dropped that so header only uses the Url and things are are least redirecting. I suspect this is something to do with PHP changes as I'm currently using PHP7.2 and still keep hitting things which need to be reworked from the PHP5 base but I can't see any notes about this being changed in PHP ... Asking there for some input ...

@spiderr
Copy link
Collaborator

spiderr commented May 4, 2020

Hi Lester, One of the most common issues with header() not working is a trailing space in a file somewhere. Do you have all NOTICE messages logging, and have ou checked the logs?

@lsces
Copy link
Collaborator Author

lsces commented May 4, 2020

There were a couple of files with extra spaces in the Smarty library, but the only fix that works for me is to remove the error code and just apply the url ... Things like not finding a gallery number now return the top level list rather than a blank page. I've had no comment on my post to the PHP list ... convinced it's something php7 related rather than the code base.

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