Welcome to Geeklog, Anonymous Wednesday, February 05 2025 @ 11:06 am EST

Geeklog Forums

Parse Error - Please Help!!!


idorafan

Anonymous
stressed
First let me say thank you for any help provided!

My web host changed our site from one server to another and we have had nothing but problems since...

our original errors were:
Warning: main() [function.main]: open_basedir restriction in effect. File(/home2/downtown/public_html/config.php) is not within the allowed path(s): (/home/downtown:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/downtown/public_html/lib-common.php on line 69

Warning: main(/home2/downtown/public_html/config.php) [function.main]: failed to open stream: Operation not permitted in /home/downtown/public_html/lib-common.php on line 69

Fatal error: main() [function.require]: Failed opening required '/home2/downtown/public_html/config.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/downtown/public_html/lib-common.php on line 69

This has been fixed because the host told us the new path was /home/ instead of /home2/

We fixed it by making the following changes:

in config.php
changed line 68 from:
$_CONF['path'] = '/home2/downtown/public_html/';
to
$_CONF['path'] = '/home/downtown/public_html/';

in lib-commin.php
changed line 69 from:
require_once( '/home2/downtown/public_html/config.php' );
to
require_once( '/home/downtown/public_html/config.php' );

Now we are seeing this:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/downtown/public_html/lib-common.php on line 4691


Line 4691 looks like this:

else if( $A['type'] ']']']== ']']']==']']==']=='poll' )

Which doesn't make any sense for an error to me!!!

Can anyone help?

THANK YOU!!!!
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by idorafan: Line 4691 looks like this:

else if( $A['type'] ']']']== ']']']==']']==']=='poll' )

Which doesn't make any sense for an error to me!!!

Your lib-common.php has been corrupted. Get a fresh copy of that file and use another editor when changing the path to config.php

bye, Dirk
 Quote

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