The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Cannot understand why this not work
Can anyone explain, why this works:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
#2
|
||||
|
||||
What table did you specify? Not all tables have a column named "userid".
|
#3
|
||||
|
||||
My table has. userid is the primary key in an added table (same database!). Different is, the searched column wasn't username but user_name. Surely I used that, too. Still cannot understand, why this won't work.
|
#4
|
||||
|
||||
What is the SQL error? You would get an email with the SQL error if you've added your email in the dbtechnicalemail (or something like that) in the core config.
|
#5
|
||||
|
||||
Quote:
I get "That action could not be completed. Please try again, and if this occurs again please contact the system administrator and tell them how you got this message. " This works: PHP Code:
|
#6
|
||||
|
||||
Enable debug mode in the root config and core config to see the error stack trace.
|
#7
|
||||
|
||||
Quote:
HTML Code:
Debug: Error <b>API Error</b><br><b>Error:</b> invalid_query_definition_x<br><b>Args:</b><br><pre style="font-family:Lucida Console,Monaco5,monospace;font-size:small;overflow:auto;border:1px solid #CCC;">array ( 0 => 'tablename', )</pre> occurred in file /var/www/xxxxxxx.xx/core/vb/db/query.php on line 298 Trace Function getQuery in file /var/www/xxxxxx.xx/core/vb/db/assertor.php line 225 I know now, why this not work. User delicjous helps me to found out. My table was not defined in querydefs.php. Since it is defined in, I get no errors anymore by using function getDbAssertor(). How should anyone know this? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|