thedigicraft / Atom.CMS

Atom.CMS
56 stars 50 forks source link

Undefined index: fname in H:\Server\htdocs\Series\Dynamic\admin\functions\data.php on line 19 #21

Open GitReadysoft opened 10 years ago

GitReadysoft commented 10 years ago

I decided to move my project to another pc. I copied everything the same from my laptop to my PC.

Once I log into the admin panel, I get the following errors:

Notice: Undefined index: fname in H:\Server\htdocs\Series\Dynamic\admin\functions\data.php on line 19

Notice: Undefined index: lname in H:\Server\htdocs\Series\Dynamic\admin\functions\data.php on line 19

Notice: Undefined index: lname in H:\Server\htdocs\Series\Dynamic\admin\functions\data.php on line 20

Notice: Undefined index: fname in H:\Server\htdocs\Series\Dynamic\admin\functions\data.php on line 20

naturally it should mean I have some undefined variables. I remember that Alan put "first" "last" instead of mine which was "fname" "lname". I checked the data.php file and replaced all instances of this to first and last.

My issue is that the error is still there!!! Not sure how to remove it.

  1. I tried turning off xampp, and back on
  2. I searched entire DB for any instances of fname or lname ( none)
  3. I replaced my data.php with whats on Github
  4. I did a full file search of my entire project with these variables ( nothing! )

these errors show up at the top of my admin page and won't go away. Any help would be nice.

thedigicraft commented 10 years ago

Does everything actually work though? If everything is actually working then use the error_reporting(); function to hide those notices...

this will hide only the notices.. error_reporting(E_ALL ^ E_NOTICE);

That way you see errors, warnings and everything else. Just not the annoying notices.

GitReadysoft commented 9 years ago

Hey bud, sorry for the late response. That worked! I plan to watch the rest of your videos this summer. Thank you!