PDA

View Full Version : Upgrade issue from 4.1.12 to 4.2.3


nambisolo
03-07-2016, 08:29 PM
Hello

I have logged this with vBulletin support but they have not replied in over a week. I'm hoping the forum may be able to advise.

Whilst attempting to upgrade from 4.1.12 to 4.2.3 I encounter the following error:

An error has occurred with your database. Please contact vBulletin Support for assistance.

Module: 420a1, Step 14 Database Error:1064

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 ' 'album', 'album', 1), (, 'album', 'comment', 1), (, 'album', 'photo',' at line 5

Query:

INSERT IGNORE INTO elam_vb_activitystreamtype
(packageid, section, type, enabled)
VALUES
(, 'album', 'album', 1),
(, 'album', 'comment', 1),
(, 'album', 'photo', 1),
(, 'calendar', 'event', 1),
(, 'forum', 'post', 1),
(, 'forum', 'thread', 1),
(, 'forum', 'visitormessage', 1),
(, 'socialgroup', 'discussion', 1),
(, 'socialgroup', 'group', 1),
(, 'socialgroup', 'groupmessage', 1),
(, 'socialgroup', 'photo', 1),
(, 'socialgroup', 'photocomment', 1)

I have exported and imported my database using SSH as advised in the manual.

I'm running the following versions of software:

MySQL version: 5.6.28-76.1-log - Percona Server (GPL), Release 76.1, Revision 5759e76

PHP Version 5.6.18

The response was as follows:

"Thank you for contacting vBulletin Support. You will need to open the /install/includes/class_upgrade_420a1.php file and remove the IGNORE keyword from that file."

I advised support this did not resolve the issue but I've had no reply.

Any ideas?

Cheers.

Mike

Lynne
03-08-2016, 01:20 AM
If you are still getting that exact error, then you haven't removed the IGNORE from that query.

Paul M
03-08-2016, 09:51 PM
Not quite sure why you were advised to do that.
Removing IGNORE will not make any difference to that error at all.
(in fact should remain, removing it will not only do nothing to help, its bad advice).

The issue is the missing packageid in all the insert values.

nambisolo
03-09-2016, 08:55 PM
Thanks for your replies. Sorry if my post wasn't clear but I carried out the advice as instructed by support (rightly or wrongly).

Evidently the query is missing the packageid value but why? The first query in step 14 of the upgrade queries the package table to return the packageid for the insert but the package table is empty. What should it contain?

I could probably add an entry to the package table. It contains the following fields:

packageid - int(10) auto increment
productid - varchar(25) which should obviously be 'vbulletin'
class - varbinary(50) ????

Any ideas what class should be? Or why the upgrade is failing?

Cheers.

Mike

Lynne
03-09-2016, 09:33 PM
What are the current rows in that table?

Paul M
03-10-2016, 01:29 PM
He stated the table was empty.

There should be three rows ;

packageid, productid, class
1, vbulletin, vBForum
2, vbblog, vBBlog
3, vbcms, vBCms

nambisolo
03-10-2016, 07:52 PM
Paul M you're a star! Thank you so much. The upgrade progressed without issue after populating the package table.

Cheers.

Mike