Forum Moderators: coopster

Message Too Old, No Replies

Installation error

installation error

         

terminator

2:48 pm on Jun 26, 2005 (gmt 0)

10+ Year Member



Hey guys, I am a newbie to php. I am trying to setup geeklog on the internet. However, I get the following error. I would appreciate any help than you guys could provide. I am sure someone has seen this error before and could provide guidance on this issue.

Parse error: parse error, unexpected '<', expecting ')' in /home/cartiqco/public_html/geeklog/config.php on line 157

If needed I can post the config.php if that would help.

Thanks

terminator

4:20 pm on Jun 26, 2005 (gmt 0)

10+ Year Member



Below is the only changes I have made to the config.php. Hopefully a more experienced eye will detect something.

// This should point to the directory where your config.php file resides.
$_CONF['path'] = '/home/cartiqco/public_html/geeklog/'; // should end in a slash

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

// +---------------------------------------------------------------------------+
// ¦ (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).
$_CONF['site_url'] = 'http://www.example.com';

// Some hosting services have a preconfigured admin directory. In that case,
// you need to rename Geeklog's admin directory to something like "myadmin"
// and change the following URL as well. Leave as is until you experience any
// problems accessing Geeklog's admin menu.
$_CONF['site_admin_url'] = $_CONF['site_url'] . '/admin';

// This is the return address for all email sent by Geeklog:
$_CONF['site_mail'] = 'admin@example.com';

// Name and slogan of your site
$_CONF['site_name'] = 'Geeklog Site';
$_CONF['site_slogan'] = 'Another Nifty Geeklog Site';

ergophobe

4:31 pm on Jun 26, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hi terminator and welcome to WebmasterWorld.

Thanks for not starting us out with a code dump! Anyway, in this case, you might want to post lines 150-157 for us. If you do not already have an editor that shows line numbers, get one - it's an indispensable tool.

Probably culprits are unmatched quotes in your script either on the line in question or somewhere above that line. Perhaps you forgot to escape out of php (no?> tag).

For some more reading, look at the troubleshooting threads referenced in the forum charter down near the bottom

[webmasterworld.com...]

terminator

7:03 pm on Jun 26, 2005 (gmt 0)

10+ Year Member



Ergophobe, thanks for your response. The?> entry is the last entry in the file.

[edited by: ergophobe at 9:50 pm (utc) on June 26, 2005]
[edit reason] code dump snipped - see forum charter [/edit]

ergophobe

9:56 pm on Jun 26, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



The?> should be the last line of the file usually, but you may need another one in there. It sounds to me like you are trying to mix HTML and PHP without escaping from PHP.

[php.net...]

terminator

1:12 am on Jun 27, 2005 (gmt 0)

10+ Year Member



Well, all I did to this file is the recommended changes as per the installation instructions. Other than that I am at a lost as to what is causing this error.

ergophobe

4:41 pm on Jun 29, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Make sure all of your quotes are matched. That's probably where the problem is.

Start by commenting out huge blocks and then narrow it down until you figure out which line is causing the problem.