vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   MySQL Error After Upgrade (https://vborg.vbsupport.ru/showthread.php?t=97053)

theArchitect 09-28-2005 09:57 AM

MySQL Error After Upgrade
 
1 Attachment(s)
I have a hack on my home page which displays the Top 10 Threads. But since I have upgraded from RC2 to RC3 I have been getting this error message:

Code:

Database error in vBulletin 3.5.0 Release Candidate 3:

Invalid SQL:

                SELECT
                        threadid, thread.title, thread.lastpost, thread.forumid, postusername, thread.lastposter, postuserid, views, thread.replycount, forum.title AS forumtitle
                FROM thread AS thread
                LEFT JOIN forum AS forum ON (forum.forumid = thread.forumid)
                WHERE visible = 1 AND thread.forumid IN (, )
                ORDER BY thread.lastpost DESC;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' )
                ORDER BY thread.lastpost DESC' at line 5
Error Number : 1064

So I have removed the plug-in.

However, this is one of the most popular of my boards modifications and my members would like it back.

The hacks author is on extended leave and I can't contact him, KirbyDE kindly ported it over from 3.0 for me and I don't want to impose on him again.

So if someone could assist it would be apprecaited.

The plug-in is attached.

Andreas 09-28-2005 10:04 AM

vBulletin Updates wipe vBulletin Settings that are volatile=1 and not attached to other products.
So this is most likely empty causing the Error:
PHP Code:

$id1last $vbulletin->options['id1last'];
$id2last $vbulletin->options['id2last']; 

Hmm ... but didn't I make a product XML?

theArchitect 09-28-2005 11:16 AM

Quote:

Originally Posted by KirbyDE
vBulletin Updates wipe vBulletin Settings that are volatile=1 and not attached to other products.
So this is most likely empty causing the Error:
PHP Code:

$id1last $vbulletin->options['id1last'];
$id2last $vbulletin->options['id2last']; 

Hmm ... but didn't I make a product XML?

You are right that it wasn't a product, but a plug-in.

So, should I clear the vBulletin settins and start again with the same plug-in?

Boofo 09-28-2005 11:31 AM

You'll have to re-add the settings in the vBulletion Options. The upgrade wiped them out.

theArchitect 09-28-2005 11:37 AM

Quote:

Originally Posted by Boofo
You'll have to re-add the settings in the vBulletion Options. The upgrade wiped them out.

I see. I am off to fix them.

Thanks, I didn't know vB did that.

Edit:

Fixed and working brilliantly.

Many thanks for your help.


All times are GMT. The time now is 10:07 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.00936 seconds
  • Memory Usage 1,725KB
  • 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
  • (2)bbcode_php_printable
  • (2)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