The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

I have a problem with wpdb (3 posts)

  1. Daniel Sorin
    Posted 3 years ago #

    Hello i have a problem with wpdb

    Warning: Missing argument 2 for wpdb::prepare(), called in /home/moviemro/public_html/wp-content/themes/Moviem/tagging.php on line 33 and defined in /home/moviemro/public_html/wp-includes/wp-db.php on line 990

    My code is :

    $first_char = $_GET["litera"];
    SELECT      ID
    FROM        $wpdb->posts
    WHERE       SUBSTR($wpdb->posts.post_title,1,1) = %s
    ORDER BY    $wpdb->posts.post_title",$first_char));

    I don't know how make it,please help me

  2. Krishna
    Posted 3 years ago #

    Try adding to your wp-config.php the following code:
    define( 'WP_TEMP_DIR' , ABSPATH . 'wp-content/' );

    Read: http://wordpress.org/support/topic/troubleshooting-wordpress-35-master-list?replies=4#post-3547427

  3. Daniel Sorin
    Posted 3 years ago #

    code does not work because it's for "Error message: Download failed. Destination directory for file streaming does not exist or is not writable." , I read "this" but do not know how do . Pease anybody help me .

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.