mySQL Error when upgrade from 1.7-2.5 (newsfeed unistalled)

The support for Joomla 2.5 ended on December 31, 2014. Possible bugs in Joomla 2.5 will not be patched anymore. This forum has been closed. Please update your website to Joomla 3.x

Moderator: ooffick

Forum rules
Please use the official Bug Tracker to report a bug: https://issues.joomla.org
Locked
hugoaf
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sun Mar 15, 2009 11:52 am

mySQL Error when upgrade from 1.7-2.5 (newsfeed unistalled)

Post by hugoaf » Wed Feb 08, 2012 7:20 am

Hi,

If you had uninstalled the newsfeed plugin, and you attempt to upgrade from 1.7.x to 2.5, you will get database errors because the upgrade proccess will try to run this sql command:

Code: Select all

ALTER TABLE `#__newsfeeds` CHANGE `alias` `alias` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '';
Even if you reinstall the plugin, and try upgrading again, now you will get errors because the fist attempt already applyed some changes to the DB, and will try to run this twice:

Code: Select all

#__languages` ADD UNIQUE `idx_image` (`image`);
#__languages` ADD UNIQUE `idx_langcode` (`lang_code`);
resulting in another sql error.

Since the newsfeed is not a protected system plugin, the upgrade needs to be modified to check if the plugin exists.

Locked

Return to “Joomla! 2.5 Bug Reporting”