Reply To: "White Screen of Death"
Home › Forums › GovIntranetters › "White Screen of Death" › Reply To: "White Screen of Death"
No, no data lost! I was dreading the idea of porting the data over to a new installation.
As far as the search form is concerned:
We’re using an installation on IIS (currently running Server 2008 r2).
-
We have custom permalinks. (but they are nothing special)
Our intranet url would be http://intranet.domain.com.
The installation directory is \\server\inetpub\intranet
What we’re finding is that the search doesn’t truncate the returned url properly.
So I search for “ICT”, the default searchform returns intranet.domain.com/intranet/?s=ict
Rather than intranet.domain.com/?s=ict
Search is the only place we see this issue.
To fix it I dug around a little in the wordpress codex and the [useless!] wordpress forums and found that I could “force” the correct string out of PHP.
In searchform.php I found this: action=”<?php echo home_url( ‘/’ ); ?>”>
Which I changed to action=”intranet.domain.com”>
It works a treat. Although because it’s hardcoded I have to make the change if we change the theme or whatever.
We’ve also inserted our own Login link to facilitate user’s signing in.
Hope that’s of some use. Let me know if you want me to explain or expand anything.
- This reply was modified 7 years, 11 months ago by Gavin McMenemy.