Posted on: 05/31/07 05:48pm
By: rob62
Will someone please help!!!!
Page 1:
Hint: The complete path to this file is /home/content/l/i/b/libby86/html/geeklog/public_html/admin/install/install.php
and it appears your Path to Geeklog is /home/content/l/i/b/libby86/html/geeklog
My path is: mydomain.com/geeklog/public_htm/admin/install/install.php
config.php being in the geeklog directory
Page 2:
Parse error: parse error, unexpected T_STRING in /home/content/l/i/b/libby86/html/geeklog/config.php on line 362
Line 362:
$_CONF['site_enabled'] = true; // true or false
:banghead: :banghead: :banghead: :banghead:
Re: Install problem
Posted on: 05/31/07 07:13pm
By: jmucchiello
Parse error: parse error, unexpected T_STRING in /home/content/l/i/b/libby86/html/geeklog/config.php on line 362
This usually means there is a missing quote mark or parenthesis or bracket or something on a previous line. If you are comfortable with code, comment out a few lines above 362 to find the line causing the error. If not, reply to this with 10 or so lines of your config.php just before line 362.
Re: Install problem
Posted on: 06/01/07 01:55am
By: Dirk
Re: Install problem
Posted on: 06/01/07 08:13am
By: Anonymous (rob62)
Thanks for responding.
Quote by: jmucchielloParse error: parse error, unexpected T_STRING in /home/content/l/i/b/libby86/html/geeklog/config.php on line 362
This usually means there is a missing quote mark or parenthesis or bracket or something on a previous line. If you are comfortable with code, comment out a few lines above 362 to find the line causing the error. If not, reply to this with 10 or so lines of your config.php just before line 362.
I do not know the code but do know about paths and syntax errors. Eariler I found a syntax error which got me to Page 1.
Here is the code you asked for:
// Please note that this does not work when safe_mode is on!
//
// For more information, see this discussion on geeklog.net:
// http://www.geeklog.net/forum/viewtopic.php?showtopic=21232
// $_CONF['timezone'] = 'Etc/GMT-6'; // e.g. 6 hours behind GMT
// Bob ADDED THE SCRIPT BELOW FROM THE ABOVE FORUM.
// IF IT DON'T WORK, TRY '/GMT-4
require_once('/path/to/config.php'
;
if ( !empty($_CONF['timezone'])
&& !ini_get("safe_mode"
) {
putenv("TZ=".$_CONF['timezone']='US/MICHIGAN);
}
// +---------------------------------------------------------------------------+
// | SITE STATUS |
// | |
// | To disable your Geeklog site quickly, simply set this flag to false |
// +---------------------------------------------------------------------------+
$_CONF['site_enabled'] = true; // true or false
Re: Install problem
Posted on: 06/01/07 08:15am
By: Anonymous (rob62)
Thanks for responding.
I did this and found one error which got me to Page 1. I do not know the language yet.
Re: Install problem
Posted on: 06/01/07 12:47pm
By: Anonymous (Dat)
require_once('/path/to/config.php';
[/p]
Change the require once code.
Text Formatted Code
require_once('/home/content/l/i/b/libby86/html/geeklog/config.php');
Re: Install problem
Posted on: 06/01/07 07:10pm
By: Anonymous (rob62)
Quote by: Dat
require_once('/path/to/config.php';
Change the require once code.
Text Formatted Code
require_once('/home/content/l/i/b/libby86/html/geeklog/config.php');
[/p][/QUOTE]
I tried many variations of the path and they all gave the exact same error message on page one. :banghead: :banghead: :banghead: :banghead: :banghead:
Re: Install problem
Posted on: 06/01/07 09:03pm
By: Anonymous (rob62)
Update:
I rem the time zone out and still get the same message on page 1.
Re: Install problem
Posted on: 06/02/07 12:34am
By: jmucchiello
Is that require_once in your config.php? That is completely wrong. How'd it get there?
You might want to extract a clean config.php from an archive and start over with it because there should be no require_once statements in the config.php.
Re: Install problem
Posted on: 06/02/07 03:38am
By: Dirk
As Joe said: Remove that require_once and that timezone code from your config.php - it doesn't belong there.
Get your site working first, then you can start worrying about the timezone.
bye, Dirk