User Profile

Python 2.6.6: /usr/bin/python
Mon Mar 18 14:11:27 2019

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /home/piford/public_html/cgi-bin/HelpZone/user.py in ()
  174                                                 <input type="text" class="form-control" style="color:red;" placeholder='"""
  175 print(html2)
  176 profilefunc.fullname()
  177 html3="""'value="">
  178                                             </div>
profilefunc = <module 'profilefunc' from '/home/piford/public_html/cgi-bin/HelpZone/profilefunc.pyc'>, profilefunc.fullname = <function fullname>
 /home/piford/public_html/cgi-bin/HelpZone/profilefunc.py in fullname()
  124     cookie_string = os.environ.get ( 'HTTP_COOKIE' )
  125     e = Cookie.SimpleCookie ( )
  126     e.load ( cookie_string )
  127     uname = e['shop'].value
  128     cursor.execute("SELECT * from cgitable where username='%s'" %(uname,) )
e = <SimpleCookie: >, e.load = <bound method SimpleCookie.load of <SimpleCookie: >>, cookie_string = None
 /usr/lib64/python2.6/Cookie.py in load(self=<SimpleCookie: >, rawdata=None)
  627         else:
  628             # self.update() wouldn't call our custom __setitem__
  629             for k, v in rawdata.items():
  630                 self[k] = v
  631         return
k undefined, v undefined, rawdata = None, rawdata.items undefined

<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'items'
      args = ("'NoneType' object has no attribute 'items'",)
      message = "'NoneType' object has no attribute 'items'"