Jump to content

Undefined index: REQUEST_URI


mykleman

Recommended Posts

Greetings All, I am a beginner. We upgraded jomsocial and now we get this error, could some one advise as to the correct syntax in adding this  "string" or whatever it is that feels orphaned. the error is this ---->

 

Notice: Undefined index: REQUEST_URI in C:\Domains\ultimatespearfishing.com\wwwroot\templates\rt_vertigo_j15\rt_utils.php on line 63

 

Any assistance would be greatly appreciated.

Link to comment
https://forums.phpfreaks.com/topic/176704-undefined-index-request_uri/
Share on other sites

It's not technically an 'error' perse, it's a notice. Basically it's telling you that you are trying to access an item in an array using the key REQUEST_URI, and there is no item in the array with that key. Generally you can surpress the notice by checking...

 

isset($_SERVER['REQUEST_URI']) 

 

...before using the value. Though it seems odd that particular key wouldn't exist.

Thank You Cags, so I am not missing anything in this line then? I am not meant to put in the "server_name" or anything like that? Forgive the ignorance please. Thank you for your time. this is the culprit line 63. We are just a bunch of spearfisherman trying to put a online spearing community together for South Africa. The error appears when we goto spearbook on our menu in Ultimatespearfishing.com .Thank you again for taking the time to reply earlier.

$fullpath = 'http://'.JRequest::getVar('SERVER_NAME','','SERVER','STRING').$_SERVER['REQUEST_URI'];

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.