Welcome to Geeklog, Anonymous Wednesday, October 09 2024 @ 10:10 pm 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?
10
11
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)
11
12
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.
11
11
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
7
10
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.
11
9
Quote
Anonymous
Anonymous
go to lib-sessions.php and delete and empty lines after ?>
10
10
Quote
All times are EDT. The time is now 10:10 pm.
- 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