I have ported a drupal 6 install over to a new drupal7. My custom 404 page allowed the user to report where the external referrer had the dead, missing, or changed link. However, now the page is sporting an error and I don’t know if it is because the php code is deprecated or some other issue with a new php install.
I was hoping for a little help here, because the error I get also points to a base module php.php file, but I don’t think it is related directly:
[b][i]Notice: Undefined variable: HTTP_REFERER in eval() (line 13 of /usr/home/ user/public_html/website.com/modules/php/php.module(82) : eval()'d code)[/i][/b]
The module line is simply a function called admin help. My current version is PHP Version 5.6.16
This is the code on the page
[php] <input name="error" type="text" id="errorlink" value="<?php echo $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];?>" size="50"> <input name="errorlink" type="hidden" value="<?php echo $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];?>"></p>
<br><input name="referringLink" type="hidden" value="<?php echo $HTTP_REFERER?>"></code>[/php]
TIA,
Jeff