Welcome to Geeklog, Anonymous Wednesday, November 13 2024 @ 10:26 pm EST

Geeklog Forums

Parse Error...


Parse Error

Anonymous
Parse error: parse error, unexpected T_STRING in /home/t3chb0y/public_html/aw26/config.php on line 86


whats wrong with my config file?

 Quote

Status: offline

vadertech

Forum User
Full Member
Registered: 05/26/03
Posts: 329
Parse Errors
GeekLog Hosting, Installations and Upgrades - WWW.AWEHOST.COM - Hosting starts @ only $4.95/mo.
 Quote

geek

Anonymous
ok, so i'm seeing

Parse error: parse error, unexpected ',' in /home/geek/public_html/config.php on line 592


i've looked & i cant see any problems, and its been going on for days. ive not edited anything that far down in the script!
 Quote

Status: offline

vadertech

Forum User
Full Member
Registered: 05/26/03
Posts: 329
So did you fix the error on line 86?

If you don't have a good text editor, I would suggest downloading textpad. You can go into options and set it to show line numbers. Then you can easily find the line giving the error and check it.
GeekLog Hosting, Installations and Upgrades - WWW.AWEHOST.COM - Hosting starts @ only $4.95/mo.
 Quote

geek

Anonymous
I've got line 592 - the bolded line:

Text Formatted Code
$_CONF['comment_mode']          = 'threaded'; // Default Comment Mode; from
[b]'threaded', 'nested', 'nocomments' and 'flat'[/b]
 


but I have no idea what the error is! Can someone help me
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
That should be in one line, not two. Everything after the // is a comment.

bye, Dirk
 Quote

geek

Anonymous
Okay, so... since presumably this code is the same for everyone, what SHOULD line 592 be?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Text Formatted Code
590: $_CONF['comment_limit']         = 100;        // Default Number of Comments under Story
591: $_CONF['comment_mode']          = 'threaded'; // Default Comment Mode; from 'threaded','nested','nocomments',and 'flat'
592: // Allow / disallow comments to stories by default (can be changed individually for every story)
593: $_CONF['comment_code']          = 0; // 0 = comments enabled, -1 = disabled
 

(for Geeklog 1.3.11sr2)

bye, Dirk
 Quote

geek

Anonymous
confused
Thanks! I think I've sorted that, now I'm getting this:


Warning: main(/home/geek/public_html/config.php/system/classes/timer.class.php): failed to open stream: Not a directory in /home/geek/public_html/lib-common.php on line 159

Fatal error: main(): Failed opening required '/home/geek/public_html/config.php/system/classes/timer.class.php' (include_path='/home/geek/public_html/config.php/system/pear/:.:/usr/lib/php:/usr/local/lib/php') in /home/geek/public_html/lib-common.php on line 159
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Your $_CONF['path'] should not contain "config.php". It's only a path and should end in a slash.

bye, Dirk
 Quote

All times are EST. The time is now 10:26 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