vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Sql (https://vborg.vbsupport.ru/showthread.php?t=52306)

Hobbes 04-29-2003 01:26 AM

Sql
 
[sql]
Database error in vBulletin Mod Control Panel 2.2.6:

Invalid SQL: INSERT INTO modlog (modlogid,userid,dateline,script,action,extrainfo, ipaddress) VALUES (NULL,'417',1051583741,'index.php','','','12.240.1 2.172')
mysql error: Unknown column 'modlogid' in 'field list'

mysql error number: 1054
[/sql]


and the query executed in the install does not add the modlogid field. how is it im the only one having this problem? or no one posted in the thread....and yeah....help???

DigitalDesktops 04-29-2003 01:50 AM

try deleting the modlog table, and run this query:

[sql]CREATE TABLE modlog (
modlogid int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
userid int(10) unsigned DEFAULT '0' NOT NULL,
dateline int(10) unsigned DEFAULT '0' NOT NULL,
script char(20) NOT NULL,
action char(20) NOT NULL,
extrainfo char(200) NOT NULL,
ipaddress VARCHAR(15) NOT NULL,
PRIMARY KEY (modlogid)
);
[/sql]

Hobbes 04-29-2003 02:11 AM

dude, you rock...omg...yes....thank you...!

Hobbes 04-29-2003 02:13 AM

last thign im getting

[sql]Database error in vBulletin Control Panel 2.2.6:

Invalid SQL: SELECT type,modlog.userid as userid,modlog.threadid as threadid,fromforumid,toforumid,modlog.timestamp as timestamp,threadtitle,username
FROM modlog
LEFT JOIN user ON modlog.userid = user.userid

ORDER BY modlog.timestamp DESC
LIMIT 0,25
mysql error: Unknown column 'type' in 'field list'

mysql error number: 1054

[/sql]

digitaldesktops you rock,btw.

Hobbes 04-29-2003 09:39 PM

also, i think the 'type' field is missing...i could drop the query and rerun it, and add the ALTER table 'modlog' ADD field 'type'..or something.... help ????

Hobbes 04-30-2003 12:07 AM

ok w00t...done..and done.....:D thanks digitaldesktops j00 rock!!!


All times are GMT. The time now is 07:58 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01073 seconds
  • Memory Usage 1,713KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete