My $_GET is giving blank page
Posted: Thu Aug 17, 2017 6:48 am
Everything on the site has been working fine until the other day.
As simple passing of a variable is now giving me WSOD.
I'm calling a second page with something like page_details.php?id=2
Now I'm getting a white screen.
When I check the page just calling it directly: page_details.php and I add inside the page <?php $id=2 ?>, the page displays what it is suppose to.
This is just on the client side for people to view information.
In my admin panel I have the same problem but have done a work around.
This gives a blank screen:
This works using a POST function instead of GET:
This is on the receiving page:
I know that my code when I did this site is a bit outdated but the database is being accessed fine, and any queries seem to work.
Also, have other sites on this same server and the GET queries are working fine. It's only happening on this one site.
Thanks for any help.

Quick update:
Stripped out all of the code from the page and it still goes blank. Anytime I call a php page with php_page.php?id=2, its blank.
This must be a server side issue????
There is one other strange thing. I have a mysterious number 1 at the bottom of my pages. No idea how it gets there.
As simple passing of a variable is now giving me WSOD.
I'm calling a second page with something like page_details.php?id=2
Now I'm getting a white screen.
When I check the page just calling it directly: page_details.php and I add inside the page <?php $id=2 ?>, the page displays what it is suppose to.
This is just on the client side for people to view information.
In my admin panel I have the same problem but have done a work around.
This gives a blank screen:
Code: Select all
echo "<a href='edit_booking.php?id=$id'>$name</a>";Code: Select all
echo "<form action='edit_booking.php' method='post'>";
echo "<input type='hidden' name='id' value='$id'><input type='submit' value='$name'></form>";
Code: Select all
if( isset($_GET['id']) ){
$id = (int)$_GET['id'];
} else {
$id = (int)$_POST['id'];
}
Also, have other sites on this same server and the GET queries are working fine. It's only happening on this one site.
Thanks for any help.
Quick update:
Stripped out all of the code from the page and it still goes blank. Anytime I call a php page with php_page.php?id=2, its blank.
This must be a server side issue????
There is one other strange thing. I have a mysterious number 1 at the bottom of my pages. No idea how it gets there.