Welcome to Geeklog, Anonymous Thursday, October 03 2024 @ 08:08 pm EDT

Geeklog Forums

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING


Ketch

Anonymous
Hey,
I am helping a buddy set-up his website again and I have got this error but am not seeing what is wrong. Any help would be great.

ERROR "Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/juicedom/public_html/config.php on line 72"

Code:
69 // You only need to change this if you moved or renamed the public_html
70 // directory. In that case, you should specify the complete path to the
71 // directory like this (i.e. without the $_CONF['/home/juicedom/public_html']):
72 // $_CONF['path_html'] = ['/home/juicedom/public_html'];
73 $_CONF['path_html'] = $_CONF['path'] . '';
 Quote

Status: offline

Turner

Forum User
Chatty
Registered: 04/11/05
Posts: 42
Well line 73 has a problem. Take out the period and quotation mark at the end. The line should end with a semi colon. You are also making 'path_html' = to 'path'. Be sure that is what you want to do. I think you REALLY want this

$_CONF['path_html'] = $_CONF['path'] . 'public_html/';
 Quote

Ketch

Anonymous
I tried that and it still doesn;t work. Any other Ideas? look at www.juicedome.com for the error. I appreciate the help
 Quote

Status: offline

Turner

Forum User
Chatty
Registered: 04/11/05
Posts: 42
I can't exactly tell without more of your config.php. But it seems the config.php file is located in your public html. I don't think that is advisable. It should be in /home/juicedom

Lib-common needs to be edited so that it looks to /home/juicedom/config.php

So then

$_CONF['path'] = '/home/juicedom/';

$_CONF['path_html'] = $_CONF['path'] . 'public_html/';

In lib-common.php

require_once( '/home/juicedom/config.php' );

If that doesn't work, then you may have white space at the beginning or end of lib-common (or even in config.php). Check to make sure all files are where they should be.

-jeff
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Also keep in mind that the actual problem may be before that line mentioned in the error message.

Read the FAQ http://www.geeklog.net/docs/install.html#parse-error
 Quote

All times are EDT. The time is now 08:08 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