Facebook 

SMFHacks.com - Celebrating 20 Years!

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4341
Latest: jmac32here
New This Month: 2
New This Week: 0
New Today: 0
Stats
Total Posts: 44306
Total Topics: 7676
Most Online Today: 795
Most Online Ever: 27044
(May 30, 2026, 09:10:16 pm)
Users Online
Members: 0
Guests: 750
Total: 750

Author Topic: Error Message "Specified key was too long; max key length is 1000 bytes"  (Read 8466 times)

0 Members and 1 Guest are viewing this topic.

SMF: 2.1.4 / DownloadsPro6.1.6.zip

I can't install the addon without any errors.
When installing, I get the following message:
Specified key was too long; max key length is 1000 bytes
File: /homepages/19/d4296676616/htdocs/sf/Packages/temp/downloadsinstall2.php
Line: 62

I tried to uninstall the mod, however the "Downloads" entry is still there and I get a bunch of error messages in the log.
If I click the 'downloads' link, I get the error message "Table 'dbs12484871.smf_down_settings' doesn't exist
File: /homepages/19/d4296676616/htdocs/sf/Sources/Downloads2.php
Line: 8622"

Edit: Have now added the missing table by hand by using phpMyAdmin...

Code: [Select]
"CREATE TABLE IF NOT EXISTS smf_down_file(
ID_FILE int(11) NOT NULL auto_increment,
ID_MEMBER mediumint(8) unsigned NOT NULL default '0',
date int(10) unsigned NOT NULL default '0',
title  tinytext,
description text,
views int(10) NOT NULL default '0',
totaldownloads int(10) NOT NULL default '0',
lastdownload int(10) unsigned NOT NULL default '0',
filesize int(10) NOT NULL default '0',
orginalfilename tinytext,
filename tinytext,
fileurl tinytext,
commenttotal int(10) NOT NULL default '0',
ID_CAT int(10) NOT NULL default '0',
approved tinyint(4) NOT NULL default '0',
allowcomments tinyint(4) NOT NULL default '0',
totalratings int(10) NOT NULL default '0',
rating int(10) NOT NULL default '0',
type tinyint(4) NOT NULL default '0',
sendemail tinyint(4) NOT NULL default '0',
ID_TOPIC mediumint(8) unsigned NOT NULL default '0',
keywords tinytext,
credits int(10) NOT NULL default '0',
ID_PICTURE int(11) default '0',
extrafilescount int(10) NOT NULL default '0',
RATE_ID_TOPIC mediumint(8) unsigned NOT NULL default '0',
purged  tinyint(4) NOT NULL default '0',
seourl varchar(255),
s3 tinyint(4) NOT NULL default '0',
id_msg int(10) NOT NULL default '0',
license longtext,   
PRIMARY KEY (ID_FILE),
KEY ID_CAT (ID_CAT),
KEY date (date),
KEY ID_MEMBER (ID_MEMBER),
KEY seourl (seourl)
) Engine=MyISAM"

Table was added, however with the message "Specified key was too long; max key length is 1000 bytes"
However the table was added, commited and optimized

Was able to add the table, and a reinstallation was successful. Have uninstalled the module for making a backup.

Cheers,
Alexander 
« Last Edit: January 18, 2024, 01:48:42 pm by Anwendungsfehler »

Re: Error Message "Specified key was too long; max key length is 1000 bytes"
« Reply #1 on: »
Did you have the lite version installed before? Did you uninstall before you installed pro?
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Re: Error Message "Specified key was too long; max key length is 1000 bytes"
« Reply #2 on: »
That database table doesn't have many keys so odd. Makes me concerned since other tables might have similar.
Issues iF you know what is your default database character set/collation.  And MySQL version.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Re: Error Message "Specified key was too long; max key length is 1000 bytes"
« Reply #3 on: »
I just posted an update that might help with the key issue.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Re: Error Message "Specified key was too long; max key length is 1000 bytes"
« Reply #4 on: »
Did you have the lite version installed before? Did you uninstall before you installed pro?

Nope!
The only mods I have had installed before the installation was PrettyUrls and SMF GalleryPro.

Re: Error Message "Specified key was too long; max key length is 1000 bytes"
« Reply #5 on: »
I just posted an update that might help with the key issue.

Thanks! When uninstalling the addon, the down_ tables are kept. Seems I have to drop them per hand^^ - a job for tomorrow :)
I am pretty new to smf, have installed the software the day before yesterday, so it will take a bit to get acquainted with all that stuff!

Re: Error Message "Specified key was too long; max key length is 1000 bytes"
« Reply #6 on: »
Yeah the tables are kept on uninstall. Mainly to protect data loss.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Re: Error Message "Specified key was too long; max key length is 1000 bytes"
« Reply #7 on: »
Yeah the tables are kept on uninstall. Mainly to protect data loss.

No problem with that! - I would do it in the same way - however to beta test the routines from scratch they have to be purged.
Not sure if there's any event fired before the uninstall is started, but if yes, a drop table message would be nice :)
(On the other hand, a little script to do this by sql is written in one or two minutes..)

Cheers and thanks for your fast support,
Alexander

Re: Error Message "Specified key was too long; max key length is 1000 bytes"
« Reply #8 on: »
I mainly use adminer for php or database workbench  to handle my databases
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/
Like Like x 1 View List

Re: Error Message "Specified key was too long; max key length is 1000 bytes"
« Reply #9 on: »
I mainly use adminer for php or database workbench  to handle my databases

Oh my! Thank you for the adminer info - this makes it easier for me in this case.
(Normally I create any sql commands for development databases by hand since I started with AnsiSQL97^^)
« Last Edit: January 19, 2024, 09:16:58 am by Anwendungsfehler »

Re: Error Message "Specified key was too long; max key length is 1000 bytes"
« Reply #10 on: »
Yeah that is my favorite web based tool one single file.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
7553 Views
Last post October 05, 2009, 02:20:12 pm
by Dasher
1 Replies
7519 Views
Last post November 28, 2009, 03:19:43 pm
by SMFHacks
6 Replies
11060 Views
Last post February 02, 2010, 06:32:52 am
by Rafferty
1 Replies
5364 Views
Last post May 08, 2015, 10:56:51 pm
by SMFHacks
7 Replies
6985 Views
Last post September 12, 2022, 08:49:02 am
by SMFHacks

+- Recent Topics

Registration - anti bot pattern matching by SMFHacks
November 01, 2026, 07:20:17 pm

EZPortal 8 by davejo
October 21, 2026, 01:01:54 pm

Downloads Pro 7.0 Released by SMFHacks
October 07, 2026, 07:35:30 pm

[Mod]ActivityPub Federation for SMF 2.1 by SMFHacks
October 01, 2026, 05:03:45 pm

Newsletter Pro 4.0 Released by SMFHacks
September 23, 2026, 08:08:24 pm

Can't remove or restore any item from the recycle bin by SMFHacks
September 22, 2026, 11:01:51 am

MCP Server for SMF 2.1 - let Claude, ChatGPT or Cursor run your admin chores by SMFHacks
September 12, 2026, 02:50:45 pm

Suggestions for improvements to Ultimate Shoutbox & Chatroom by davejo
September 02, 2026, 01:35:09 am

Automatic Sorting of Categories by Kiwi
August 31, 2026, 12:36:09 am

' appears as ' in Most Viewed (and Recent Items ?) by SMFHacks
August 22, 2026, 11:01:56 pm

Powered by EzPortal