Welcome to Geeklog, Anonymous Thursday, November 28 2024 @ 08:46 am EST

Geeklog Forums

Fatal error installing Bad Behaviour


Status: offline

barrywong

Forum User
Regular Poster
Registered: 04/12/02
Posts: 95
I downloaded Bad_behaviour_1.2.4_1.3.10.tar.gz and am trying to install it on my Geeklog 1.3.11sr3.

I got to step 4 without problems. When I got t step 5:


5) Edit your lib-common.php file. Find the line where the lib-database.php is
included:

require_once( $_CONF['path_system'] . 'lib-database.php' );

AFTER that line, add:

require_once( $_CONF['path_html'] . '/bad_behavior/bad-behavior-geeklog.php' );


When I added the above line of code on Lin 190 of lib-common-php, I immediately got the following error message on my browser:

Fatal error: Failed opening required '/to my geeklog directory/public_html//bad_behavior/bad-behavior-geeklog.php' (include_path='/to my geeklog directory/system/pear/:.:/usr/share/php') in /to my geeklog directory/public_html/lib-common.php on line 190


I noticed that the is a double // between public_html and bad_behaviour.

Can anyone help me?

Thank you
 Quote

Status: offline

1000ideen

Forum User
Full Member
Registered: 08/04/03
Posts: 1298
Did you check these 3 settings in your config.php?
$_CONF['path']
$_CONF['path_html']
$_CONF['site_url']
 Quote

Status: offline

barrywong

Forum User
Regular Poster
Registered: 04/12/02
Posts: 95
Oops!!!

So very sorry.. It was a mistake of mine. I created directories as bad_behaviour instead of bad_behavior.

Apologies!!! Doh! - that was a mistake
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
That extra slash is actually a mistake in the installation instructions. Shouldn't have any negative impact, though.

So the extra line to be added to lib-common.php should really read
Text Formatted Code
require_once( $_CONF['path_html'] . 'bad_behavior/bad-behavior-geeklog.php' );
 

bye, Dirk
 Quote

Status: offline

barrywong

Forum User
Regular Poster
Registered: 04/12/02
Posts: 95
Thank you for the response.

Razz
 Quote

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