1 Replies - 300 Views - Last Post: 13 March 2014 - 09:09 AM Rate Topic: -----

#1 ChaiBearx3  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 13-March 14

Bunch of Errors (Undefined Index)

Posted 13 March 2014 - 09:02 AM

Alright, so I'm getting the following error(s) on my page:

" Notice: Undefined index: authData in /home/paulmc1/domains/kuarrel.tk/public_html/admin/classes/lib/SessionData.php on line 27 Notice: Undefined index: authData in /home/paulmc1/domains/kuarrel.tk/public_html/admin/classes/lib/SessionData.php on line 29 Notice: Undefined index: HTTP_REFERER in /home/paulmc1/domains/kuarrel.tk/public_html/index.php on line 16 Notice: Undefined index: authData in /home/paulmc1/domains/kuarrel.tk/public_html/admin/classes/lib/SessionData.php on line 27 Notice: Undefined index: authData in /home/paulmc1/domains/kuarrel.tk/public_html/admin/classes/lib/SessionData.php on line 29 Fatal error: Class 'MongoClient' not found in /home/paulmc1/domains/kuarrel.tk/public_html/admin/classes/lib/Log.php on line 29"

SessionData.php

$this->authData = $_SESSION['authData']; and if($_SESSION['authData']['accountstatus']=="-1" && $page=="default")


Index.php

$log= new log($_SERVER["PHP_SELF"], $_GET, $_POST, $_SERVER['HTTP_REFERER'] );


Is This A Good Question/Topic? 0
  • +

Replies To: Bunch of Errors (Undefined Index)

#2 Dormilich  Icon User is offline

  • 痛覚残留
  • member icon

Reputation: 3569
  • View blog
  • Posts: 10,402
  • Joined: 08-June 10

Re: Bunch of Errors (Undefined Index)

Posted 13 March 2014 - 09:09 AM

that simply means that there is no $_SESSION['authData']. maybe because you didnít create it yet or because you didnít start the session.

also note that not every environment provides you with every $_SERVER variable.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1