mykleman Posted October 6, 2009 Share Posted October 6, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/176704-undefined-index-request_uri/ Share on other sites More sharing options...
cags Posted October 6, 2009 Share Posted October 6, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/176704-undefined-index-request_uri/#findComment-931635 Share on other sites More sharing options...
mykleman Posted October 6, 2009 Author Share Posted October 6, 2009 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']; Quote Link to comment https://forums.phpfreaks.com/topic/176704-undefined-index-request_uri/#findComment-931866 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.