vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Database error - unsure what it's related to (https://vborg.vbsupport.ru/showthread.php?t=310832)

Kung! 04-26-2014 11:59 PM

Database error - unsure what it's related to
 
I'll state up front that I did a bit of searching around; so if I missed something, my profuse apologies.

A while back our site got infected with malware. We finally got it fully cleaned, and in the process of that we updated our site from 4.1.10 PL3 (or something - I forget just now lol) to 4.2.2 PL1.

I've got most of the kinks ironed out, but while I can access EVERY other page of the site, the main index gives me a database error:

Quote:

Database error in vBulletin 4.2.2:

Invalid SQL:

SELECT connections.*,rooms.*,user.*
FROM connections as connections
LEFT JOIN rooms as rooms ON connections.roomid = rooms.id
LEFT JOIN user as user ON connections.userid = user.userid
WHERE connections.userid > 0 AND connections.ip != '0.0.0.0'
AND connections.updated > DATE_SUB(NOW(),INTERVAL 60 SECOND)
ORDER BY start;

MySQL Error : Table '(our database).connections' doesn't exist
By looking at it, it seems like it's related to some sort of chat room, but I'm unsure. Can anyone point me in the right direction? Help would be much appreciated. :)

Zachery 04-27-2014 12:00 AM

That's not a default query, its from one of your third party addons.

Kung! 04-27-2014 12:07 AM

It just hit me that FlashChat is still supposedly installed on that site...which would explain it.

Here comes what may be a supremely stupid question but I gotta ask: Could fixing it be as simple as uninstalling the addon? LOL (I say that because it's never that easy, it seems like.)

Zachery 04-27-2014 12:09 AM

uninstalling or disabling would do it.

Kung! 04-27-2014 12:18 AM

Well, I uninstalled it, and....no dice. Same error. LOL

That said, I would assume that there's some code that needs to be removed, unless I'm missing something.

ForceHSS 04-27-2014 12:27 AM

And did you remove all files from ftp and if any custom coding came with it reverted the templates

Kung! 04-27-2014 12:31 AM

I'm just now coming to that conclusion. I did indeed revert the templates, but it's still happening, obviously.

So far it looks like it's only happening on the main index page, and when I click 'Mark forums read' in the Activity Stream.

This said, it's been a while (like 2 years) since I've had to manually edit any templates...so I'm having a bit of a hard time figuring out specifically what needs editing. It seems that there's code in whatever files are used to display the main index page that refers to the third party hack that needs to be removed.

tpearl5 04-27-2014 12:40 AM

It could just be a spider accessing an old php script that calls that query. Did you delete the files associated with the mod?

Kung! 04-27-2014 01:09 AM

Well, that's the problem...I've been searching around trying to find all the files associated with the mod, and figure out the changes it made/makes, but as of yet have been unsuccessful.

tpearl5 04-27-2014 01:48 AM

it will be in the error message under referral


All times are GMT. The time now is 11:47 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.01040 seconds
  • Memory Usage 1,728KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete