Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 08:48 am EST
Geeklog Forums
Install run and completed. Index page can't getDB
Status: offline
qwikstreet
Forum User
Junior
Registered: 08/15/02
Posts: 32
All the MySQL tables are made. However, when I go to index.php I get:
Fatal error: Call to undefined function: db_getitem() in /home/drinking/public_html/index.php on line 54
Line 54 on that file is:
if (DB_getItem ($_TABLES['gl_plugins'], 'pi_enabled', "pi_name = 'staticpages'" == 1) {
10
11
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Is this the first error you're getting? No parse errors or "header already sent" or any other messages before that?
DB_getItem() is defined in system/lib-database.php, so I can only assume it doesn't find that file.
bye, Dirk
9
11
Quote
Status: offline
qwikstreet
Forum User
Junior
Registered: 08/15/02
Posts: 32
It's listed in there the lib file.
On line 73 0f it it has:
$_TABLES['plugins'] = $_DB_table_prefix . 'plugins';
7
8
Quote
Status: offline
qwikstreet
Forum User
Junior
Registered: 08/15/02
Posts: 32
i knew you and others knew where it was. I just posted it in the
ticket trying to give as much info as I could. Pard me for trying.
Maybe it would be beter if I write:
Me install. it don't work. Get error. Can you help? (As I drag my
knuckles across the floor.)
So, what were you trying to refer to? Or is this beneath answering
now?
8
11
Quote
Status: offline
qwikstreet
Forum User
Junior
Registered: 08/15/02
Posts: 32
Do you mean these lines in the lib file: (line 225-234)
function DB_getItem($table,$what,$selection='')
{
if (!empty($selection)) {
$result = DB_query("SELECT $what FROM $table WHERE
$selection"
} else {
$result = DB_query("SELECT $what FROM $table"
}
$ITEM = DB_fetchArray($result);
return $ITEM[0];
}
7
27
Quote
Status: offline
qwikstreet
Forum User
Junior
Registered: 08/15/02
Posts: 32
Just trying to get an understanding of why it couldn't find file/
function. I didn't remove or change and directory order from the tar
file I downloaded from here. File structure, layout, and config.php
are exact to older versions of GL I am running.
9
8
Quote
Anonymous
Anonymous
You still didn't answer Dirk's questions: Is this the first error you're getting? No parse errors or "header already sent" or any other messages before that?
If you are getting any other errors please post them. If you are not, what plugins do you have installed?
If you are getting any other errors please post them. If you are not, what plugins do you have installed?
9
8
Quote
Status: offline
qwikstreet
Forum User
Junior
Registered: 08/15/02
Posts: 32
In my first comment to this thread I did go on to mention that I had an error trying to install and I mentioned it was posted in this help section just a little bit ago. About 4-5 threads earlier.
I finally noticed that information did not publish with the first comment. It happened in my last post as well. It looks like comments are limited to ammount of characters.
7
11
Quote
Status: offline
qwikstreet
Forum User
Junior
Registered: 08/15/02
Posts: 32
My earlier article today was titled "Installing new Geeklog site, parse error in lib-common"
This was an error on an install attempt, no sql tables were created.
Parse error: parse error, unexpected '<' in /home/drinking/public_html/lib-common.php on line 2664
How I bypassed this was by deleting some index.php lines I someone posted earlier on this subject. I beleive Dirk, not sure.
8
7
Quote
Status: offline
qwikstreet
Forum User
Junior
Registered: 08/15/02
Posts: 32
Oh, and also. I have not added any extra scripts at this time. This is a fresh clean install using the 1.3.7r version that was just released.
7
10
Quote
Status: offline
qwikstreet
Forum User
Junior
Registered: 08/15/02
Posts: 32
One more item. The lines that I removed in index.php to resolve those '<','<" erros was listed in rawdate's reply:
http://www.geeklog.net/article.php?story=20030308155537101
7
4
Quote
Status: offline
rawdata
Forum User
Full Member
Registered: 02/17/03
Posts: 236
Deleting those lines was only meant to help stop the infinite refresh loop someone else in that thread was experiencing. Since you got a parse error in the middle of lib-common.php, that's usually an indication your file is corrupted. I recommend you go back to the tarball and get a brand new copy of lib-common.php plus index.php and upload them to your server and see if that fixes the problem. If not, post what error message you get after doing this.
9
6
Quote
Status: offline
qwikstreet
Forum User
Junior
Registered: 08/15/02
Posts: 32
Ok rawdate, you hooked me up twice so far today. I know get some usual error suspects when I view the index page. This one is a new one I didn't see yet:
Warning: Cannot modify header information - headers already sent by (output started at /home/drinking/config.php:448) in /home/drinking/system/lib-sessions.php on line 163
I'll be looking into this, unless rawdata knows this as well.
11
13
Quote
Status: offline
rawdata
Forum User
Full Member
Registered: 02/17/03
Posts: 236
That one means you have extra spaces or lines either above the <?php or below the ?> in your config.php file. It could also mean the file has some stray characters in it, but the most common cause of that error message is extra spaces and blank lines. So, look for those first and delete them.
12
12
Quote
Status: offline
qwikstreet
Forum User
Junior
Registered: 08/15/02
Posts: 32
yeah thanks. I looked it up and seen you mention it before. The config file had like 5 lines.
28
11
Quote
All times are EST. The time is now 08:48 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