Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-31-2006, 05:37 PM
Guest210212002
Guest
 
Posts: n/a
Default Extra insert_into vb3_post field (manually removing a mod)

Invalid SQL:
INSERT INTO vb3_post
(showsignature, allowsmilie, username, userid, title, pagetext, iconid, visible, parentid, threadid, nowplaying, dateline, ipaddress, attach)
VALUES
(1, 1, 'Chris', 23, '', whoops.', 0, 1, 224760, 13014, '', 1154370911, '69.164.74.179', 0);

MySQL Error : Unknown column 'nowplaying' in 'field list'

Now playing hack hosed me - it's not the hack's fault, my cablemodem died on the first import, and I can't get the sucker uninstalled, so I have to manually remove everything. If the product's disabled it doesn't bother with it, so I'm not really down, but I'd like to get it all out of my DB.

Where do I remove the nowplaying field from that SQL query?
Reply With Quote
  #2  
Old 07-31-2006, 08:17 PM
Princeton's Avatar
Princeton Princeton is offline
 
Join Date: Nov 2001
Location: Vineland, NJ
Posts: 6,693
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What do you want removed? It wasn't able to insert anything.

if you want to remove the product just UNINSTALL it via PLUGIN MANAGER.
Reply With Quote
  #3  
Old 07-31-2006, 10:49 PM
Guest210212002
Guest
 
Posts: n/a
Default

Yeah, I know how to uninstall products. I can't uninstall it, I get this:

Code:
Database error in vBulletin 3.5.4:

Invalid SQL:
ALTER TABLE vb3_post DROP nowplaying;

MySQL Error  : Can't DROP 'nowplaying'; check that column/key exists
Error Number : 1091
I want to remove whatever's looking for the nowplaying column when someone makes a new post with the plugin enabled.
Reply With Quote
  #4  
Old 07-31-2006, 11:03 PM
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
Posts: 1,552
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you tried to reinstall it then uninstall it?
Reply With Quote
  #5  
Old 07-31-2006, 11:39 PM
Guest210212002
Guest
 
Posts: n/a
Default

Yeah, same deal, tried importing over it with overwrite, etc. Something's just hosed so I have to manually pluck all the bits out.

Edit: Should mention that with the plugin enabled, I get the error in the first post when I try to post a message. If it's disabled, it doesn't try writing to the missing column.
Reply With Quote
  #6  
Old 08-01-2006, 12:10 AM
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
Posts: 1,552
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What if you were to manually add the "nowplaying" key into the "post" Table and then try to uninstall it?
Reply With Quote
  #7  
Old 08-01-2006, 12:17 AM
Guest210212002
Guest
 
Posts: n/a
Default

I gave that a shot actually, and I got the same no-key error when uninstalling it.

It's not a huge deal, with it disabled it's not actually hurting anything, it's just annoying to know that it's there.

Edit: Thank you for the suggestions though, much appreciated. I'm going to export the whole thing to my test forum tonight and just fart around with the DB until I figure it out. I'm decent with SQL, but it's always nice to be able to break stuff at will.
Reply With Quote
  #8  
Old 08-01-2006, 12:26 AM
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
Posts: 1,552
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When () you come across the solution can you please post back. I'm a bit curious now.
Reply With Quote
  #9  
Old 08-01-2006, 12:36 AM
Princeton's Avatar
Princeton Princeton is offline
 
Join Date: Nov 2001
Location: Vineland, NJ
Posts: 6,693
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

check the product ... most likely the DROP query is in the UNINSTALL CODE edit box

PLUGINS & PRODUCTS / MANAGE PRODUCTS / click edit on the product
Reply With Quote
  #10  
Old 08-01-2006, 12:44 AM
Guest210212002
Guest
 
Posts: n/a
Default

Yeah, I looked at that. I can get it to drop the column itself if I run the query manually, but for some reason the plugin remains and so does whatever code calls the write to that column if someone makes a new post. (Thank you for the time, by the way. )

The hack just adds a $post[field] that you fill out when making a post, and sticks it into the postbit. So when someone makes a post, it's still looking for that entry even though the column itself is missing (and even if it's there, actually).

So wherever the code is that actually parses all of the fields that are entered when someone makes a new post (showsignature, allowsmilie, username, userid, title, pagetext, iconid, visible, parentid, threadid, nowplaying, dateline, ipaddress, attach), I need to find that and strip out nowplaying, that's all.

(At least, I think it's that simple, hah!)

Quote:
Originally Posted by Freesteyelz

When () you come across the solution can you please post back. I'm a bit curious now.
Will do. I'm 30 now, but I still like to break stuff anyhow. The kid in me will never die. I'd be a lot more unhappy about things if my site was actually down, but I'm thinking I'll probably learn some stuff along the way here anyhow.

Edit: Just want to mention again that it's not the hack's fault, it's just bad timing for my cablemodem to drop signal that made my vB so very angry with me.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:24 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.07690 seconds
  • Memory Usage 2,238KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (5)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete