vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Problem after conversion (MYSQL) (https://vborg.vbsupport.ru/showthread.php?t=143754)

wLTD 04-01-2007 10:37 AM

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!

Marco van Herwaarden 04-01-2007 12:35 PM

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.

wLTD 04-01-2007 01:10 PM

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

Marco van Herwaarden 04-01-2007 06:33 PM

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)"


wLTD 04-01-2007 07:06 PM

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

~Nincb

Marco van Herwaarden 04-01-2007 07:14 PM

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.

Marco van Herwaarden 04-02-2007 08:49 AM

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


All times are GMT. The time now is 02:58 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.01049 seconds
  • Memory Usage 1,733KB
  • 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
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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