Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: MegaV1 on May 21, 2006, 05:24:36 AM

Title: Fatal error: Call to undefined function: db_query() in /home/nextgene/public_htm
Post by: MegaV1 on May 21, 2006, 05:24:36 AM
Fatal error: Call to undefined function: db_query() in /home/nextgene/public_html/forum/TopicSolvedPdb.php on line 37

i got that when i try to install
Topic Solved MOD

i have to install this mod manually, so what do i do now?
Title: Re: Fatal error: Call to undefined function: db_query() in /home/nextgene/public
Post by: kegobeer on May 21, 2006, 09:27:28 AM
You post your question on that mod's thread instead of starting a new thread.
Title: Re: Fatal error: Call to undefined function: db_query() in /home/nextgene/public
Post by: MegaV1 on May 22, 2006, 04:25:08 AM
i get this error for most the the mods that need db changes
Title: Re: Fatal error: Call to undefined function: db_query() in /home/nextgene/public
Post by: MegaV1 on May 23, 2006, 12:50:32 PM
$request = db_query("
SHOW COLUMNS
FROM {$db_prefix}messages
LIKE 'topicSolved'", __FILE__, __LINE__);
$need_add = mysql_num_rows($request) == 0;
if ($need_add)
db_query("
ALTER TABLE {$db_prefix}messages
ADD `topicSolved` TINYINT(4) DEFAULT '0' NOT NULL", __FILE__, __LINE__);


How do i perform this manually
Title: Re: Fatal error: Call to undefined function: db_query() in /home/nextgene/public_htm
Post by: Oldiesmann on May 23, 2006, 01:40:37 PM
Add this to the top of the file (right after the <?php tag):

include_once('SSI.php');

That will let you run the script manually.
Title: Re: Fatal error: Call to undefined function: db_query() in /home/nextgene/public
Post by: MegaV1 on May 23, 2006, 09:57:05 PM
well, i went to PHP MyAdmin and did it manually, now this is what i got
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND ID_MSG != 2240' at line 3
File: /home/nextgene/public_html/forum/Sources/Post.php
Line: 2023

Note: It appears that your database may require an upgrade. Your forum files are currently at version SMF 1.0.7, whereas your database is at version SMF 1.0.2. It is recommended that you execute the latest version of upgrade.php.


i tired to fix it and this is what i got
2: Missing argument 2 for db_query()
File: /home/nextgene/public_html/forum/Sources/Subs.php
Line: 216


does anyone know how
, __FILE__, __LINE__
means?
Title: Re: Fatal error: Call to undefined function: db_query() in /home/nextgene/public
Post by: MegaV1 on May 24, 2006, 12:31:01 AM
on my who's online thingy, it says

25 4 Spiders, Guests, 0 Buddies, 9 Users

how can i change it to say

4 Spiders, 25 Guests, 0 Buddies, 9 Users

or

25 Guests, 4 Spiders, 0 Buddies, 9 Users