Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 11:05 am EST
Geeklog Forums
unexpected T_STRING?
spock
Anonymous
So I'm getting this error message after upgrading my site to 1.4.
Parse error: parse error, unexpected T_STRING in /mnt/web_h/d09/s33/b01f8ecf/www/config.php on line 81
And here are the lines 77 to 82 from config.php.
// | (3) Site Settings |
// +---------------------------------------------------------------------------+
// Make sure this is the correct URL to your site, i.e. to where Geeklog's
// index.php file resides (no trailing slash).
Frankly, I'm stumped. Where is the t_string? Or am I looking at the wrong file?
Parse error: parse error, unexpected T_STRING in /mnt/web_h/d09/s33/b01f8ecf/www/config.php on line 81
And here are the lines 77 to 82 from config.php.
Text Formatted Code
// +---------------------------------------------------------------------------+// | (3) Site Settings |
// +---------------------------------------------------------------------------+
// Make sure this is the correct URL to your site, i.e. to where Geeklog's
// index.php file resides (no trailing slash).
Frankly, I'm stumped. Where is the t_string? Or am I looking at the wrong file?
5
5
Quote
spock
Anonymous
Quote by Dirk: I would assume the problem is with $_CONF['path_html'] or $_CONF['path'] - probably a missing quote.
bye, Dirk
bye, Dirk
I solved that. Now I'm getting a different warning
Text Formatted Code
Warning: fopen(/mnt/web_h/d09/s33/b01f8ecf/www/public_html/logs/error.log) [function.fopen]: failed to open stream: No such file or directory in /mnt/web_h/d09/s33/b01f8ecf/www/public_html/lib-common.php on line 1702An SQL error has occurred. Please see error.log for details.
The problem as far as I can see it is that Geeklog is still calling the folders that I removed and placed outside of public_html and still thinks they are located inside public_html folder. In the visual overview, the logs folder is placed below www, which is where I placed it. Then why does my Geeklog still thinks this folder (and most others like system) are located inside public_html...? I'm guessing it's due to some bad code in config.php?
5
4
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
The two crucial paths to get right are $_CONF['path'] and $_PATH['path_html'].
The former points to the directory outside of your web root (i.e. where config.php and the logs directory are located), the latter points to the web root (i.e. where index.php and lib-common.php are located).
And make sure your lib-common.php includes the correct config.php.
bye, Dirk
The former points to the directory outside of your web root (i.e. where config.php and the logs directory are located), the latter points to the web root (i.e. where index.php and lib-common.php are located).
And make sure your lib-common.php includes the correct config.php.
bye, Dirk
5
6
Quote
All times are EST. The time is now 11:05 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