• Resolved safor

    (@safor)


    I recently upgraded to WP 3.5.2 and WPPA 5.0.16. Since the upgrades, I am getting the following error, and I cannot access any media to add it to a page or post…
    WordPress database error Too many keys specified; max 64 keys allowed for query ALTER TABLEsc_wppa_photosADD INDEX (album) made by require_once('D:\x\x\x\webroot\x\wp-admin\admin.php'), do_action('admin_init'), call_user_func_array, wppa_setup WordPress database error Too many keys specified; max 64 keys allowed for query ALTER TABLEsc_wppa_indexADD INDEX (slug(10) ) made by require_once('D:\x\x\x\webroot\x\wp-admin\admin.php'), do_action('admin_init'), call_user_func_array, wppa_setup

    https://www.ads-software.com/plugins/wp-photo-album-plus/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter safor

    (@safor)

    Resolved my own problem – its apparently a jquery conflict between the WPPA plugin and wordpress. Installing https://www.ads-software.com/plugins/use-google-libraries/ solves the problem.

    That error comes up when a plugin is not using dbDelta properly when defining keys in custom tables.

    See: https://www.charlestonsw.com/wordpress-dbdelta-too-many-keys-specified/

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    @ Charleston

    Thank you very much for finally unvealing this mystery to me.

    I read your explanation. You recommend NOT to specify a key length:

    Do not add field lengths to the keys.

    but that gives the following error:

    WordPress database error: [BLOB/TEXT column ‘slug’ used in key specification without a key length]
    ALTER TABLE wp_wppa_index ADD KEY slug (slug)

    for the following table spec:

    //
    	$create_index = "CREATE TABLE " . WPPA_INDEX . " (
    					id bigint(20) NOT NULL,
    					slug tinytext NOT NULL,
    					albums text NOT NULL,
    					photos text NOT NULL,
    					PRIMARY KEY  (id),
    					KEY slug (slug)
    					) DEFAULT CHARACTER SET utf8;";

    while the following works and does not generate superfluous keys when dbDelta is run during each update:

    //
    	$create_index = "CREATE TABLE " . WPPA_INDEX . " (
    					id bigint(20) NOT NULL,
    					slug tinytext NOT NULL,
    					albums text NOT NULL,
    					photos text NOT NULL,
    					PRIMARY KEY  (id),
    					KEY slug (slug(20))
    					) DEFAULT CHARACTER SET utf8;";

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘database error – too many keys wppa’ is closed to new replies.