• Resolved jlmwp

    (@jlmwp)


    Hello
    I wanted to let you know something

    On our error log, we noticed a persistent error that said “WordPress database error Table ‘wp_yith_wcan_cache’ doesn’t exist for query …”

    The table didn’t exist on the database.

    After reinstalling the plugin (free version), we got a message on our debug log. It said:

    WordPress database error Specified key was too long; max key length is 1000 bytes for query CREATE TABLE wp_yith_wcan_cache (
    ID BIGINT( 20 ) NOT NULL AUTO_INCREMENT,
    group VARCHAR( 255 ) NOT NULL,
    version VARCHAR( 10 ) NOT NULL,
    index CHAR( 32 ) NULL DEFAULT NULL,
    value LONGTEXT NOT NULL,
    expiration timestamp NOT NULL,
    PRIMARY KEY ( ID ),
    UNIQUE KEY cache_entry ( group, version, index ),
    INDEX cache_set ( group, version ),
    KEY cache_version ( version ),
    KEY cache_expiration ( expiration )
    ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci made by ...

    So I manually tested the SQL on phpMyAdmin and got the same error.

    I was able to create the table by changing the length of the ‘group’ field, from 255 to 240. The error got fixed.
    Just letting you know.

    Best regards.

Viewing 1 replies (of 1 total)
  • Plugin Support Vanesa

    (@vanesarodriguez)

    Hello there!

    I hope you are well!

    Thanks for letting us know! At the moment, we haven’t received any more notices about this issue, and I also couldn’t replicate it on my local installation.

    It is difficult to know what has happened but I am glad you got to solved it.

    However, please, let us know if this error ever happens again so we can try to help you.

    Have a nice day!

Viewing 1 replies (of 1 total)

The topic ‘Database table ‘wp_yith_wcan_cache’ not being created’ is closed to new replies.