Welcome to Geeklog, Anonymous Friday, March 29 2024 @ 03:39 am EDT

Geeklog Forums

lib-common.php errors


no1

Anonymous
I keep getting the following message when I go to my pages: Parse error: parse error in lib-common.php on line 2133 Fatal error: Cannot instantiate non-existent class: template in lib-common.php on line 323 When not in the main directory it shows something like: Parse error: parse error in ../../lib-common.php on line 2133 Fatal error: Cannot instantiate non-existent class: template in ../../lib-common.php on line 323 Anyone know what the problem is and how I can fix it?
 Quote

Anonymous

Anonymous
Hi! I have no insight in the code you use, but the only times I encountered this same error was when I did not include the needed classes. So: check your header-file to see if it includes the template-class. Otherwise, calling $tpl = new template(...) would result in the given error. Good luck! Robert-Reinder (rr@nederhoed.com)
 Quote

Anonymous

Anonymous
I think lib-common can't find any of the class files for some reason. On other pages such as the calendar page, it can't find the calendar.class file. All of the pages give the same error, saying that the problem lies in the two lines that my original post mentions.
 Quote

no1

Anonymous
I removed all file formatting, such as indentation, and now I get the following error: Parse error: parse error in lib-common.php on line 1 Fatal error: Call to undefined function: com_siteheader() in /home/sites/site43/web/index.php on line 39
 Quote

no1

Anonymous
Now, most of the page shows up (including the template) but I get the following error: Warning: Cannot add header information - headers already sent by (output started at /home/sites/site43/web/system/classes/timer.class.php:166) in /home/sites/site43/web/system/lib-sessions.php on line 133 Warning: Cannot add header information - headers already sent by (output started at /home/sites/site43/web/system/classes/timer.class.php:166) in /home/sites/site43/web/system/lib-sessions.php on line 145 And when I try to login as admin, I keep getting the same errors and getting sent back to the same page.
 Quote

Anonymous

Anonymous
go to lib-sessions.php and delete and empty lines after ?>
 Quote

All times are EDT. The time is now 03:39 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content