Quantcast
--> -->
 
 
<type 'exceptions.TypeError'>
Python 2.7.3: /usr/bin/python
Sun Apr 30 22:25:32 2017

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

 /usr/lib/cgi-bin/index.py in ()
     48     print layouts.getLayout(current_page.page_layout, sdb, current_page, sidebar_str, path, posts_str)
     49 
     50 
     51 if __name__=="__main__":
=>   52     main()
main = <function main>
 /usr/lib/cgi-bin/index.py in main()
     46 
     47     # get the layout for this page
=>   48     print layouts.getLayout(current_page.page_layout, sdb, current_page, sidebar_str, path, posts_str)
     49 
     50 
global layouts = <module 'layouts' from '/usr/lib/cgi-bin/layouts.pyc'>, layouts.getLayout = <function getLayout>, current_page = <pagec.page instance>, current_page.page_layout = u'post_layout', sdb = <db.database instance>, sidebar_str = '\n<div id="sidebararea">\n<div id="fb-root"></div>...h({});\n</script>\n<br><br>\n </div>\n\n</div>\n', path = '/get_count.cgi', posts_str = '<div class="main"><h1><a href="/get_count.cgi">T..."/get_count.cgi#disqus_thread">Comments</a></div>'
 /usr/lib/cgi-bin/layouts.py in getLayout(layout=u'post_layout', dbase=<db.database instance>, page=<pagec.page instance>, sidebar_str='\n<div id="sidebararea">\n<div id="fb-root"></div>...h({});\n</script>\n<br><br>\n </div>\n\n</div>\n', path='/get_count.cgi', post_str='<div class="main"><h1><a href="/get_count.cgi">T..."/get_count.cgi#disqus_thread">Comments</a></div>')
    133                posts=post_str,
    134 
=>  135                section_menu=pyplate.get_category_menu(dbase, page.category),
    136                comments=pyplate.getFile(pyplate.getCMSRoot() + "/template/comments.html"),
    137                footer=pyplate.getFile(pyplate.getCMSRoot() + "/template/footer.html")) 
section_menu undefined, global pyplate = <module 'pyplate' from '/usr/lib/cgi-bin/pyplate.pyc'>, pyplate.get_category_menu = <function get_category_menu>, dbase = <db.database instance>, page = <pagec.page instance>, page.category = u'General'
 /usr/lib/cgi-bin/pyplate.py in get_category_menu(dbase=<db.database instance>, category_path=u'General')
    189     menu_str += "<h3>More from this category:</h3>"
    190 
=>  191     menu_str += get_category_link (3, str(category[2]), str(category[0]))
    192 
    193     menu_str += "<ul>\n"
menu_str = '<div class="main">\n<h3>More from this category:</h3>', global get_category_link = <function get_category_link>, builtin str = <type 'str'>, category = None

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