From the director's office

I mostly blog about the Joomla! Content Management System, business networking, and other geeky subjects which I think are interesting.

  • Home
    Home This is where you can find all the blog posts throughout the site.
  • Categories
    Categories Displays a list of categories from this blog.
  • Tags
    Tags Displays a list of tags that have been used in the blog.
  • Bloggers
    Bloggers Search for your favorite blogger from this site.
  • Team Blogs
    Team Blogs Find your favorite team blogs here.
  • Login
    Login Login form
Posted by on in Joomla! Content Management System
  • Font size: Larger Smaller
  • Hits: 2093
  • 0 Comments
  • Print

Having problems installing Joomla! 1.7 with _menu table MySQL errno:139 errors?

We came across a problem getting a Joomla! 1.7.1 vanilla install to work on a Windows server at one of our clients - during the installation process it was not able to create the _menu table - everything else seemed to work OK!

On closer inspection we found that there was a bug in MySQL which caused problems with large varchar fields (and the menu table includes two such fields) which prevented this table from being created.

To get around this we had to edit the joomla.sql file to reduce down the size of these fields (see bold fields below) - we set it to 255 and this allowed the installation to proceed.  At present we're unsure if this is a bug with the version of MySQL installed on the client's server, their setup, or something to do with the Joomla! installer - but we'll let you know if we find out more (if you know more, please comment on the post below!)

CREATE TABLE `#__menu` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `menutype` varchar(24) NOT NULL COMMENT 'The type of menu this item belongs to. FK to #__menu_types.menutype',
  `title` varchar(255) NOT NULL COMMENT 'The display title of the menu item.',
  `alias` varchar(255) NOT NULL COMMENT 'The SEF alias of the menu item.',
  `note` varchar(255) NOT NULL DEFAULT '',
  `path` varchar(1024) NOT NULL COMMENT 'The computed path of the menu item based on the alias field.',
  `link` varchar(1024) NOT NULL COMMENT 'The actually link the menu item refers to.',

  `type` varchar(16) NOT NULL COMMENT 'The type of link: Component, URL, Alias, Separator',
  `published` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'The published state of the menu link.',
  `parent_id` int(10) unsigned NOT NULL DEFAULT '1' COMMENT 'The parent menu item in the menu tree.',
  `level` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'The relative level in the tree.',
  `component_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'FK to #__extensions.id',
  `ordering` int(11) NOT NULL DEFAULT '0' COMMENT 'The relative ordering of the menu item in the tree.',
  `checked_out` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'FK to #__users.id',
  `checked_out_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'The time the menu item was checked out.',
  `browserNav` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'The click behaviour of the link.',
  `access` integer unsigned NOT NULL DEFAULT '0' COMMENT 'The access level required to view the menu item.',
  `img` varchar(255) NOT NULL COMMENT 'The image of the menu item.',
  `template_style_id` int(10) unsigned NOT NULL DEFAULT '0',
  `params` TEXT NOT NULL COMMENT 'JSON encoded data for the menu item.',
  `lft` int(11) NOT NULL DEFAULT '0' COMMENT 'Nested set lft.',
  `rgt` int(11) NOT NULL DEFAULT '0' COMMENT 'Nested set rgt.',
  `home` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT 'Indicates if this menu item is the home or default page.',
  `language` char(7) NOT NULL DEFAULT '',
  `client_id` tinyint(4) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `idx_client_id_parent_id_

alias` (`client_id`,`parent_id`,`alias`),
  KEY `idx_componentid` (`component_id`,`menutype`,`published`,`access`),
  KEY `idx_menutype` (`menutype`),
  KEY `idx_left_right` (`lft`,`rgt`),
  KEY `idx_alias` (`alias`),
  KEY `idx_path` (`path`(333)),
  KEY `idx_language` (`language`)
)   DEFAULT CHARSET=utf8;
Rate this blog entry:
I am the owner and Director of Virya Technologies, with the responsibility for leading the website design team.

I am primarily involved with the day to day management of our website projects, ongoing support contracts and liaising with our clients from across the world.

Comments

  • No comments made yet. Be the first to submit a comment

Leave your comment

Guest Tuesday, 21 May 2013

Training Courses

Google+ for Business
17-06-2013 2:00 pm
Category:  Google+ Training
Basepoint Business Centre, Ipswich
Google+ for Business
08-07-2013 2:00 pm
Category:  Google+ Training
DeskLodge

Living Streets Position

Virya Technologies Ltd

Position 3 overall
Miles Walked
Calories Burnt
Kg of CO2 saved

Looking for our open source software?

viryasoftwarelogo

We release and support our open source software at Virya Software

Forthcoming events

MAY
30

30.05.2013 - 03.06.2013J and Beyond

JUN
6

06.06.2013 - 07.06.2013Great British Business Show @ Excel, London

Latest tweets

Virya Technologies We are in the process of dealing with a script causing high load on our Prajna server, meaning some sites are... http://t.co/StXS2dz3QX
Sunday, 19 May 2013 17:55
Virya Technologies We have been advised that the earlier connectivity problems at our data centre have been resolved. Sorry for any inconvenience.
Friday, 17 May 2013 12:59
Virya Technologies @heartinternet are reporting problems with dedicated & vps servers - some sites we host may be slow to respond. http://t.co/xD4nGZJ6Rq
Friday, 17 May 2013 12:23
Follow ViryaTech on Twitter