s2IF parsing error, did something change in new version?

Forums General s2IF parsing error, did something change in new version?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #524
    Joshua Shapiro
    Participant

    I am using this s2IF condition to make sure a person sees all the member
    files for the 1st month

    [s2If php="S2MEMBER_CURRENT_USER_PAID_REGISTRATION_DAYS >= 0"]

    the error message I received for this s2IF condition was:

    Parse error: syntax error, unexpected ‘;’ in /home2/crystals/public_html/cse/wp-content/plugins/s2member/includes/classes/sc-if-conds-in.inc.php(319) : eval()’d code on line 1

    I am guessing something changed in the new release

    since the page is protected by the level – I guess I could assume that all the files for the first month
    can be viewed from day 0 (1) without any conditions

    but then for month 2, if above > 30 – is this going to also produce a parse error

    thank you Cristian

    Joshua

    #528

    Odd… See if you can reproduce that error in an installation with just s2Member added and no other plugins. If so, please report it in a new issue over at GitHub so Jason can investigate it. https://github.com/websharks/s2member/issues

    Thanks!

    #534
    Joshua Shapiro
    Participant

    Cristian – the solution I used was to go with s2Drip – setting the from_day to 0 – not sure why the other condition isn’t working
    maybe it has to do with making a php call – better to keep it simple wiith shortcodes

    Joshua

    #543

    Thanks for the update! I’m glad you could make it work. 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.