News: September 21st, 2019, The Tinyportal team is pleased to announce the release of ~~ TinyPortal 1.6.4! GET IT NOW!!!

Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media
Welcome, Guest. Please login or register.
Did you miss your activation email?

November 18, 2019, 08:53:13 PM

Login with username, password and session length

Recent

Members
Stats
  • Total Posts: 189259
  • Total Topics: 20772
  • Online Today: 332
  • Online Ever: 629
  • (November 08, 2018, 01:36:54 PM)
Users Online
Users: 0
Guests: 130
Total: 130

Author Topic: Missing argument 2 for db_query()  (Read 1865 times)

0 Members and 1 Guest are viewing this topic.

angeljs

  • Guest
Missing argument 2 for db_query()
« on: November 02, 2006, 08:23:58 AM »
Hi, I managed to get TinyPortal installed on SMF 1.0.9, but the index page gives this error:
Code: [Select]
Missing argument 2 for db_query()
File: /home/*******/public_html/smf/Sources/Subs.php
Line: 216
What could the problem be? I'm not very experienced with SMF, and don't really know what's causing the error. The line that related to this error in Subs.php is:
Code: [Select]
function db_query($db_string, $file, $line)

akulion

  • Guest
Re: Missing argument 2 for db_query()
« Reply #1 on: November 02, 2006, 08:31:34 AM »
You are most likely using the incorrect theme version for SMF 1.0.9 + TP 0.95/.96

You can get the correct versions from here
http://www.tinyportal.net/smf/index.php?action=tpmod;dl=cat7

However befre installing any of those themes you will have to go to default core theme - set it as default

then unistall the incompatible themes - delete their folders from the Themes folder via FTP

and then finally install the new versions

angeljs

  • Guest
Re: Missing argument 2 for db_query()
« Reply #2 on: November 02, 2006, 01:51:57 PM »
Ok, I'll try that, thanks a lot! :)