Viewing 11 replies - 16 through 26 (of 26 total)
  • didnt work for me I // commented out the lines
    in files
    wpdeals_admin.js
    and wpdeals_plugins.js
    in

    wp-content/plugins/wp-deals/wpdeals-assets/js
    wp-content/plugins/wp-deals/wpdeals-assets/js/admin

    still get same response

    Any one having the problem can download the js files from:
    Edited JS (ZIP)

    I am also involved in active development of WPDeals (Part time, ofcourse)
    so don’t hesitate to drop me a mail…

    Hello,

    I tested the payment procedure with the bank transfer and the customer receives this message

    Your order is complete. Your order’s details are below:

    Order #: 87

    Warning: Missing argument 2 for wpdb::prepare(), called in /home/content/41/11478641/html/ja/wp-content/plugins/wp-deals/wpdeals-classes/order.class.php on line 307 and defined in /home/content/41/11478641/html/ja/wp-includes/wp-db.php on line 992

    My question would be what needs to be fixed and where?

    THank you Candor. I have used your fixed files but I get this error message from the message here above.

    Looks like a pretty generic error. It has been described well here
    You need to modify your code
    $results = $wpdb->get_results( $wpdb->prepare("SELECT * FROM ".$wpdb->prefix."wpdeals_permissions WHERE user_id = $this->user_id AND order_key = '$this->order_key' AND deal_id = $item_id" ));
    to
    $results = $wpdb->get_results( $wpdb->prepare("SELECT * FROM ".$wpdb->prefix."wpdeals_permissions WHERE user_id = $this->user_id AND order_key = '$this->order_key' AND deal_id = $item_id",0));
    or
    $results = $wpdb->get_results( $wpdb->prepare("SELECT * FROM ".$wpdb->prefix."wpdeals_permissions WHERE user_id = %d AND order_key = %s AND deal_id = %d",$this->user_id,$this->order_key,$item_id));

    Do take care of %d and %s while using the above one…

    And do drop a link of your production site.

    Fixed in my side:
    go to
    wp-deals/wpdeals-assets/js/wp-deals/wpdeals-assets/js

    From Line 8, delete this code:
    if (/1\.(0|1|2)\.(0|1|2)/.test($.fn.jquery) || /^1.1/.test($.fn.jquery)) {
    alert(‘blockUI requires jQuery v1.2.3 or later! You are using v’ + $.fn.jquery);
    return;
    }

    and it’s done

    Which file are you referring to? Please advise

    Fixed in my side:
    go to
    wp-deals/wpdeals-assets/js/wp-deals/wpdeals-assets/js

    From Line 8, delete this code:
    if (/1\.(0|1|2)\.(0|1|2)/.test($.fn.jquery) || /^1.1/.test($.fn.jquery)) {
    alert(‘blockUI requires jQuery v1.2.3 or later! You are using v’ + $.fn.jquery);
    return;
    }

    and it’s done

    For people, like me, who really need things broken down step-by-step:
    CHANGE THE FIRST FILE
    /wp-deals/wpdeals-assets/js/wpdeals_plugins.js
    in line 8, delete or comment out code by changing from

    if (/1\.(0|1|2)\.(0|1|2)/.test($.fn.jquery) || /^1.1/.test($.fn.jquery)) {
    alert('blockUI requires jQuery v1.2.3 or later!  You are using v' + $.fn.jquery);
    return;
    }

    to

    /*if (/1\.(0|1|2)\.(0|1|2)/.test($.fn.jquery) || /^1.1/.test($.fn.jquery)) {
    alert('blockUI requires jQuery v1.2.3 or later!  You are using v' + $.fn.jquery);
    return;
    }*/

    CHANGE THE SECOND FILE
    /wp-deals/wpdeals-assets/js/admin/wpdeals_admin.js
    in line 14, delete or comment out code by changing from

    (function($){if(/1\.(0|1|2)\.(0|1|2)/.test($.fn.jquery)||/^1.1/.test($.fn.jquery)){alert('blockUI requires jQuery v1.2.3 or later!  You are using v'+$.fn.jquery);return;}

    to

    /*(function($){if(/1\.(0|1|2)\.(0|1|2)/.test($.fn.jquery)||/^1.1/.test($.fn.jquery)){alert('blockUI requires jQuery v1.2.3 or later!  You are using v'+$.fn.jquery);return;}*/

    I hope this helps and the best of luck to you!

    I can’t believe this. over 3 months ago this post was created and figured out, that the script is poorly programmed. The script itself is the reason for the failure.
    And the developer has not made it in 3 month to fix such a bug instead let the folks deal with the problem??
    There are so many people out there using WP but there are non IT genius, how are they supposed to fix a malfunction in a script?

    I just decided not to use a poorly writtens cript, period!
    There are other scripts out there which work.

    Sorry just my opinion because it shows that the developer has absolute no interest for the users.

    My very first Post in here! :-))

    I am new to WordPress, just buliding a new community site included WPDeal with it. Had this Problem first on yesterday evening as i installed WPDeal.
    This morning i localized the bug by checking some forums. The best solve i found here and i tested it – it worked.
    After that i wrote a friend of mine about the bug – he is working as a developer for WKW, a german social network. In his lunchbreak he wrote back to me i should please give him the malicious code. I did and he just laughed and gave it back to me in some minutes – with the bug fixed.
    Now the script is checking the version with an accuracy of two digits after the decimal point. This solves the problem finally. I owe that guy at least one beer. :-))

    Here ist the code for your interest:

    Just replace in line 8 in:
    /wp-deals/wpdeals-assets/js/wpdeals_plugins.js
    and line 14 in:
    /wp-deals/wpdeals-assets/js/admin/wpdeals_admin.js
    the following
    {if(/1\.(0|1|2)\.(0|1|2)/.test($.fn.jquery)||/^1.1/.test($.fn.jquery)){
    with
    if (/1\.(0|1|2)\.(0|1|2)/.test($.fn.jquery) || /^1.1\./.test($.fn.jquery)) {
    and it will work for You as it does for me!!!

    Lots of greetz
    Jack

    No Luck for me too.. commented out that if condition…
    replaced the code as mentioned by Jack..

    Nothing goes my way.. is this something to do with wp version?

Viewing 11 replies - 16 through 26 (of 26 total)
  • The topic ‘jQuery blockUI error do to new jQuery v1.10.2 in wordpress 3.6’ is closed to new replies.