Forum Replies Created

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

    (@jacksii)

    But I don’t think so that is visual composer problem. Because only front page having issue. But others page is working fine that is also built in visual composer.

    @wpyogi, dont worry i have fix this issue on my self thanks for response me

    i have facing error in my theme can anyone solve this issue

    WARNING: MISSING ARGUMENT 2 FOR WPDB::PREPARE(), CALLED IN C:\WAMP\WWW\WP-CONTENT\THEMES\ENVISION THEME\ENVISION\LIBRARY\TFUSE_FRAMEWORK\FUNCTIONS\CORE.PHP ON LINE 21 AND DEFINED IN C:\WAMP\WWW\WP-INCLUDES\WP-DB.PHP ON LINE 992

    ——————

    core.php line 21

    return $wpdb->get_var($wpdb->prepare(“SELECT COUNT(meta_key) FROM $wpdb->postmeta WHERE meta_key = ‘$meta’ AND post_id = $post_id;”));

    wp-db.php line 992

    function prepare( $query, $args ) {
    if ( is_null( $query ) )
    return;

    $args = func_get_args();
    array_shift( $args );
    // If args were passed as an array (as in vsprintf), move them up
    if ( isset( $args[0] ) && is_array($args[0]) )
    $args = $args[0];
    $query = str_replace( “‘%s'”, ‘%s’, $query ); // in case someone mistakenly already singlequoted it
    $query = str_replace( ‘”%s”‘, ‘%s’, $query ); // doublequote unquoting
    $query = preg_replace( ‘|(?<!%)%f|’ , ‘%F’, $query ); // Force floats to be locale unaware
    $query = preg_replace( ‘|(?<!%)%s|’, “‘%s'”, $query ); // quote the strings, avoiding escaped strings like %%s
    array_walk( $args, array( $this, ‘escape_by_ref’ ) );
    return @vsprintf( $query, $args );
    }

    ————–

    please solve this issue i am trying but failed so, help me out

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