Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • llamaman,
    Thanks for your post. It worked to me too. I’m using 2.5.
    Our blog is https://www.technewsbr.com
    One of the autors cannot post at work, directly. Now he will write via gmail.

    Thanks, again.
    Robespierre

    I found the solution!

    First: if you are making something and need to deactivate a working WPCandy for some reason, don’t do it! (but if you came here, something was messed up…). If you did so, activate it again.

    The WPCandy creates and maintains a nem table in the mySQL database: wp-wpcandy. When you activates it, the table is created. When you deactivate the plugin, the table is dropped. For some reason WP 2.5 don’t let it create this table again after the deactivation. The foreach error is a ‘i can’t find anything in the table’ error, ’cause there is no table at all!

    The solution is manually create a new empty table. You will need some SQL admin or a SQL console to send a SQL command like this:

    CREATE TABLE wp_wpcandy
    id INT NOT NULL AUTO_INCREMENT,
    anchor TINYTEXT NOT NULL,
    candy TEXT,
    position TINYTEXT NOT NULL,
    PRIMARY KEY(id);

    I got this one from the WPCandy code, but used a MySQLAdmin from my BlueHost cpanel.

    After you created the table, the WPCandy will work again, and the foreach error will dissapear when you creates a new candy.

    I hope this help! It worked for me!
    Check at https://www.technewsbr.com

    I found the solution!

    First: if you are making something and need to deactivate a working WPCandy for some reason, don’t do it! (but if you came here, something was messed up…). If you did so, activate it again.

    The WPCandy creates and maintains a nem table in the mySQL database: wp-wpcandy. When you activates it, the table is created. When you deactivate the plugin, the table is dropped. For some reason WP 2.5 don’t let it create this table again after the deactivation. The foreach error is a ‘i can’t find anything in the table’ error, ’cause there is no table at all!

    The solution is manually create a new empty table. You will need some SQL admin or a SQL console to send a SQL command like this:

    CREATE TABLE wp_wpcandy
    id INT NOT NULL AUTO_INCREMENT,
    anchor TINYTEXT NOT NULL,
    candy TEXT,
    position TINYTEXT NOT NULL,
    PRIMARY KEY(id);

    I got this one from the WPCandy code, but used a MySQLAdmin from my BlueHost cpanel.

    After you created the table, the WPCandy will work again, and the foreach error will dissapear when you creates a new candy.

    I hope this help! It worked for me!
    Chack at https://www.technewsbr.com

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