WordPress.org

Ready to get started?Download WordPress

Forums

Strictly Auto Tags
[resolved] Mysql error (3 posts)

  1. msolution
    Member
    Posted 1 year ago #

    hi,
    just wanted to bring to your notice a bug i came across,

    function SaveAutoTags()
    	$r = $wpdb->update(
    	  'posts',
    	  array( 'post_content' => $newcontent ),
    	  array( 'id' => $object->ID )
    	);

    Table posts doesnt exists, i believe it should be {$wpdb->posts}

    just a heads up :)

    M.

    http://wordpress.org/extend/plugins/strictly-autotags/

  2. Strictly Software
    Member
    Plugin Author

    Posted 1 year ago #

    Hi

    I have actually commented that out but just not had the time to re-do the plugin as I've had cancer and a new PC.

    The line above it should do the job anyway so that bug shouldn't effect anything e.g the line above is

    ShowDebugAutoTag("our new content is === " . $newcontent);

    $sql = $wpdb->prepare("UPDATE {$wpdb->posts} SET post_content = %s WHERE id = %d;", $newcontent,$object->ID);

    ShowDebugAutoTag("SQL is $sql");

    So the other UPDATE underneath can be removed.

    Thanks

    Rob

  3. msolution
    Member
    Posted 1 year ago #

    umm,... i didn't actually go thru the script,
    it was just conflicting with a plugin i made, ...
    and throwing a fetal error on that line, so i though i'd ping u on it.

    Regards,
    M.
    PS: I hope u get ok soon, and make many more fantastic plugins. :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags