Welcome to Geeklog, Anonymous Thursday, May 16 2024 @ 11:11 pm EDT

Geeklog Forums

Fatal error on line 117 :(


booeyschewy

Anonymous
I have been tweaking and tweaking with the pathways and get this:

Fatal error: Cannot instantiate non-existent class: database in /home/.ellery/booeyschewy/stumptownworker.com/geeklog/system/lib-database.php on line 117

The install docs say that I must have a corrupted lib file. I unpacked the tarball with winrar and only edited with windows notepad, to no avail. Any ideas?
 Quote

Status: offline

knuff

Forum User
Full Member
Registered: 12/17/04
Posts: 340
Location:Sweden
Hi,

Did you do a search here on the forum ?

One quick quote from Dirk from a previous post:

Quote by Dirk: Is that the first error message you get? It's usually preceded by another one, e.g. a parse error or a "file not found" message.

Since I have to guess, I'd say it's either a path problem (double-check your paths) or you changed the $_DB_dbms variable (which you shouldn't).


So if you get a parse error in e.g. lib-common.php please add that line too.
Makes life easier in assisting.

Best Regards,
Boris

Vanrillaer.com - our Family Portal
 Quote

booeyschewy

Anonymous
Thats the only error I get. I did search, I will try again Smile
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
It could also be a parse error in config.php

If you can, increase the level of your error reporting. This FAQ entries has a few tips.

bye, Dirk
 Quote

booeyschewy

Anonymous
Looks like it might be that I have a url, rather than a drive letter in my config file? What would the drive be given that it is on a server and not my computer, sorry if that is clueless.

I have tried changing the CONF pathhtml section to no avail. I am stumpted.

my config file
+---------------------------------------------------------------------------+
// | (1) Database Settings |
// +---------------------------------------------------------------------------+

$_DB_host = 'mysql.mysite.com'; // host name or IP address of your DB server
$_DB_name = 'mysite'; // name of your database,
// must exist before running the installer!
$_DB_user = 'myname'; // MySQL user name
$_DB_pass = 'mypwd'; // MySQL password

// The table prefix is prepended to each table used by Geeklog to avoid name
// collisions with other tables that may already exist in your database.
$_DB_table_prefix = 'gl_'; // e.g. 'gl_'


// +---------------------------------------------------------------------------+
// | (2) Paths |
// +---------------------------------------------------------------------------+

// Note for Windows users: It's safe to use the forward slash '/' instead of
// the backslash '' in paths. Make sure each path starts with a drive letter!

// This should point to the directory where your config.php file resides.
$_CONF['path'] = 'http://mysite.com/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'] = $_CONF['path'] . '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.mysite/geeklog';

// 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'] = 'my email';

// Name and slogan of your site
$_CONF['site_name'] = 'mysite';
$_CONF['site_slogan'] = 'stuff';


//

On my lib_common file I tried a lot of stuff.

require_once( '/geeklog/config.php' )
I also tried '/home/.ellery/myusername/mysite/geeklog'
 Quote

booeyschewy

Anonymous
I added that line as such (I also added it without the additional slashes, but then tried that as a second go)


error_reporting( E_ERROR

| E_WARNING | E_PARSE | E_COMPILE_ERROR );//
ini_set

('display_errors', '1')
//**
*

Nothing new happened.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by booeyschewy: // This should point to the directory where your config.php file resides.
$_CONF['path'] = 'http://mysite.com/geeklog/'; // should end in a slash

This should be a path (obviously), not a URL.

bye, Dirk
 Quote

booeyschewy

Anonymous
Cool, dealt with that. Man I feel like a moron now.

Now I am at step 2 and it told me that the it couldn't find the admin/install/success.php file, I went back and then to next again and it tells me

1050: Table 'gl_access' already exists
 Quote

booeyschewy

Anonymous
Thanks for the help and stuff! Sorry I am botching things.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany

booeyschewy

Anonymous
I figured out that it was probably my $_CONF['site_url'] as it wasn't pointing to public_html, but then changed it and keep getting the same gl database already created message
 Quote

booeyschewy

Anonymous
Embarassed Embarassed Embarassed

I figured it out and got it. I had a bad path in lib-common.

THANKS!!!! Big Celebration
 Quote

All times are EDT. The time is now 11:11 pm.

  • 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