vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   getting SQL error (https://vborg.vbsupport.ru/showthread.php?t=80986)

Pain86 05-04-2005 06:33 PM

getting SQL error
 
when i try to edit a user group i get this error

Code:

Database error in vBulletin 3.0.6:

Invalid SQL: UPDATE usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
        title = 'V.I.P',
        description = '',
        usertitle = 'V.I.P Member',
        opentag = '#FF0000',
        closetag = '',
        passwordexpires = '0',
        passwordhistory = '0',
        ispublicgroup = '0',
        canoverride = '0',
        canviewarticles = '0',
        canviewcomments = '0',
        canpostarticles = '0',
        cancomment = '0',
        canedownart = '0',
        canedothart = '0',
        candelownart = '0',
        candelothart = '0',
        canfeature = '0',
        cansearchart = '0',
        canratearticles = '0',
        canviewartmedia = '0',
        attachlimit = '1000000',
        avatarmaxwidth = '150',
        avatarmaxheight = '150',
        avatarmaxsize = '20000',
        profilepicmaxwidth = '1000',
        profilepicmaxheight = '1000',
        profilepicmaxsize = '25000',
        pmquota = '200',
        pmsendmax = '5',
        forumpermissions = '1438719',
        pmpermissions = '0',
        calendarpermissions = '31',
        wolpermissions = '1',
        adminpermissions = '0',
        genericpermissions = '3932159',
        genericoptions = '31'
WHERE usergroupid=12
mysql error: Unknown column 'canviewarticles' in 'field list'

mysql error number: 1054

any help?

Zachery 05-04-2005 06:49 PM

Quote:

Originally Posted by Pain86
mysql error: Unknown column 'canviewarticles' in 'field list'

That is your problem.

Pain86 05-04-2005 06:58 PM

so what do i do to fix it?

Paul M 05-04-2005 08:11 PM

You have obviously installed some sort of articles hack, but it's not installed correctly. You need to re-install it properly, or post in the support topic for the hack you have installed.

Dionysis 05-05-2005 02:36 AM

or just add the column to the table. look up the exact mysql syntax for ALTER table

something like:

"ALTER TABLE <tablename> ADD canviewarticles SMALLINT NOT NULL DEFAULT '0'"

put that in the SQL query section of your phpmyadmin --> after you figure out the right settings.


All times are GMT. The time now is 03:21 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.01483 seconds
  • Memory Usage 1,717KB
  • 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)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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