This topic has 10 replies, 3 voices, and was last updated 9 years by Radu.

  • Author
  • #115414
     joshveach
    Participant

    Hello, Have a conflict with applying discounts using the PaidMembershipsPro plugin and get “Error applying discount code [1].”

    I don’t know when the problem began but I do know at one point discounts were working fine with the Kleo theme.

    I have confirmed with my host (WP Engine) that it is not a caching issue. WP & plugins all up-to-date. I disabled plugins which didn’t work.

    Tested the TwentyFifteen theme and the discounts worked without problem.

    Could you help me identity what could be causing the error? Thanks in advance for your help!

    #115629
     Laura
    Moderator

    Hello, will assign the ticket to a higher support level who can help and advise you in your query.
    Thanks! 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #116292
     joshveach
    Participant

    Thank you Laura, any update?

    #116381
     Radu
    Moderator

    Hi,

    Please do next :

    Update the theme to latest version 4.0.4 and the afferent plugins, you can check the plugin update status from wp-admin -> appearance -> install plugins.

    If this is useless please follow these steps to enable wp debug:

    •  Connect to your server by FTP
    • Look in root directory of your WordPress install and open wp-config.php
    • Search for define( ‘WP_DEBUG’, false ); and change FALSE value to TRUE
    COPY CODE
    define( 'WP_DEBUG', true );
    
    •   After this line add this:
    COPY CODE
    define( 'WP_DEBUG_LOG', true );
    

    WP_DEBUG_LOG is a companion to WP_DEBUG that causes all errors to also be saved to a debug.log log file inside the /wp-content/ directory. This is useful if you want to review all notices later or need to view notices generated off-screen (e.g. during an AJAX request or wp-cron run).

    Repeat the described actions and then check the debug.log file and let me know what error appears.

    If this is useless please try to deactivate additional plugins except Visual Composer, K-elements, BuddyPress, Paid memberships pro and revolution slider.

    After you have disabled the plugins try to see if the error persists.

    Cheers

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #116477
     joshveach
    Participant

    Hello and thanks for your reply,

    Theme & plugins have been updated. Error persists with all other plugins disabled – I . Log is attached.

    Error that appears onscreen:

    Notice: bp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init()

    Thanks

    #116603
     Radu
    Moderator

    Ok

    Please do the following

    1. Login to FTP go to wp-admin -> wp-content/themes/kleo/

    2. Delete paid-memberships-pro folder.

    3. Reupload the theme files over the existing theme files ( first download latest theme version 4.0.5 )

    4. Check again

    Let me know

    Cheers

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #116747
     joshveach
    Participant

    Completed these steps, unfortunately no change.

    #116879
     Radu
    Moderator

    Hi,

    Please check all related links from here : https://www.google.com/search?safe=off&q=PaidMembershipsPro+Error+applying+discount+code+%5B1%5D maybe there is some solution or cause

    Let me know

    Cheers

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #118528
     joshveach
    Participant

    Hi, yes that was the first place I went. However through deactivating other plugins and activating default themes, it is clear that the conflict is theme related. After receiving your last message I even created a ticket with PaidMembershipsPro and they confirmed it is theme related.

    There has to be something going on that is causing this error. Are there any other steps we can take to try to troubleshoot?

    #118744
     Radu
    Moderator

    Hi,

    Unable to reproduce your described error, https://drive.google.com/file/d/0Bxo5b6iHWRMwRHVaeFpiMXpyQkE/view

    Can you please make a video in that you provide steps by steps to reproduce the issue ?

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #118745
     Radu
    Moderator

    If you install on a subdomain kleo and pmpro you are able to reproduce the issue ?

    Also try to reproduce that with the child theme deactivated, activate Kleo parent theme instead the child.

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 11 posts - 1 through 11 (of 11 total)

The forum ‘Bugs & Issues’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?