?
avatar uzielweb
uzielweb
23 Jul 2018

Steps to reproduce the issue

Perform default installation

Expected result

Proceed to finish the installation

Actual result

Installation does not proceed after insert database form data (clicking in Install) and this message appears for a little moment before redirect to the first installation step:
"Index column size too large. The maximum column size is 767 bytes."

System information (as much as possible)

PHP 7.2
Joomla 4 alpha 4
My database version is MySQLi 5.5.5-10.1.34-MariaDB

Additional comments

avatar uzielweb uzielweb - open - 23 Jul 2018
avatar joomla-cms-bot joomla-cms-bot - change - 23 Jul 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 23 Jul 2018
avatar franz-wohlkoenig franz-wohlkoenig - change - 23 Jul 2018
Category com_installer
avatar franz-wohlkoenig franz-wohlkoenig - change - 23 Jul 2018
Title
Joomla 4 Alpha 4 Installation problem Index column size too large. The maximum column size is 767 bytes.
[4.0] Alpha 4 Installation problem Index column size too large. The maximum column size is 767 bytes.
avatar joomla-cms-bot joomla-cms-bot - edited - 23 Jul 2018
avatar infograf768
infograf768 - comment - 23 Jul 2018

at which precise stage does it redirect to first step

avatar franz-wohlkoenig franz-wohlkoenig - change - 23 Jul 2018
Status New Information Required
avatar uzielweb
uzielweb - comment - 23 Jul 2018

Database installation step. After insert database user, name and host and click in Install

avatar ggppdk
ggppdk - comment - 23 Jul 2018

Which exact DB (MySql or MariaDB) do you have and which version of it ?

The default settings for some version of MySql <5.7.7 and also for Maria DB < 10.2 will behave like this

See here:
https://stackoverflow.com/questions/43379717/how-to-enable-large-index-in-mariadb-10

Joomla should not have such requirement for this kind of custom configuration of the database

avatar uzielweb uzielweb - change - 23 Jul 2018
The description was changed
avatar uzielweb uzielweb - edited - 23 Jul 2018
avatar uzielweb
uzielweb - comment - 23 Jul 2018

MYSQLi mysqlnd 5.0.12-dev - 20150407 is my client
My database version is MySQLi 5.5.5-10.1.34-MariaDB

All Joomla installations works fine, except Joomla 4 Alpha 4

avatar csthomas
csthomas - comment - 23 Jul 2018

Index on #__finder_logging.searchterm column should be limited to the first 191 characters, the same is in the #__session.session_id.

avatar uzielweb uzielweb - change - 23 Jul 2018
The description was changed
avatar uzielweb uzielweb - edited - 23 Jul 2018
avatar C-Lodder
C-Lodder - comment - 23 Jul 2018

Does J4 even support 5.0.12-dev @mbabker?

avatar csthomas
csthomas - comment - 23 Jul 2018

5.0.12-dev is the client version, not mysql server version. See at https://stackoverflow.com/questions/35260305/database-client-version-in-phpmyadmin

avatar uzielweb
uzielweb - comment - 23 Jul 2018

MySQLi 5.5.5-10.1.34-MariaDB
This is my correct database version. :)

avatar uzielweb
uzielweb - comment - 23 Jul 2018

Table structure for table #__finder_logging can be the problem
steps to reproduce

  • copy/paste joomla.sql into phpmyadmin SQL query form and execute
  • message appears like this: Index column size too large. The maximum column size is 767 bytes.
avatar uzielweb uzielweb - change - 23 Jul 2018
The description was changed
avatar uzielweb uzielweb - edited - 23 Jul 2018
avatar uzielweb
uzielweb - comment - 23 Jul 2018

Solution Found:
Modify joomla.sql installation file in the line 862 adding ROW_FORMAT=DYNAMIC before ";" character

like this:
CREATE TABLE IF NOT EXISTS#__finder_logging(searchtermVARCHAR(255) NOT NULL DEFAULT '',md5sumVARCHAR(32) NOT NULL DEFAULT '',queryBLOB NOT NULL,hitsINT(11) NOT NULL DEFAULT '1',resultsINT(11) NOT NULL DEFAULT '0', UNIQUE INDEXmd5sum(md5sum), INDEXsearchterm(searchterm) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;

avatar uzielweb
uzielweb - comment - 23 Jul 2018

Now the steps stucks on the installation of Sample Data because the file sampledata does not exist. I will skip this step.

avatar uzielweb
uzielweb - comment - 23 Jul 2018

All is fine for now, Except sample data and idiom additional packages installation that cannot proceed.

avatar uzielweb uzielweb - change - 23 Jul 2018
The description was changed
avatar uzielweb uzielweb - edited - 23 Jul 2018
avatar infograf768
infograf768 - comment - 24 Jul 2018

In 4.0, you can install blog sample data or multilingual sample data from the Control Panel.
screen shot 2018-07-24 at 07 54 39

Concerning ROW_FORMAT=DYNAMIC
See https://dev.mysql.com/worklog/task/?id=8307

What do you think @csthomas @mbabker @ggppdk
and @Hackwar who created this new table see #20681 (review)

avatar csthomas
csthomas - comment - 24 Jul 2018

The table is:

CREATE TABLE IF NOT EXISTS `#__finder_logging` (
  `searchterm` VARCHAR(255) NOT NULL DEFAULT '',
  `md5sum` VARCHAR(32) NOT NULL DEFAULT '',
  `query` BLOB NOT NULL,
  `hits` INT(11) NOT NULL DEFAULT '1',
  `results` INT(11) NOT NULL DEFAULT '0',
  UNIQUE INDEX `md5sum` (`md5sum`),
  INDEX `searchterm` (`searchterm`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_general_ci;

The column searchterm can be reduced to 191 chars:

...
  `searchterm` VARCHAR(191) NOT NULL DEFAULT '',
...

or only the index should be shortened:

...
  INDEX `searchterm` (`searchterm`(191))
...

Additional note: this table does not have PRIMARY KEY. IMO should have it.

avatar alikon
alikon - comment - 24 Jul 2018

as i can see a lot of the new finder tables lacks of a primary key

avatar franz-wohlkoenig franz-wohlkoenig - change - 24 Jul 2018
Status Information Required Closed
Closed_Date 0000-00-00 00:00:00 2018-07-24 10:17:56
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - change - 24 Jul 2018
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 24 Jul 2018
avatar joomla-cms-bot
joomla-cms-bot - comment - 24 Jul 2018
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 24 Jul 2018

closed as having Pull Request #21242

Add a Comment

Login with GitHub to post a comment