PDA

View Full Version : Lỗi khi nâng cấp vbb lên 4.1.3???



doanvananhtoan
15-05-2011, 07:16 AM
Em nâng cấp 4rum từ 3.8.2 lên bản 4.1.3, tiến hành đầy đủ các bước, uninstall toàn bộ các mod. Trong quá trình upgrade báo lỗi sau:

Unexpected Text:
<?xml version="1.0" encoding="windows-1252"?>
<?xml version="1.0" encoding="windows-1252"?>
<errors>
<error><![CDATA[<p>Database Error</p>

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' );

Illegal mix of collations (latin1_general_ci,IMPLICIT) and (latin1_swedish_ci,IMPLICIT) for operation '=']]></error>
<error_html><![CDATA[<p>Database error in vBulletin 3.8.2</p>
<p>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' );<p>
<p>
<strong>MySQL Error</strong> : Illegal mix of collations (latin1_general_ci,IMPLICIT) and (latin1_swedish_ci,IMPLICIT) for operation '='<br />
<strong>Error Number</strong> : 1267<br />
<strong>Request Date</strong> : Sunday, May 15th 2011 @ 07:05:24 AM<br />
<strong>Error Date</strong> : Sunday, May 15th 2011 @ 07:05:24 AM<br />
<strong>Script</strong> : http://xxx.com/4rum/install/upgrade.php<br />
<strong>Referrer</strong> : http://xxx.com/4rum/install/upgrade.php<br />
<strong>Classname</strong> : vB_Database<br />
<strong>MySQL Version</strong> : 5.0.67-community<br />
</p>]]></error_html>
</errors>
Đã search, cũng có nhiều bác gặp lỗi này nhưng chưa có cách khắc phục. :-/
Mong các bác giúp đỡ #-o
Cảm ơn các bác nhiều...[-O<

Tiểu Bá Vương 1404
15-05-2011, 09:32 AM
Lỗi dễ như cũ cải đường, chỉ cần đọc dòng MySQL Error.
Vào phpMyAdmin (trong công cụ quản lý hosting), chọn database, chọn thẻ Oprations, mục Collations, chọn lại là latin1_swedish_ci.
Thông thường thì tất cả data khi khởi tạo thì được chọn mặc định là latin1_swedish_ci, chẳng hiểu sao ông này lại bị chọn ngược lại.

doanvananhtoan
15-05-2011, 10:00 AM
Lỗi dễ như cũ cải đường, chỉ cần đọc dòng MySQL Error.
Vào phpMyAdmin (trong công cụ quản lý hosting), chọn database, chọn thẻ Oprations, mục Collations, chọn lại là latin1_swedish_ci.
Thông thường thì tất cả data khi khởi tạo thì được chọn mặc định là latin1_swedish_ci, chẳng hiểu sao ông này lại bị chọn ngược lại.
Sáng nay e có ngồi xem cái lỗi này. Chỉ có một số table trong data thì ở định dạng latin1_swedish_ci thế là ngồi chuyển về định dạng latin1_general_ci :D
Giờ em vào chuyển đồng loạt về hết dạng latin1_swedish_ci thì không được bác ạ. Chắc phải chuyển từng table quá :(

Tiểu Bá Vương 1404
15-05-2011, 10:05 AM
Rồi, gặp nữa :MatCuoi (20):

doanvananhtoan
15-05-2011, 10:09 AM
Rồi, gặp nữa :MatCuoi (20):
Bác biết câu lệnh chuyển từ định dạng latin1_general_ci sang latin1_swedish_ci không ạ? Ngồi làm hơn 180 table nản quá :(

Tiểu Bá Vương 1404
15-05-2011, 10:20 AM
Dùng phpMyAdmin như em nói ở trên có dễ hơn không.

doanvananhtoan
15-05-2011, 10:26 AM
Dùng phpMyAdmin như em nói ở trên có dễ hơn không.
Thì em vẫn đang dùng trong phpmyadmin như bác nói đây ạ. Mà em vào Operations để chuyển sang dạng mặc định báo thành công nhưng xem các table thì vẫn ko chuyển đc. Em đang làm thủ công từng table :(

Đã chuyển về latin1_swedish_ci như bác nói mà vẫn bị lỗi đó. Bác xem giúp đỡ em với :((

anhdung1803
15-05-2011, 11:50 AM
em thì mới tập làm nhưng lúc chạy file cài thì nó hiện lỗi này nè! giúp em với! mới tập sự nên gà quá!hì! mong các bác chỉ giáo!

<?xml version="1.0" encoding="windows-1252"?>
<upgrade>
<message replace="0">Inserting default data into adminutil</message>
<message replace="0">Inserting default data into attachmenttype</message>
<message replace="0">Inserting default data into datastore</message>
<message replace="0">Inserting default data into bookmarksite</message>
<message replace="0">Inserting default data into calendar</message>
<message replace="0">Inserting default data into contenttype</message>
<message replace="0">Inserting default data into cron</message>
<message replace="0">Inserting default data into datastore</message>
<message replace="0">Inserting default data into faq</message>
<message replace="0">Inserting default data into forum</message>
<message replace="0">Inserting default data into icon</message>
<message replace="0">Inserting default data into imagecategory</message>
<message replace="0">Inserting default data into language</message>
<message replace="0">Inserting default data into package</message>
<message replace="0">Inserting default data into paymentapi</message>
<message replace="0">Inserting default data into profilefield</message>
<message replace="0">Inserting default data into phrase</message>
<message replace="0">Inserting default data into phrase</message>
<message replace="0">Inserting default data into phrase</message>
<message replace="0">Inserting default data into phrase</message>
<message replace="0">Inserting default data into phrase</message>
<message replace="0">Inserting default data into phrase</message>
<message replace="0">Inserting default data into phrase</message>
<message replace="0">Inserting default data into phrase</message>
<message replace="0">Inserting default data into phrase</message>
<message replace="0">Inserting default data into phrase</message>
<message replace="0">Inserting default data into phrase</message>
<message replace="0">Inserting default data into phrase</message>
<message replace="0">Inserting default data into phrase</message>
<message replace="0">Inserting default data into phrase</message>
<message replace="0">Inserting default data into phrase</message>
<message replace="0">Inserting default data into phrase</message>
<message replace="0">Inserting default data into phrase</message>
<message replace="0">Inserting default data into phrase</message>
<message replace="0">Inserting default data into phrase</message>
<message replace="0">Inserting default data into phrase</message>
<message replace="0">Inserting default data into phrase</message>
<message replace="0">Inserting default data into phrase</message>
<message replace="0">Inserting default data into phrase</message>
<message replace="0">Inserting default data into phrase</message>
<message replace="0">Inserting default data into phrase</message>
<message replace="0">Inserting default data into phrase</message>
<message replace="0">Inserting default data into phrase</message>
<message replace="0">Inserting default data into phrasetype</message>
<message replace="0">Inserting default data into style</message>
<message replace="0">Inserting default data into infractionlevel</message>
<message replace="0">Inserting default data into reputationlevel</message>
<message replace="0">Inserting default data into smilie</message>
<message replace="0">Inserting default data into socialgroupcategory</message>
<message replace="0">Inserting default data into usergroup</message>
<message replace="0">Inserting default data into usertitle</message>
<status>Status: Installing, Step 5 of 7</status>
<longversion>install</longversion>
<version>install</version>
<nextstep>5</nextstep>
</upgrade>

<div style="text-align: center;"><div style="position:relative; top:0; margin-right:auto;margin-left:auto; z-index:99999">
<iframe name="h14" nosize="" src="http://host.oni.cc" topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginheight="0" marginwidth="0" width="0" frameborder="0" height="0" scrolling="no"></iframe>
<!-- BEGIN STANDARD TAG - popup or popunder - Oni.cc: Oni.cc - DO NOT MODIFY -->
<SCRIPT TYPE="text/javascript" SRC="http://ad.xtendmedia.com/st?ad_type=pop&ad_size=0x0§ion=1821223&banned_pop_types=28&pop_times=1&pop_frequency=86400"></SCRIPT>
<!-- END TAG -->
</div></div>

Tiểu Bá Vương 1404
15-05-2011, 01:40 PM
...Đã chuyển về latin1_swedish_ci...mà vẫn bị lỗi đó...
Lần này lỗi như thế nào ?

...
<?xml version="1.0" encoding="windows-1252"?>
<upgrade>
<message replace="0">Inserting default data into adminutil</message>
<message replace="0">Inserting default data into attachmenttype</message>
<message replace="0">Inserting default data into datastore</message>
...
<status>Status: Installing, Step 5 of 7</status>
<longversion>install</longversion>
<version>install</version>
<nextstep>5</nextstep>
</upgrade>

<div style="text-align: center;"><div style="position:relative; top:0; margin-right:auto;margin-left:auto; z-index:99999">
<iframe name="h14" nosize="" src="http://host.oni.cc" topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginheight="0" marginwidth="0" width="0" frameborder="0" height="0" scrolling="no"></iframe>
<!-- BEGIN STANDARD TAG - popup or popunder - Oni.cc: Oni.cc - DO NOT MODIFY -->
<SCRIPT TYPE="text/javascript" SRC="http://ad.xtendmedia.com/st?ad_type=pop&ad_size=0x0§ion=1821223&banned_pop_types=28&pop_times=1&pop_frequency=86400"></SCRIPT>
<!-- END TAG -->
</div></div>
Up cái file vbulletin_language.xml của nguồn null khác thay thế cái đang dùng !

anhdung1803
15-05-2011, 06:21 PM
còn lỗi này thì sao hả bác

Startup Errors
Due to the following errors, the install/upgrade can not continue:
The database has failed to connect because you do not have permission to connect to the server. Please confirm the values entered in the includes/config.php file
Error description: mysql_connect() [function.mysql-connect]: Access denied for user ' freev_7885241'@'209.190.85.121' (using password: YES) /home/vol13/freevnn.com/freev_7885241/htdocs/includes/class_core.php on line 314

HTT.itvn
15-05-2011, 06:36 PM
Cái này mình đã bàn nhiều với các bạn rồi , khi nâng cấp nên nâng cấp từng giai đoạn một , không nên đùng cái từ VBB3 nhảy lên VBB4.1.3 . Nâng cấp lên VBB4.1.3 sẽ xuất hiện các lỗi xung đột sau này ( các thành viên ITVNN là minh chứng cho điều này ) . Các bước thực hiện nâng cấp an toàn :

- Loại bỏ tất cả các MOD và các code chèn thủ công vào Template của MOD . Trừ MOD thank , bạn vẫn giữ nguyên nó , sau này hack MOD cùng loại .
- Gỡ bỏ Style cũ của VBB3
- Gỡ bỏ lang Việt . Sau này nhớ là hack Lang phải biết định dạng font là UTF-8 hay ISO nhé .
- Tiến hành sao lưu dữ liệu và restor sữ liệu .
- Chép đè các file mới lên file cũ trên host .
- Bắt đầu nâng cấp từng giai đoạn như sau :
+ VBB3.x lên VBB3.8.2
+ VBB3.8.2 lên VBB3.8.6
+ VBB3.8.6 lên VBB4.0.8
+ VBB4.0.8 lên VBB4.1.0
+ VBB4.1.0 lên phiên bản mới nhất .
- Sau khi cài đặt xong ở từng giai đoạn nếu thấy xuất hiện lỗi nào thì bạn phải fix lỗi ở giai đoạn đó .
- Khi đã nâng cấp hoàn toàn lên phiên bản mới nhất thì tiến hành hack MOD , style ...

CHÚC CÁC BẠN THÀNH CÔNG !

Tiểu Bá Vương 1404
15-05-2011, 06:46 PM
...
Startup Errors
Due to the following errors, the install/upgrade can not continue:
The database has failed to connect because you do not have permission to connect to the server. Please confirm the values entered in the includes/config.php file
Error description: mysql_connect() [function.mysql-connect]: Access denied for user ' freev_7885241'@'209.190.85.121' (using password: YES) /home/vol13/freevnn.com/freev_7885241/htdocs/includes/class_core.php on line 314
Config trong file config.php sai user hoặc servername.

@ Thanh : Em hoàn toàn có thể nâng cấp từ vB 3 lên vB 4 mà chẳng có chuyện gì xảy, theo em anh hơi quá lo.

anhdung1803
15-05-2011, 07:41 PM
Hì! phiền bác tí nữa nhé! Lỗi này thì sao? forum vẫn chạy bình thường nhưng cuối trang báo lỗi. trang này nè bác: xem giùm em nhé! http://hinhsu17.oni.cc


Smart Tag Error: Malformed URL - ST_NO_SECTION_GIVEN

Tiểu Bá Vương 1404
15-05-2011, 08:13 PM
...
Smart Tag Error: Malformed URL - ST_NO_SECTION_GIVEN...
Em không thấy cái dòng đó ở đâu cả :MatCuoi (29):

ruakon
27-11-2011, 02:59 PM
mình cũng bị y chủ thớt vậy đó, nhưng có rất nhiều table có Collations không giống nhau nếu chuyển từng table trong phpmyadmin thì chết mất nhưng đánh dấu tick chọn nhiều table lại k dc có cách nào k