PDA

View Full Version : Upgraded to 4.1.1 (receiving URL errors)


Chmura
01-31-2011, 09:41 PM
I just upgraded from 3.8.2 to 4.1.1
After I upgraded I started receiving this message whenever I wanted to go into a forum

Invalid Forum specified. If you followed a valid link, please notify the administrator

my URLs Looked like this = /forum/forumdisplay.php?2-General-Chat
For some reason forumdisplay.php was placed there.
To fix this I went to Friendly URLs and changed to standard.
Now my URLs look like this = /forum/forumdisplay.php?f=2

There is a problem with the threads though
If I try going inside a thread this is the error I get

Database error in vBulletin 4.1.1:

Invalid SQL:

(SELECT 'package' AS classtype, package.packageid AS typeid, package.packageid AS packageid,
package.productid AS productid, if(package.productid = 'vbulletin', 1, product.active) AS enabled,
package.class AS class, -1 as isaggregator
FROM package AS package
LEFT JOIN product AS product
ON product.productid = package.productid
WHERE product.active = 1
OR package.productid = 'vbulletin'
)

UNION

(SELECT 'contenttype' AS classtype, contenttypeid AS typeid, contenttype.packageid AS packageid,
1, 1, contenttype.class AS class , contenttype.isaggregator
FROM contenttype AS contenttype
INNER JOIN package AS package ON package.packageid = contenttype.packageid
LEFT JOIN product AS product ON product.productid = package.productid
WHERE product.active = 1
OR package.productid = 'vbulletin' );

MySQL Error : Illegal mix of collations (latin1_general_ci,IMPLICIT) and (latin1_swedish_ci,IMPLICIT) for operation '='
Error Number : 1267
Request Date : Monday, January 31st 2011 @ 05:34:38 PM
Error Date : Monday, January 31st 2011 @ 05:34:38 PM
Script : http://www.******/forum/showthread.php?t=2167
Referrer : http://www.******/forum/general-chat/
IP Address : ****
Username : ****
Classname : vB_Database
MySQL Version : 5.1.51

How do I fix this? Does anyone know?
When I go into General Chat on top it doesn't show "/forumdisplay.php?f=2" but "/general-chat/"
How can I get it to show /general-chat/ when I hover over the Forum and the Thread /general-chat/thread-name/?

All my plugins have been disabled before the upgrade and now.
I had vbseo installed before the upgrade if that matters, but it's disabled.

Lynne
01-31-2011, 10:47 PM
I don't understand you statement regarding forumdisplay.php being in the url to a forum. It's always been there and is supposed to be there. What are you thinking the URL is supposed to look like? And did you run all the maintenance tasks you were told to run after you were done?

Here's a canned response regarding illegal collations:
When vBulletin creates a new table in the upgrade process, it asks MySQL what the default collation for the database is and then uses that. Most MySQL installations default to latin1_swedish_ci. If you have changed collations for any reason on tables in the past then you should change the database to use that as the default to prevent this issue from happening in the future.

You will find more information in the MySQL manual here:
http://dev.mysql.com/doc/refman/5.1/en/charset.html

You will need to use phpMyAdmin and make sure that all tables and fields within them have the same collation. Make sure your database collations are appropriate and consistent throughout the entire database. You need to use program like phpmyadmin to view your collations:

http://www.phpmyadmin.net/home_page/index.php

When you click your database name in phpmyadmin it will list all tables, their collations, as well as the collation of the database itself at the bottom. And when you click the name of a table on the left it will list the collations of individual fields within that table.

1) To edit the collation of the database itself you need to click the database name on the left and then click "Operations" on the top.

2) To edit the collation of an individual table you need to click its name on the left and then click "Operations" on the top.

3) To edit the collation of an individual field within a table you need to click the table name on the left and then click the edit image (a little pencil icon) for that field.

For more information please see: http://www.vbulletin.com/forum/showthread.php?t=275958&highlight=collation

Note: It is very very very important to make full database backups before proceeding if you are ever manually making any changes to your database, let it be issuing queries, or editing it via phpMyAdmin or any other interface. If done incorrectly, manually modifying the database can potentially cause irreversible damage to your database, and there is no way to perform a "partial restore" to restore just the part you may break.

Chmura
01-31-2011, 11:19 PM
Thanks Lynne, I actually found the same info after doing some more research. Edited all the tables one by one and it worked. Took some time though, but it was worth it!

What I meant by that /forumdisplay.php?2-General-Chat comment was that it never showed before and displayed /general-chat/, but that was vbseo in the works.
I'm guessing this version of vb doesn't have an option to change my URLs to /general-chat/?

Lynne
01-31-2011, 11:20 PM
You would need to use vbseo to have the url like /general-chat/