Support » Plugin: Internal Links Generator » Operation corrupted

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author makong

    (@makong)

    Hello, no, on the contrary. Column “tag” should be in database table!

    Hi Makong!

    Sorry I am not very mySQL savvy.

    Can you let me know how to easlily insert that table so I fix the operation corrupted? Or let me know in which table I have to insert it in order to get the plugin back to work

    Thanks a ton!

    Best,
    C

    Plugin Author makong

    (@makong)

    Hi, there are several ways we can do this:
    – if you don’t have a lot of keywords in table you can totally reinstall plugin;
    – if you have access to cpanel of your hosting you can mannualy add column ‘tag’ (tag VARCHAR(20) NOT NULL) to table ‘[your_wp_prefix]_internalinks’ through the phpmyadmin;
    – or:

    1. put this code to file functions.php

    add_action('init', 'ilgen_insert_column');
    function ilgen_insert_column(){
        if(is_admin() && 'internal_links_generator' == $_GET['page']){
            global $wpdb;
            if(!$wpdb->query("SHOW COLUMNS FROM {$wpdb->prefix}internalinks LIKE 'tag'")){
                if($wpdb->query("ALTER TABLE {$wpdb->prefix}internalinks ADD tag VARCHAR(20) CHARACTER SET utf8 NOT NULL")){
                    echo '<script>alert("Internal links: column \'tag\' successfully added!");</script>';
                }
            }
        }
    }

    2. open once plugin page http://[your_domain.com]/wp-admin/options-general.php?page=internal_links_generator
    3. when you saw window with text “Internal links: column ‘tag’ successfully added!” remove code from file functions.php

    Plugin Author makong

    (@makong)

    hey, i was add fix of this problem to next update (version 2.6)

    Plugin Author makong

    (@makong)

    … and don’t forget to disable/enable plugin after update.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Operation corrupted’ is closed to new replies.