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

    (@cerveza)

    Fix:

    Open up sponsors-coursel.php

    On line 369 you will find the following code:

    echo _media_button(__(‘Add an Image’), ‘images/media-button-image.gif?ver=20100531’, ‘image’,$scwp_plugin_name);

    replace with:

    echo media_buttons(__(‘Add an Image’), ‘images/media-button-image.gif?ver=20100531’, ‘image’,$scwp_plugin_name);

    Thanks, the code works even for WordPress 3.8, but an error pops up saying there is a missing argument in the method prepare() of the object wpdb. Not sure why this error pops up, because a second argument is not supposed to be necessary, plus the image is added correctly.

    Even if the fix works, I don’t think I want to deal with a plugin that wasn’t updated for a while (last update: 2012-9-15).

    Thanks, this is a fix

    Open the file sponsors-coursel.php

    Replace the two lines 238, 239

    $thepost = $wpdb->get_row( $wpdb->prepare( "SELECT *
    FROM $wpdb->posts WHERE guid = '".$scwp_link_image."'" ) );

    by

    $thepost = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->posts WHERE guid = %s", $scwp_link_image ) );

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Not possible to add images anymore’ is closed to new replies.