• Resolved puzzledwebmaster

    (@puzzledwebmaster)


    Long story short, Up until today I had Membership 2 version 4.0.0.1 and it worked perfectly. I updated to version 4.0.0.3 and it’s giving me a fatal error:

    Fatal error: Undefined class constant ‘PAYMENT_TYPE_RECURRING’ in /home/jesse11/public_html/GazelleGalaxy.info/home/wp-content/plugins/membership/app/model/class-ms-model-membership.php on line 1375

    Would love to know what’s going on :3
    Granted, If I figure it out before I get a reply from here I will post the solution I got for posterity.

    Thank you for your time.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter puzzledwebmaster

    (@puzzledwebmaster)

    So apparently there is an issue with this segment here:
    Lines 1375-1384 of class-ms-model-membership.php

    case self::PAYMENT_TYPE_RECURRING:
    $desc = __( ‘Each %1$s’, MS_TEXT_DOMAIN );

    if ( $has_payment ) {
    if ( 1 == $this->pay_cycle_repetitions ) { $desc = __( ‘Single payment’, MS_TEXT_DOMAIN );
    } elseif ( $this->pay_cycle_repetitions > 1 ) {
    $desc .= ‘, ‘ . __( ‘%2$s payments’, MS_TEXT_DOMAIN );
    }
    }

    Thread Starter puzzledwebmaster

    (@puzzledwebmaster)

    Fixed it!

    Basically what I did was this:
    When it gave me the error code, I tried to creat a new membership because I couldn’t edit the old one. In response, it replaced the old one with the new one but still was having an error. So I deactivated and uninstalled the plugin, reinstalled.(at this point the old membership listing was back but the new one was gone.) and I then deleted the old one. The new one came back and the error was gone. Since having no problems ^.^

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Membership 2 Fatal error after newest update’ is closed to new replies.