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

Reply
 
Thread Tools Display Modes
  #1  
Old 04-01-2007, 10:37 AM
wLTD wLTD is offline
 
Join Date: Mar 2007
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Problem after conversion (MYSQL)

I converted from IPB 2.2.1 to Vbulletin 3.6.5

Now, whenever I want to delete forums, I have to hide them because I am unable to physically delete them.

When I try to delete them, I get this SQL error:

Database error in vBulletin 3.6.5:

Invalid SQL:
SELECT forumid FROM forum WHERE FIND_IN_SET('113', parentlist);

MySQL Error : Illegal mix of collations (latin1_swedish_ci,COERCIBLE) and (utf8_general_ci,IMPLICIT) for operation 'find_in_set'
Error Number : 1267
Date : Sunday, April 1st 2007 @ 07:37:20 AM
Script : http://www.wltd.net/forums/admincp/forum.php?do=kill
Referrer : http://www.wltd.net/forums/admincp/f...emove&f=113&s=
Username : nincb123
Classname : vb_database

Thanks for the help!
Reply With Quote
  #2  
Old 04-01-2007, 12:35 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please try the following:

Open admincp/forums.php with an editor, and find the following on line 293:

PHP Code:
    $forumdata->set_condition("FIND_IN_SET('" $vbulletin->GPC['forumid'] . "', parentlist)"); 
Replace it with:
PHP Code:
    $forumdata->set_condition("FIND_IN_SET(" $vbulletin->GPC['forumid'] . ", parentlist)"); 
Please let us know if that solved the problem, because if it does it is probably a bug in vB.
Reply With Quote
  #3  
Old 04-01-2007, 01:10 PM
wLTD wLTD is offline
 
Join Date: Mar 2007
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, that fixed that bug. But I found another two:

Whenever someone posts, they cant see their own posts

And when I edit a user:

Database error in vBulletin 3.6.5:

Invalid SQL:

SELECT COUNT(*) AS users
FROM user
WHERE userid <> 581
AND
(
usergroupid IN(6)
OR FIND_IN_SET('6', membergroupids)
);

MySQL Error : Illegal mix of collations (latin1_swedish_ci,COERCIBLE) and (utf8_general_ci,IMPLICIT) for operation 'find_in_set'
Error Number : 1267
Date : Sunday, April 1st 2007 @ 10:07:56 AM
Script : http://www.warezltd.net/forums/admin....php?do=update
Referrer : http://www.warezltd.net/forums/admin...?do=edit&u=581
IP Address : 24.161.120.139
Username : nincb123
Classname : vb_database
Reply With Quote
  #4  
Old 04-01-2007, 06:33 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try the following:

Open includes/adminfunctions_user.php, line 335:

PHP Code:
            $condition .= " AND FIND_IN_SET('" intval($id) . "', {$prefix}membergroupids)"
Replace by:
PHP Code:
            $condition .= " AND FIND_IN_SET(" intval($id) . ", {$prefix}membergroupids)"
Reply With Quote
  #5  
Old 04-01-2007, 07:06 PM
wLTD wLTD is offline
 
Join Date: Mar 2007
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Worked. Thanks. I will see if there are any other errors about.

~Nincb
Reply With Quote
  #6  
Old 04-01-2007, 07:14 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have created a bug report for this: http://www.vbulletin.com/forum/proje...?issueid=21709

I would however suggest that if you run into any more of these errors that you open a Support Ticket so we can have a look at your database and connection configuration, as this is most likely what is causing these problems to turn up at your site. Probably we can provide a more final solution then.
Reply With Quote
  #7  
Old 04-02-2007, 08:49 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Also what MySQL version are you using, as there is a bug reported in MySQL that might be causing this: http://bugs.mysql.com/bug.php?id=13751
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 12:38 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.08494 seconds
  • Memory Usage 2,222KB
  • 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
  • (4)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete