errors on update to 2.5.24

Joomla versions 2.5, 1.7 and 1.6 are all end-of-life since December 31st 2014 and are no longer supported. Please use Joomla 3.x instead.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
User avatar
carsten888
Joomla! Ace
Joomla! Ace
Posts: 1224
Joined: Sat Feb 11, 2006 8:32 am
Contact:

errors on update to 2.5.24

Post by carsten888 » Mon Apr 02, 2012 2:40 pm

Code: Select all

JInstaller: :Install: Error SQL DB function failed with error number 1062 
Duplicate entry '22' for key 'PRIMARY' SQL=INSERT INTO `sadk_menu` (`id`, `menutype`, `title`, `alias`, `note`, `path`, `link`, `type`, `published`, `parent_id`, `level`, `component_id`, `ordering`, `checked_out`, `checked_out_time`, `browserNav`, `access`, `img`, `template_style_id`, `params`, `lft`, `rgt`, `home`, `language`, `client_id`) VALUES (22, 'menu', 'com_joomlaupdate', 'Joomla! Update', '', 'Joomla! Update', 'index.php?option=com_joomlaupdate', 'component', 0, 1, 1, 28, 0, 0, '0000-00-00 00:00:00', 0, 0, 'class:joomlaupdate', 0, '', 41, 42, 0, '*', 1);
SQL =
INSERT INTO `#__menu` (`id`, `menutype`, `title`, `alias`, `note`, `path`, `link`, `type`, `published`, `parent_id`, `level`, `component_id`, `ordering`, `checked_out`, `checked_out_time`, `browserNav`, `access`, `img`, `template_style_id`, `params`, `lft`, `rgt`, `home`, `language`, `client_id`) VALUES
(22, 'menu', 'com_joomlaupdate', 'Joomla! Update', '', 'Joomla! Update', 'index.php?option=com_joomlaupdate', 'component', 0, 1, 1, 28, 0, 0, '0000-00-00 00:00:00', 0, 0, 'class:joomlaupdate', 0, '', 41, 42, 0, '*', 1);
Files Update: SQL error file DB function failed with error number 1062 
Duplicate entry '22' for key 'PRIMARY' SQL=INSERT INTO `sadk_menu` (`id`, `menutype`, `title`, `alias`, `note`, `path`, `link`, `type`, `published`, `parent_id`, `level`, `component_id`, `ordering`, `checked_out`, `checked_out_time`, `browserNav`, `access`, `img`, `template_style_id`, `params`, `lft`, `rgt`, `home`, `language`, `client_id`) VALUES (22, 'menu', 'com_joomlaupdate', 'Joomla! Update', '', 'Joomla! Update', 'index.php?option=com_joomlaupdate', 'component', 0, 1, 1, 28, 0, 0, '0000-00-00 00:00:00', 0, 0, 'class:joomlaupdate', 0, '', 41, 42, 0, '*', 1);
SQL =
INSERT INTO `#__menu` (`id`, `menutype`, `title`, `alias`, `note`, `path`, `link`, `type`, `published`, `parent_id`, `level`, `component_id`, `ordering`, `checked_out`, `checked_out_time`, `browserNav`, `access`, `img`, `template_style_id`, `params`, `lft`, `rgt`, `home`, `language`, `client_id`) VALUES
(22, 'menu', 'com_joomlaupdate', 'Joomla! Update', '', 'Joomla! Update', 'index.php?option=com_joomlaupdate', 'component', 0, 1, 1, 28, 0, 0, '0000-00-00 00:00:00', 0, 0, 'class:joomlaupdate', 0, '', 41, 42, 0, '*', 1);
using the updater
http://www.pages-and-items.com my extensions:
User-Private-Page, Redirect-on-Login, Admin-Help-Pages, Dynamic-Menu-Links, Admin-Menu-Manager, plugin load module in article, plugin pure css tooltip and more...

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44094
Joined: Sat Apr 05, 2008 9:58 pm

Re: errors on update to 2.5.24

Post by Webdongle » Mon Apr 02, 2012 2:58 pm

Have a look at the Database tab and 'Fix' any errors
Clear cache and try again
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

