I have a basic PHP script.
$hike_id = $_REQUEST['hike_id'];
$height = $_REQUEST['height'];
$width = $_REQUEST['width'];
Sometimes these are no such parameters passed into the request and I am guessing that is why the 500 error is being returned.
Is there a way to stop that page from returning the 500 error somehow? Here is an example of it:
http://comehike.com/outdoors/hike_widget.php?hike_id=164&height=700&width=500
You could just conditionally assign the variables using ternary expressions and
isset():Also, if these parameters are always coming in in the query string like you said, you are better off using
$_GETthan$_REQUEST