Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi Support,

    I’m setting up a new site using Payments Pro and am getting the same error on checkout: https://mcgilldesigngroup.qnetau.com/dev/

    If I disable PayPal for WooCommerce and use the PayPal standard the error disappears, so I don’t believe it’s another third-party plugin.

    I’ve copied below what I believe is the POST response data from Firebug.

    I’d appreciate any advice you can offer on how to fix this. I’ve tried debugging using Woocommerce’s advice (https://mikejolley.com/2015/11/12/debugging-unexpected-token-in-woocommerce-2-4/) without any results.

    thanks in advance

    {“result”:”success”,”messages”:””,”reload”:”false”,”fragments”:{“.woocommerce-checkout-review-order-table”
    :”<table class=\”shop_table woocommerce-checkout-review-order-table\”>\n\t<thead>\n\t\t<tr>\n\t\t\t<th
    class=\”product-name\”>Product<\/th>\n\t\t\t<th class=\”product-total\”>Total<\/th>\n\t\t<\/tr>\n\t
    <\/thead>\n\t<tbody>\n\t\t\t\t\t\t\t<tr class=\”cart_item\”>\n\t\t\t\t\t\t<td class=\”product-name\”
    >\n\t\t\t\t\t\t\tWine Dogs USA \t\t\t\t\t\t\t <strong class=\”product-quantity\”>× 2<\/strong
    >\t\t\t\t\t\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t<td class=\”product-total\”>\n\t\t\t\t\t\t\t<span class
    =\”amount\”>$58.00<\/span>\t\t\t\t\t\t<\/td>\n\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t<\/tbody>\n\t<tfoot>
    \n\n\t\t<tr class=\”cart-subtotal\”>\n\t\t\t<th>Subtotal<\/th>\n\t\t\t<td><span class=\”amount\”>&#36
    ;58.00<\/span><\/td>\n\t\t<\/tr>\n\n\t\t\n\t\t\n\t\t\t\n\t\t\t<tr class=\”shipping\”>\n\t<th>Shipping
    and Handling<\/th>\n\t<td data-title=\”Shipping\”>\n\t\t\t\t\tWeight Based Shipping: <span class=\”amount
    \”>$15.00<\/span> <input type=\”hidden\” name=\”shipping_method[0]\” data-index=\”0\” id=\”shipping_method_0
    \” value=\”main\” class=\”shipping_method\” \/>\t\t\n\t\t \n <!– Remove Shipping Calculator
    in here and added to cart.php –>\n\t\t\t\t\t\t\t\t<\/td>\n<\/tr>\n\n\t\t\t\n\t\t\n\t\t\n\t\t\n\t\t
    \n\t\t<tr class=\”order-total\”>\n\t\t\t<th>Total<\/th>\n\t\t\t<td><span class=\”amount\”>&#36
    ;73.00<\/span><\/strong> <\/td>\n\t\t<\/tr>\n\n\t\t\n\t<\/tfoot>\n<\/table>\n”,”.woocommerce-checkout-payment”
    :”<div id=\”payment\” class=\”woocommerce-checkout-payment\”>\r\n\t\t<ul class=\”wc_payment_methods payment_methods
    methods\”>\r\n\t\t<li class=\”wc_payment_method payment_method_paypal\”>\n\t<input id=\”payment_method_paypal
    \” type=\”radio\” class=\”input-radio\” name=\”payment_method\” value=\”paypal\” data-order_button_text
    =\”Proceed to PayPal\” \/>\n\n\t<label for=\”payment_method_paypal\”>\n\t\tPayPal <img src=\”https:\
    /\/www.paypalobjects.com\/webstatic\/en_AU\/mktg\/logo\/Solutions-graphics-1-184×80.jpg\” alt=\”PayPal
    Acceptance Mark\” \/><a href=\”https:\/\/www.paypal.com\/au\/webapps\/mpp\/paypal-popup\” class=\”about_paypal
    \” onclick=\”javascript:window.open(‘https:\/\/www.paypal.com\/au\/webapps\/mpp\/paypal-popup’,’WIPaypal’
    ,’toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width
    =1060, height=700′); return false;\” title=\”What is PayPal?\”>What is PayPal?<\/a>\t<\/label>\n\t\t
    \t<div class=\”payment_box payment_method_paypal\” style=\”display:none;\”>\n\t\t\t<p>Pay via PayPal
    ; you can pay with your credit card if you don’t have a PayPal account.<\/p>\n\t\t<\/div>\n\t<
    \/li>\n<li class=\”wc_payment_method payment_method_paypal_pro\”>\n\t<input id=\”payment_method_paypal_pro
    \” type=\”radio\” class=\”input-radio\” name=\”payment_method\” value=\”paypal_pro\” checked=’checked’
    data-order_button_text=\”\” \/>\n\n\t<label for=\”payment_method_paypal_pro\”>\n\t\tCredit card <img
    src=\”https:\/\/mcgilldesigngroup.com\/dev\/wp-content\/plugins\/paypal-for-woocommerce\/assets\/images
    \/cards.png\” alt=\”Credit card\” \/>\t<\/label>\n\t\t\t<div class=\”payment_box payment_method_paypal_pro
    \” >\n\t\t\t<p>Pay with your credit card<p>NOTICE: SANDBOX (TEST) MODE ENABLED.<br \/>For testing purposes
    you can use the card number 4916311462114485 with any CVC and a valid expiration date.<\/p>\t\t<fieldset
    id=\”paypal_pro-cc-form\”>\n\t\t\t\t\t\t<p class=\”form-row form-row-wide\”>\r\n\t\t\t\t<label for=
    \”paypal_pro-card-number\”>Credit Card Number <span class=\”required\”>*<\/span><\/label>\r\n\t\t\t\t
    <input id=\”paypal_pro-card-number\” class=\”input-text wc-credit-card-form-card-number\” type=\”text
    \” maxlength=\”20\” autocomplete=\”off\” placeholder=\”\u2022\u2022\u2022\u2022 \u2022\u2022\u2022\u2022
    \u2022\u2022\u2022\u2022 \u2022\u2022\u2022\u2022\” name=\”paypal_pro-card-number\” \/>\r\n\t\t\t<\
    /p><p class=\”form-row form-row-first\”><label for=\”cc-expire-month\”>Expiration Date<span class=\”required
    \”>*<\/span><\/label><select name=\”paypal_pro_card_expiration_month\” id=\”cc-expire-month\” class=
    \”woocommerce-select woocommerce-cc-month mr5\”><option value=\”\”>Month<\/option><option value=1>January
    <\/option><option value=2>February<\/option><option value=3>March<\/option><option value=4>April<\/option
    ><option value=5>May<\/option><option value=6>June<\/option><option value=7>July<\/option><option value
    =8>August<\/option><option value=9>September<\/option><option value=10>October<\/option><option value
    =11>November<\/option><option value=12>December<\/option><\/select><select name=\”paypal_pro_card_expiration_year
    \” id=\”cc-expire-year\” class=\”woocommerce-select woocommerce-cc-year ml5\”><option value=\”\”>Year
    <\/option><option value=16>2016<\/option><option value=17>2017<\/option><option value=18>2018<\/option
    ><option value=19>2019<\/option><option value=20>2020<\/option><option value=21>2021<\/option><option
    value=22>2022<\/option><option value=23>2023<\/option><option value=24>2024<\/option><option value=25
    >2025<\/option><option value=26>2026<\/option><option value=27>2027<\/option><option value=28>2028<\
    /option><option value=29>2029<\/option><option value=30>2030<\/option><option value=31>2031<\/option
    ><\/select><\/p><p class=\”form-row form-row-last\”>\r\n\t\t\t\t<label for=\”paypal_pro-card-cvc\”>Card
    Security Code <span class=\”required\”>*<\/span><\/label>\r\n\t\t\t\t<input id=\”paypal_pro-card-cvc
    \” class=\”input-text wc-credit-card-form-card-cvc\” type=\”text\” autocomplete=\”off\” placeholder=
    \”CVC\” name=\”paypal_pro-card-cvc\” \/>\r\n\t\t\t<\/p>\t\t\t\t\t\t<div class=\”clear\”><\/div>\n\t\t
    <\/fieldset>\n\t\t\t\t<\/div>\n\t<\/li>\n\t<\/ul>\r\n\t\r\n\t<div class=\”form-row place-order\”>\r\n
    \r\n\t\t<noscript>Since your browser does not support JavaScript, or it is disabled, please ensure you
    click the Update Totals<\/em> button before placing your order. You may be charged more than the
    amount stated above if you fail to do so.<br\/><input type=\”submit\” class=\”button alt\” name=\”woocommerce_checkout_update_totals
    \” value=\”Update totals\” \/><\/noscript>\r\n\r\n\t\t <p class=\”form-row terms wc-terms-and-conditions
    \”>\n\t\t<input type=\”checkbox\” class=\”input-checkbox\” name=\”terms\” id=\”terms\” \/>\n
    <label for=\”terms\” class=\”checkbox\”>I’ve read and accept the <a href=\”https:\/\/mcgilldesigngroup
    .qnetau.com\/dev\/terms-conditions\/\” target=\”_blank\”>terms & conditions<\/a> <span class=\”required
    \”>*<\/span><\/label>\n <input type=\”hidden\” name=\”terms-field\” value=\”1\” \/>\n <\/p
    >\n\r\n\t\t\r\n\t\t<input type=\”submit\” class=\”button alt\” name=\”woocommerce_checkout_place_order
    \” id=\”place_order\” value=\”Place order\” data-value=\”Place order\” \/>\r\n\t\t\r\n\t\t<input type
    =\”hidden\” id=\”_wpnonce\” name=\”_wpnonce\” value=\”62d21cdc0e\” \/><input type=\”hidden\” name=\”_wp_http_referer
    \” value=\”\/dev\/checkout\/?wc-ajax=update_order_review\” \/>\t<\/div>\r\n\r\n\t<div class=\”clear\”
    ><\/div>\r\n<\/div>\r\n”}}

    Thread Starter dextrous

    (@dextrous)

    Hi Joe,

    Unfortunately I didn’t find a solution for woocommerce and ended up using another cart that met all of my client’s requirements.

    Perhaps you might consider approaching someone for a customised extension.

    Good luck
    dextrous

    Forum: Fixing WordPress
    In reply to: Error Message

    False Alarm!

    My dev version of WordPress was showing as up to date even though it is was version 3.2.1. (Strange!)

    I’ve upgraded to 3.5.1 and all is working perfectly.

    Forum: Fixing WordPress
    In reply to: Error Message

    Does anyone have a solution for this error? I am trying to install WooCommerce without any luck.

    I have created a fresh install of WordPress locally on my dev machine, have deactivated all plugins except WooCommerce so there should be no conflicts, have re-installed the plugin numerous times, have made sure everything is up to date, and am using the WooTheme MyStile. I can get into sections of the Admin site but whenever I try to view the front end I get:

    Fatal error: Call to undefined method WP_Query::is_main_query() in C:\…\wp-content\plugins\woocommerce\classes\class-wc-query.php on line 54

    System Status is as follows:
    WooCommerce version 1.6.6
    WordPress version WP 3.2.1
    Installed plugins
    WooCommerce by WooThemes version 1.6.6
    Settings

    Server Environment
    PHP Version 5.2.9-2
    Server Software Apache/2.2.11 (Win32) PHP/5.2.9-2
    WP Max Upload Size 2MB
    Server upload_max_filesize 2MB
    Server post_max_size 8MB
    WP Memory Limit 64MB
    WP Debug Mode No
    WC Logging Log directory is writable.

    Thanks, I would really appreciate the help.

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