User avatar
carsten888
Joomla! Ace
Joomla! Ace
Posts: 1224
Joined: Sat Feb 11, 2006 8:32 am
Contact:

Re: errors on update to 2.5.24

Post by carsten888 » Mon Apr 02, 2012 3:21 pm

Thank you.

There where some issues which where fixed. Unfortunately I just uploaded the patch, so not sure if that fix would have solved the update-issue. Will just have to wait till the next update to see if it still gives me this error.

Thanks for the fast reply.
http://www.pages-and-items.com my extensions:
User-Private-Page, Redirect-on-Login, Admin-Help-Pages, Dynamic-Menu-Links, Admin-Menu-Manager, plugin load module in article, plugin pure css tooltip and more...

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44094
Joined: Sat Apr 05, 2008 9:58 pm

Re: errors on update to 2.5.24

Post by Webdongle » Mon Apr 02, 2012 4:07 pm

I am experiencing a similar problem on one site. The method above did not fix things completely. There is a new component in 2.5.4 that did not install with the update.

Did your Joomla have its version stated twice in the footer ?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

User avatar
carsten888
Joomla! Ace
Joomla! Ace
Posts: 1224
Joined: Sat Feb 11, 2006 8:32 am
Contact:

Re: errors on update to 2.5.24

Post by carsten888 » Mon Apr 02, 2012 4:34 pm

Did your Joomla have its version stated twice in the footer ?
no.
http://www.pages-and-items.com my extensions:
User-Private-Page, Redirect-on-Login, Admin-Help-Pages, Dynamic-Menu-Links, Admin-Menu-Manager, plugin load module in article, plugin pure css tooltip and more...

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44094
Joined: Sat Apr 05, 2008 9:58 pm

Re: errors on update to 2.5.24

Post by Webdongle » Mon Apr 02, 2012 5:35 pm

Do you see the new Joomla update component in the Components menu ?
Capture 139.PNG
If not use phpMyAdmin to add the following to your database. Be sure to backup first and in the following change #_ to your prefix
INSERT INTO `#__menu` (`id`, `menutype`, `title`, `alias`, `note`, `path`, `link`, `type`, `published`, `parent_id`, `level`, `component_id`, `ordering`, `checked_out`, `checked_out_time`, `browserNav`, `access`, `img`, `template_style_id`, `params`, `lft`, `rgt`, `home`, `language`, `client_id`) VALUES
(22, 'menu', 'com_joomlaupdate', 'Joomla! Update', '', 'Joomla! Update', 'index.php?option=com_joomlaupdate', 'component', 0, 1, 1, 28, 0, 0, '0000-00-00 00:00:00', 0, 0, 'class:joomlaupdate', 0, '', 41, 42, 0, '*', 1);
You do not have the required permissions to view the files attached to this post.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

User avatar
diesl
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Mon Apr 02, 2012 9:20 pm

Re: errors on update to 2.5.24

Post by diesl » Mon Apr 02, 2012 9:57 pm

First of all, hello to Joomla forums :)

I am also experiencing this error. I have 3 Joomla installations, of which two show this error. They have been installed in J1.0 era and upgraded to J1.7 and finally 2.5. The third one was a late J1.7 installation, now on J2.5 and shows no errors.

After inspecting the DB, the error is clear: As the message states, ID 22 is already in use in table #__menu. In my case, a mainmenu item has taken ID 22.

Comparing things with the working Joomla installation, Frontend menu items start with ID 101, meaning there is space for another ~80 entries before. In the broken installation, frontend menus start at ID 21. This means Smart Search (ID 21) and JoomlaUpdate (ID 22) have not been inserted and are missing in backend component menu.

So there seems to be a convention to reserve IDs numbers <= 100 for backend menu items. Did this convention already exist in J1.x? Can somebody with a J1.x installation take a look?

So, my question is, were was the error introduced? Some remarks:
- As only few people have this problem, I think it isn't a migration component did issue.
- In my broken Joomla installations, I did use exmenu component pre J2.5. Does anybody of you use this menu module?
- This is not a auto_increment issue (at least at my databases)

Without digging deeper into the DB, i think manually editing IDs would be PITA. But I also don't want to recreate all menu items.

