Jump to content

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'];

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.