Helpful Information
 
 
Category: Advanced Warning System (AWS)
Help with a few errors

Hi

I upgraded from zero's warning script to this one everything went fine however i am getting the following errors:

Invalid SQL: select w.*,u.username as wusername,u.userid as wuserid,wt.*, wrn.username as warnername, wrn.userid as warnerid, ruser.username as removed_by_v, (w.warned_time+wt.warn_maturity*24*60*60) AS maturitydate from
vb_warnings w
left join vb_user u on(u.userid=383)
left join vb_user wrn on(wrn.userid=w.warned_by)
left join vb_user ruser on(ruser.userid=w.removed_by)
left join vb_warning_types wt on(wt.tid=w.warned_warning_id)
where w.warned_user='383' order by w.warned_time
mysql error: Unknown column 'w.removed_by' in 'on clause'

mysql error number: 1054


Invalid SQL: select * from vb_warnings where warned_post='12321' AND warned_status='A'
mysql error: Unknown column 'warned_status' in 'where clause'

mysql error number: 1054

also when i try to view or warn a member the warn.php page is completely blank.

any help please.

Kirk

hi,

MySQL errors

you are for some reason missing some requirerd tables in your database to add the "removed by" field run


ALTER TABLE vb_warnings ADD COLUMN removed_by int(15);


to add the "warned_status" field


ALTER TABLE vb_warnings ADD COLUMN warned_status char(1);


the blank page problem
are you using more then one (the default) vbulletin style if so the install script only adds the aws templates to the master (default) style here's (http://www.vbulletin.org/forum/showthread.php?t=72288) a hack that allows you to copy templates from one style to another

hi,

MySQL errors

you are for some reason missing some requirerd tables in your database to add the "removed by" field run


ALTER TABLE vb_warnings ADD COLUMN removed_by int(15);


to add the "warned_status" field


ALTER TABLE vb_warnings ADD COLUMN warned_status char(1);


the blank page problem
are you using more then one (the default) vbulletin style if so the install script only adds the aws templates to the master (default) style here's (http://www.vbulletin.org/forum/showthread.php?t=72288) a hack that allows you to copy templates from one style to another
I am not sure why this thing is happening, people are having problems with some fields in the warnings table. Check which fields you have there, and see if you have the ones shown in the query below. If not, run the query.


alter table ".TABLE_PREFIX."warnings
add `warned_status` char(1), add `caused_ban` char(1), add `removed_by` int(15), add `removed_date` int(15)










privacy (GDPR)