Thread: Miscellaneous Hacks - View Your Posts/Threads from Navbar Search
View Single Post
  #12  
Old 02-18-2009, 07:48 PM
Mosh's Avatar
Mosh Mosh is offline
 
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 1,968
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Danisty View Post
This messed up my admin panel. I tried to edit the usergroups to allow them to view this in the menu and instead of editing the usergroup, it created a new custom group so now I have custom groups for administrator, moderator, etc. with the permission to view the on the menu but no change to the original group i tried to edit. Then I went in and checked to see if those custom groups had permission and they did not. If i tried to give the custom group permission, it created yet another custom group. I tried uninstalling this product but the option block is still on the usergroup permissions page except there is nothing written in the option block. I tried editing a different permission for my admin account and now I get this error. I can't change any permissions on my usergroups at all now!

Database error in vBulletin 3.8.1:

Invalid SQL:

### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO usergroup
(`title`, `description`, `usertitle`, `opentag`, `closetag`, `passwordexpires`, `passwordhistory`, `forumpermissions`, `genericpermissions`, `attachlimit`, `pmquota`, `pmpermissions`, `pmsendmax`, `pmthrottlequantity`, `calendarpermissions`, `wolpermissions`, `adminpermissions`, `genericpermissions2`, `genericoptions`, `profilepicmaxwidth`, `profilepicmaxheight`, `profilepicmaxsize`, `avatarmaxwidth`, `avatarmaxheight`, `avatarmaxsize`, `signaturepermissions`, `sigpicmaxwidth`, `sigpicmaxheight`, `sigpicmaxsize`, `sigmaxrawchars`, `sigmaxchars`, `sigmaxlines`, `sigmaxsizebbcode`, `sigmaximages`, `albumpermissions`, `albumpicmaxwidth`, `albumpicmaxheight`, `albumpicmaxsize`, `albummaxpics`, `albummaxsize`, `usercsspermissions`, `visitormessagepermissions`, `socialgrouppermissions`, `maximumsocialgroups`, `groupiconmaxsize`, `vbblog_general_permissions`, `vbblog_customblocks`, `vbblog_custompages`, `vbblog_entry_permissions`, `vbblog_comment_permissions`, `fcpermissions`, `ms_vopt_permissions`)
VALUES
('Administrators', '', 'Administrator', '<b><span style=\"color:#660198;\">', '</b></span>', '180', '360', '16777215', '2145386431', '0', '1000', '7', '20', '0', '63', '31', '3', '1', '55', '300', '300', '150000', '150', '150', '120000', '234623', '500', '75', '100000', '1500', '1000', '5', '3', '6', '255', '800', '800', '100000', '2000', '0', '63', '63', '65535', '5', '150000', '262142', '5', '5', '24575', '0', '0', '0');

MySQL Error : Unknown column 'ms_vopt_permissions' in 'field list'
Error Number : 1054
Request Date : Tuesday, February 3rd 2009 @ 04:04:40 PM
Error Date : Tuesday, February 3rd 2009 @ 04:04:40 PM
Script : http://www.allbeliefs.com/admincp/us....php?do=update
Referrer : http://www.allbeliefs.com/admincp/us...&usergroupid=6
IP Address : 72.230.88.206
Username : ?anisty
Classname : vB_Database
MySQL Version : 5.0.75
That was because the ms_vopt_permissions field was deleted and the bitfield was still there.

Quote:
Originally Posted by Danisty View Post
I deleted bitfield_ms_vopt_38.xml from my xml folder and reinstalled the old version. My usergroups are still messed up. No matter what edits I make to them, it just creates a new custom group that I also can't edit. I've checked on my forum that does not have this hack installed at all and there is no problem over there so I know it's not vb 3.8.1 that caused this problem. I also disabled the only other hack I upgraded today (https://vborg.vbsupport.ru/showthread.php?t=199975) and I'm still having the problem. Even when I disable the old version of this hack, I have this problem. This is a pretty big deal and I need a fix for this!
If you have deleted bitfield_ms_vopt_38.xml from your xml folder and you are still having the error Unknown column 'ms_vopt_permissions' in 'field list', then the bitfield file is still there, and has not been deleted.

I am pretty sure this problem is due to mixing up old and new versions of this hack.

Make sure you delete the bitfield file, un-install the product, and check the following:

In the AdminCP, select Maintenance -> Execute SQL Query and run the following query:

[sql]describe usergroup;[/sql]

If there is a ms_vopt_permissions entry in the Field column, then running the following query will get rid of it:
[sql]ALTER TABLE usergroup DROP ms_vopt_permissions;[/sql]

That should fix your problem up. If it does not, then post back with the exact error.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01306 seconds
  • Memory Usage 1,792KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete