Checkout page not redirecting to payment gateway

Hi, I’m using woocommerce + affiliates pro. When the subscriber buys some product and goes to the checkout page, the “make payment” button is frozen and does not redirect the user to the paypal or pagseguro page. If I disable Affiliates Pro, the checkout works.

When we created the site in 2015 everything worked, but about 6 months ago it stopped working.

The site is www.institutodialogo.com.br

Thank you


Comments

3 responses to “Checkout page not redirecting to payment gateway”

  1. Woocommerce generated this log:

    2018-04-17T00:51:22+00:00 CRITICAL Uncaught Error: Call to undefined function request_filesystem_credentials() in /home/institutodialogo/public_html/wp-admin/includes/class-wp-upgrader-skin.php:93
    Stack trace:
    #0 /home/institutodialogo/public_html/wp-admin/includes/class-automatic-upgrader-skin.php(47): WP_Upgrader_Skin->request_filesystem_credentials(false, ‘/home/instituto…’, true)
    #1 /home/institutodialogo/public_html/wp-admin/includes/class-wp-automatic-updater.php(144): Automatic_Upgrader_Skin->request_filesystem_credentials(false, ‘/home/instituto…’, true)
    #2 /home/institutodialogo/public_html/wp-admin/includes/update.php(85): WP_Automatic_Updater->should_update(‘core’, Object(stdClass), ‘/home/instituto…’)
    #3 /home/institutodialogo/public_html/wp-includes/update.php(215): find_core_auto_update()
    #4 /home/institutodialogo/public_html/wp-includes/class-wp-hook.php(286): wp_version_check()
    #5 /home/institutodialogo/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)
    #6 /home/institutodialogo/public_html/

    2018-04-17T11:53:58+00:00 CRITICAL Uncaught Error: [] operator not supported for strings in /home/institutodialogo/public_html/wp-content/plugins/vibe-course-module/includes/bp-course-classes.php:106
    Stack trace:
    #0 /home/institutodialogo/public_html/wp-content/plugins/vibe-course-module/includes/bp-course-template.php(679): BP_COURSE->get(Array)
    #1 /home/institutodialogo/public_html/wp-content/themes/wplms/course/my-courses.php(20): bp_course_has_items(‘&per_page=5&ext…’)
    #2 /home/institutodialogo/public_html/wp-includes/template.php(688): require_once(‘/home/instituto…’)
    #3 /home/institutodialogo/public_html/wp-includes/template.php(647): load_template(‘/home/instituto…’, true)
    #4 /home/institutodialogo/public_html/wp-content/themes/wplms/members/single/course.php(41): locate_template(Array, true)
    #5 /home/institutodialogo/public_html/wp-includes/template.php(688): require_once(‘/home/instituto…’)
    #6 /home/institutodialogo/public_html/wp-includes/template.php(647): load_template(‘/home/instituto…’, true)
    #7 /home/institutodialogo/p

    2018-04-17T12:51:22+00:00 CRITICAL Uncaught Error: Call to undefined function request_filesystem_credentials() in /home/institutodialogo/public_html/wp-admin/includes/class-wp-upgrader-skin.php:93
    Stack trace:
    #0 /home/institutodialogo/public_html/wp-admin/includes/class-automatic-upgrader-skin.php(47): WP_Upgrader_Skin->request_filesystem_credentials(false, ‘/home/instituto…’, true)
    #1 /home/institutodialogo/public_html/wp-admin/includes/class-wp-automatic-updater.php(144): Automatic_Upgrader_Skin->request_filesystem_credentials(false, ‘/home/instituto…’, true)
    #2 /home/institutodialogo/public_html/wp-admin/includes/update.php(85): WP_Automatic_Updater->should_update(‘core’, Object(stdClass), ‘/home/instituto…’)
    #3 /home/institutodialogo/public_html/wp-includes/update.php(215): find_core_auto_update()
    #4 /home/institutodialogo/public_html/wp-includes/class-wp-hook.php(286): wp_version_check()
    #5 /home/institutodialogo/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)
    #6 /home/institutodialogo/public_html/

    2018-04-17T13:45:23+00:00 CRITICAL Uncaught Error: Call to undefined method WC_Order::get_order_discount() in /home/institutodialogo/public_html/wp-content/plugins/affiliates-products/lib/comp/class-affiliates-products-woocommerce.php:481
    Stack trace:
    #0 /home/institutodialogo/public_html/wp-content/plugins/affiliates-products/lib/comp/class-affiliates-products-woocommerce.php(228): Affiliates_Products_WooCommerce::get_net_item_totals(7788)
    #1 /home/institutodialogo/public_html/wp-includes/class-wp-hook.php(288): Affiliates_Products_WooCommerce::woocommerce_checkout_order_processed(7788)
    #2 /home/institutodialogo/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)
    #3 /home/institutodialogo/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #4 /home/institutodialogo/public_html/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(983): do_action(‘woocommerce_che…’, 7788, Array, Object(WC_Order))
    #5 /home/institutodialogo/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.ph

    2018-04-17T14:28:24+00:00 CRITICAL Uncaught Error: Class ‘GFAPI’ not found in /home/institutodialogo/public_html/wp-content/plugins/integracao-rd-station/metaboxes/rdgf.php:25
    Stack trace:
    #0 /home/institutodialogo/public_html/wp-admin/includes/template.php(1063): RDGF->form_id_box_content(Object(WP_Post), Array)
    #1 /home/institutodialogo/public_html/wp-admin/edit-form-advanced.php(714): do_meta_boxes(Object(WP_Screen), ‘normal’, Object(WP_Post))
    #2 /home/institutodialogo/public_html/wp-admin/post-new.php(76): include(‘/home/instituto…’)
    #3 {main}
    thrown

    2018-04-20T19:12:45+00:00 CRITICAL Uncaught Error: Class ‘GFAPI’ not found in /home/institutodialogo/public_html/wp-content/plugins/integracao-rd-station/metaboxes/rdgf.php:25
    Stack trace:
    #0 /home/institutodialogo/public_html/wp-admin/includes/template.php(1063): RDGF->form_id_box_content(Object(WP_Post), Array)
    #1 /home/institutodialogo/public_html/wp-admin/edit-form-advanced.php(714): do_meta_boxes(Object(WP_Screen), ‘normal’, Object(WP_Post))
    #2 /home/institutodialogo/public_html/wp-admin/post.php(174): include(‘/home/instituto…’)
    #3 {main}
    thrown

    2018-04-20T19:13:13+00:00 CRITICAL Uncaught Error: Class ‘GFAPI’ not found in /home/institutodialogo/public_html/wp-content/plugins/integracao-rd-station/metaboxes/rdgf.php:25
    Stack trace:
    #0 /home/institutodialogo/public_html/wp-admin/includes/template.php(1063): RDGF->form_id_box_content(Object(WP_Post), Array)
    #1 /home/institutodialogo/public_html/wp-admin/edit-form-advanced.php(714): do_meta_boxes(Object(WP_Screen), ‘normal’, Object(WP_Post))
    #2 /home/institutodialogo/public_html/wp-admin/post.php(174): include(‘/home/instituto…’)
    #3 {main}
    thrown

    2018-04-20T23:59:23+00:00 CRITICAL Uncaught Error: Call to undefined method WC_Order::get_order_discount() in /home/institutodialogo/public_html/wp-content/plugins/affiliates-products/lib/comp/class-affiliates-products-woocommerce.php:481
    Stack trace:
    #0 /home/institutodialogo/public_html/wp-content/plugins/affiliates-products/lib/comp/class-affiliates-products-woocommerce.php(228): Affiliates_Products_WooCommerce::get_net_item_totals(7797)
    #1 /home/institutodialogo/public_html/wp-includes/class-wp-hook.php(288): Affiliates_Products_WooCommerce::woocommerce_checkout_order_processed(7797)
    #2 /home/institutodialogo/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)
    #3 /home/institutodialogo/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #4 /home/institutodialogo/public_html/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(983): do_action(‘woocommerce_che…’, 7797, Array, Object(WC_Order))
    #5 /home/institutodialogo/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.ph

    1. Hi Rafael,

      George asked me to have a look here – thanks for the debug.log but first thing you should do is update the plugins to their latest versions. Your licenses expired in June 2016 and if you are using the latest WooCommerce you need to update these:

      https://www.itthinx.com/shop/affiliates-pro/
      https://www.itthinx.com/shop/affiliates-products/

      Once that is done and if you see further issues, please open a new topic in https://www.itthinx.com/forum/affiliates-pro/

      Cheers

  2. Hi Rafael,

    What info do you get in your debug.log if you enable WP debugging?
    Also, since 2015 a lot has changed, including updates for WordPress, WooCommerce, Affiliates Pro and Affiliates WooCommerce integration.
    FYI, Affiliates Pro has reached version 3.0.1 and Affiliates WooCommerce integration current version is 2.0.0.

    To enable debugging, edit your wp-config.php file and replace the following line:
    define('WP_DEBUG', false );
    with these lines:

    define('WP_DEBUG', true );
    define('WP_DEBUG_LOG', true );
    define('WP_DEBUG_DISPLAY', false );

    after that, any errors will be added to a file named debug.log under your wp-content folder.

    Kind regards,
    George

Share