vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Advanced Warning System (AWS) (https://vborg.vbsupport.ru/forumdisplay.php?f=105)
-   -   Help with a few errors (https://vborg.vbsupport.ru/showthread.php?t=78149)

mekro 03-15-2005 07:40 AM

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:

Code:

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

Code:

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

Delphiprogrammi 03-15-2005 09:39 PM

hi,

MySQL errors

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

Code:

ALTER TABLE vb_warnings ADD COLUMN removed_by int(15);
to add the "warned_status" field

Code:

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 a hack that allows you to copy templates from one style to another

sv1cec 03-16-2005 07:47 AM

Quote:

Originally Posted by Delphiprogrammi
hi,

MySQL errors

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

Code:

ALTER TABLE vb_warnings ADD COLUMN removed_by int(15);
to add the "warned_status" field

Code:

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 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.

Code:

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)



All times are GMT. The time now is 07:38 AM.

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.01828 seconds
  • Memory Usage 1,722KB
  • 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
  • (7)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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