Affiliates products doesn’t work with LearnPress

I have installed LearnPress and AffiliatePro, Affiliate products and WooCommerce.
When customers are buying a course and want to pay with PayPal an error message shows up. Everytime a customer is pressing pay an new order will be arranged in LearnPress and Woocommerce.
After deactivating Affiliate products everything works as it should be.

Any idea?

14 Responses to Affiliates products doesn’t work with LearnPress

  1. George September 29, 2017 at 9:24 pm #

    You are welcome Reinhard. 🙂

  2. Reinhard September 25, 2017 at 5:39 pm #

    Hi George,

    thanks for your help.
    Best wishes Reinhard

  3. George September 25, 2017 at 5:37 pm #

    Sorry Reinhard, i don’t have an ETA yet, but it will be fixed ASAP.

    Here is the part of debug.log regarding LearnPress:


    [25-Sep-2017 16:48:07 UTC] The The "add_to_cart_fragments" hook uses out of date data structures and function is deprecated since version 3.1.2. Replace with woocommerce_add_to_cart_fragments.
    [25-Sep-2017 16:53:53 UTC] WordPress database error Column 'meta_value' cannot be null for query INSERT INTO `wp_learnpress_order_itemmeta` (`learnpress_order_item_id`, `meta_key`, `meta_value`) VALUES ('73', '_data', NULL) made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->create_order, do_action('woocommerce_checkout_update_order_meta'), WP_Hook->do_action, WP_Hook->apply_filters, LP_Woo_Payment_Init->create_order, LP_Order->add_item, learn_press_add_order_item_meta, add_metadata

    Cheers,
    George

  4. George September 25, 2017 at 5:08 pm #

    Hi Reinhard,

    It appears that there are issues with both plugins. These issues result in not letting you use them at the same time.
    So far we have concluded that Affiliates Products blocks checkout, but if we disable LearnPress with Affiliates Products enabled, the checkout works properly. All these issues are logged in the debug.log and i’ve kept issues related to Affiliates Products in order to proceed with an update. But there are issues related to LearnPress as well found there. If you are not able to locate them, let me know to forward them to you. You should use the debug.log as well to report to LearnPress developers to help them identify the problem easier.

    Once the update for Affiliates Products is released, you will see a prompt in your Dashboard > Plugins to update to the new version.

    From my side, you are free to work on your website.

    Kind regards,
    George

    • Reinhard September 25, 2017 at 5:13 pm #

      H George,

      thanks for your help. Do you have an idea when a new version will be released?

      Would be great if you can sent me the debug.log with the learnPress issues.

      Best regards

  5. George September 25, 2017 at 1:53 pm #

    Sure Reinhard, once i finish up this test i’ll let you know.

    Cheers,
    George

  6. Reinhard September 25, 2017 at 1:49 pm #

    Hi George,

    I have enable debugging. Hope this time it will work.

    Yes, please go ahead. Can you please let me know when you finished your work? Until I receive this confirmation I’ll not work on my site.

    Thanks for your help.

    Best wishes Reinhard

  7. George September 25, 2017 at 12:41 pm #

    Hi Reinhard,

    I’ve tested also with a default theme( twentyfifteen ) but the results are the same.

    I would like to test all your plugins as well, in case i locate the plugin conflicting. For this i need to disable all your plugins and then enable them one-by-one until i find the one conflicting with Affiliates Products. This test can only be performed on your installation directly since we haven’t faced a similar issue with Affiliates Products so far and because the majority of your plugins are premium ones i have access only on your site. This operation will disable features on your site, so before acting i would like to have your confirmation.
    Also, if not active already, please enable WP debugging to get some more hints on this.

    Cheers,
    George

  8. Reinhard September 25, 2017 at 9:03 am #

    Hi George,

    I made the changes and tested but unfortunately the result is the same. If I deactivate the plugin everything works ok.

    Do you have any further ideas?

    Best wishes Reinhard

  9. Reinhard September 25, 2017 at 9:03 am #

    Hi George,

    I made the changes and tested but unfortunately the result is the same. If I deactivate the plugin everything works ok.

    Do you have any further ideas?

  10. George September 25, 2017 at 7:24 am #

    Hi Reinhard,

    This issue usually occurs when the Checkout page is cached, or simply when the php memory gets exhausted.
    Although i haven’t noticed any caching plugins enabled on your site, if there is one i’m missing, disable it temporary or disable caching for Checkout page.
    Also, check your server php logs for more hints on this because it is pretty generic and in the meantime increase php memory in case your server memory is exhausted when another plugin is activated. There is a guide here on how to raise your memory limit.

    If none of these helps, please let me know.

    Kind regards,
    George

  11. George September 24, 2017 at 8:31 pm #

    Sure why not.
    You can send me temp admin credentials to george@itthinx.com.

    Cheers,
    George

  12. George September 24, 2017 at 5:35 pm #

    Hi Reinhard,

    What error do you get when someone tries to make a purchase? Does the error occur only with PayPal or with other payment methods as well( ie Credit Card)? Do you also get any other errors logged with WordPress debugging enabled?
    You can forward these to my mail for further investigation, george@itthinx.com. In the meantime, i will setup LearnPress in my test installation to check if i get the same results.

    In order to enable WP 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 );
    after that, add a file named debug.log under your wp-content folder.

    Kind regards,
    George

    • Reinhard September 24, 2017 at 6:14 pm #

      Hi George,

      thanks for your reply.
      This is the error I receive:
      !Internal Server Error

      I used different payment options and the result is the same. Only if I deactivate Affiliate Products the error disappears.

      I tried to generate a log file but wasn’t very successful. Would it be easier if I give you access to my site? I’m still in a development process, so there would be no secret.

      best wishes Reinhard

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account

Share