• Resolved Alex Cicovic

    (@acicovic)


    Hi,

    After updating to the latest version, I have multiple occurrence of errors in the PHP error log like:

    Specified key was too long; max key length is 1000 bytes
    ALTER TABLE wp_mec_users ADD PRIMARY KEY (id), ADD UNIQUE KEY email (email);

    Incorrect table definition; there can be only one auto column and it must be defined as a key
    ALTER TABLE wp_mec_users MODIFY id int NOT NULL AUTO_INCREMENT;

    Multiple primary key defined
    ALTER TABLE wp_mec_occurrences ADD PRIMARY KEY (id), ADD KEY post_id (post_id), ADD KEY occurrence (occurrence);

    What do you suggest?

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor webnus

    (@webnus)

    Hi @acicovic,

    What is your MEC version?
    Please use the latest version of MEC [version 5.12.0], this is fixed in the latest version.

    Best Regards

    Hi @webnus, I am performing a migration and I get the same issue:

    CREATE TABLE wp_mec_users (…..

    #1071 – Specified key was too long; max key length is 767 bytes

    I am using MEC 5.12.0

    Thread Starter Alex Cicovic

    (@acicovic)

    Hi,

    I got this issue when updating to 5.12. My understanding is that the update process itself triggered them. So, the issue does not seem to be resolved for me, but rather caused by the 5.12 update itself.

    Plugin Contributor webnus

    (@webnus)

    Hi @acicovic,

    Alright, I have forwarded it to the developer team to be checked and fixed in the next updates.
    Thank you for your report, I have removed the “resolved label”.

    Best Regards

    Thread Starter Alex Cicovic

    (@acicovic)

    Hello @webnus,

    What’s the status of this?

    Should I run the queries manually? Should I update?

    Thanks.

    Plugin Contributor webnus

    (@webnus)

    Hi @acicovic,

    In fact, we are fixed it in the latest version, so please make sure using the latest version of MEC [version 5.12.5].

    Best Regards

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘SQL errors when updating to latest version’ is closed to new replies.