Suggestions, anybody? ;)

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44094
Joined: Sat Apr 05, 2008 9:58 pm

Re: errors on update to 2.5.24

Post by Webdongle » Tue Apr 03, 2012 6:52 pm

Hi diesl welcome to the forum. https://www.akeebabackup.com/documentat ... pdate.html may help you.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

User avatar
diesl
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Mon Apr 02, 2012 9:20 pm

Re: errors on update to 2.5.24

Post by diesl » Tue Apr 03, 2012 10:00 pm

Thanks for the link, Webdongle! :)

The link Webdongle posted contains a link to a bug tracker ticket adressing this issue.

So, as it seems this is an error introduced when upgrading Joomla to 2.5.
I just wonder why only a few people report this error. I expected that many people upgraded their Joomla installation and then get this error. ???

I will watch the bug tracker for the next days and wait if they show up with a better solution as the one posted on the Akeeba page. :pop

hanjimail
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 221
Joined: Sat May 31, 2008 12:15 am
Location: Yokohama, Japan
Contact:

Re: errors on update to 2.5.24

Post by hanjimail » Thu Apr 05, 2012 1:52 am

Hi, Webdongle.

I tried the below but I got an error duplicate ID 22.
How can I fix this?

Webdongle wrote:Do you see the new Joomla update component in the Components menu ?
Capture 139.PNG
If not use phpMyAdmin to add the following to your database. Be sure to backup first and in the following change #_ to your prefix
INSERT INTO `#__menu` (`id`, `menutype`, `title`, `alias`, `note`, `path`, `link`, `type`, `published`, `parent_id`, `level`, `component_id`, `ordering`, `checked_out`, `checked_out_time`, `browserNav`, `access`, `img`, `template_style_id`, `params`, `lft`, `rgt`, `home`, `language`, `client_id`) VALUES
(22, 'menu', 'com_joomlaupdate', 'Joomla! Update', '', 'Joomla! Update', 'index.php?option=com_joomlaupdate', 'component', 0, 1, 1, 28, 0, 0, '0000-00-00 00:00:00', 0, 0, 'class:joomlaupdate', 0, '', 41, 42, 0, '*', 1);
Norito H.Yoshida, Yokohama, Japan
[email protected]
http://goyat.biz/

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44094
Joined: Sat Apr 05, 2008 9:58 pm

Re: errors on update to 2.5.24

Post by Webdongle » Thu Apr 05, 2012 1:59 am

Look at https://www.akeebabackup.com/documentat ... pdate.html and you will see why my fix does not work every time but the fix on that page should :eek:
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

hanjimail
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 221
Joined: Sat May 31, 2008 12:15 am
Location: Yokohama, Japan
Contact:

Re: errors on update to 2.5.24

Post by hanjimail » Thu Apr 05, 2012 2:17 am

Thank you, Webdongle.

It worked perfect. Joomla update menu is shown in component menu now.
Norito H.Yoshida, Yokohama, Japan
[email protected]
http://goyat.biz/

User avatar
leolam
Joomla! Master
Joomla! Master
Posts: 20652
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ Germany/ S'pore/Bogor/ North America
Contact:

Re: errors on update to 2.5.24

Post by leolam » Thu Apr 05, 2012 4:35 am

diesl wrote:So, as it seems this is an error introduced when upgrading Joomla to 2.5.I just wonder why only a few people report this error. I expected that many people upgraded their Joomla installation and then get this error. ???
read this link https://www.akeebabackup.com/documentat ... pdate.html and you have a better understanding what is causing this

Leo 8)
Joomla's #1 Professional Services Provider:
#Joomla Professional Support: https://gws-desk.com -
#Joomla Specialized Hosting Solutions: https://gws-host.com -

User avatar
diesl
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Mon Apr 02, 2012 9:20 pm

Re: errors on update to 2.5.24

Post by diesl » Thu Apr 05, 2012 9:40 am

Well, I did read the link, and as I understand it, jUpgrade introduced this "error" or let's say, misbehaviour.

That's the reason why I wonder that only few people have this error, because everybody who upgraded his site with jUpgrade should get these errors now, shouldn't they?


Locked

Return to “Migrating and Upgrading to Joomla! 2.5”