ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Membership module and 2.5.0

July 20, 2012 7:07am

Subscribe [3]
  • #1 / Jul 20, 2012 7:07am

    PaulAyling

    16 posts

    Hiya

    I’ve just noticed that the Membership module doesn’t appear to be working properly
    since I upgraded to 2.5.0 (to use the cookie module)

    1. No emails are being sent for user self registration, or when set to manual.
    (the email sent by the User plugin are coming through ok and members are appearing in pending?)

    2. When you view all under members and try an paginate through it, it loses the beginning of the url and just outputs /C=members&M=view_all_members&tbl_offset=20/ ?

    3. reordering by clicking say “Email”, or trying a search, I see a lot of undefined errors i.e.
    TypeError: ‘undefined’ is not an object (evaluating ‘this.header_map[this._initial_sort[d][0]].toggleClass’)
    ui-icons_ffffff_256x240.pngFailed to load resource: the server responded with a status of 404 (Not Found)
    4admin.php:49TypeError: ‘undefined’ is not an object (evaluating ‘this.header_map[this.sort[a][0]].removeClass’)
    2admin.php:46TypeError: ‘undefined’ is not an object (evaluating ‘this.sort.get’)
    5admin.php:49TypeError: ‘undefined’ is not an object (evaluating ‘this.header_map[this.sort[a][0]].removeClass’)
    4admin.php:46TypeError: ‘undefined’ is not an object (evaluating ‘this.sort.get’)

    This is happening on two different installs of EE

    So the question is, is it a bug or have i bodged the update ?

    Wdyt ? 😉

    Cheers
    Paul

     

     

     

     

  • #2 / Jul 20, 2012 2:24pm

    Shane Eckert

    7174 posts

    Hey PaulAyling,

    I am sorry to hear you are running into this problem.

    Are you on 2.5 or 2.5.2? There were a lot of fixes between 2.5 and 2.5.2.

    Can you try uploading your themes folder again? Sometimes that is a nice quick fix for Control Panel issues like this.

    Cheers,

  • #3 / Aug 01, 2012 9:49am

    PaulAyling

    16 posts

    Hiya, since there were “a lot of fixes” we just upgraded to 2.5.2 😉

    Though in doing so i’ve been getting “expression engine Parse error: syntax error, unexpected ‘;’ in /expressionengine/libraries/Functions.php(680) : eval()‘d code on line 200” on random templates.

    Only fix I could find was to recreate the template with the same code, seems the template is corrupt, any idea how I un-corrupt these, as some are index so I can’t delete them.

    Otherwise the upgrade fixed my other problem ;)

    Cheers
    Paul

  • #4 / Aug 01, 2012 12:00pm

    Shane Eckert

    7174 posts

    Hey PaulAyling,

    Can you try a few things for me?

    What if you open those templates and then save them. Does that accomplish the same thing as recreating the template?

    Just for clarification. A template does not work, so you create a new one and then copy and paste the contents of the bad template into a new one and it works? The same exact code, PHP, includes, etc.

    Please let me know.

    Cheers,

  • #5 / Aug 01, 2012 1:08pm

    PaulAyling

    16 posts

    Hey Shane

    tried resaving the template, also removed the saved
    template files and resaved again, still got the error.

    and yes, created a new template, coped out the code
    from the broken one and pasted into new, repointed
    the structure link to use the new template, working fine.

    leaving me with a couple of non working templates

    hope that’s useful

    cheers
    paul

  • #6 / Aug 01, 2012 1:12pm

    Shane Eckert

    7174 posts

    Hey PaulAyling,

    Gotcha.

    So two things.

    1. Does the template work before you bring Structure into the picture?
    2. Is Structure at the latest version?

    Thank you,

  • #7 / Aug 01, 2012 1:31pm

    PaulAyling

    16 posts

    hiya

    called the template directly got the same error,

    I would be suprised if it was structure, as only two
    of my templates had the problem, odd one 😉

    structure version I’m on is 3.1.3

    cheers
    Paul

  • #8 / Aug 01, 2012 1:33pm

    Shane Eckert

    7174 posts

    Hey PaulAyling,

    I would like to get in and take a look.

    Please be on the lookout for an email from EllisLab.

    Cheers,

  • #9 / Aug 01, 2012 1:45pm

    PaulAyling

    16 posts

    hey Shane, will get back to u tomorrow,
    getting late here In the uk 😊


    Paul

  • #10 / Aug 01, 2012 1:46pm

    Shane Eckert

    7174 posts

    Hey PaulAyling,

    Whatever works for you my friend.

    Talk to you tomorrow.

    Cheers,

  • #11 / Aug 02, 2012 4:41pm

    Robin Sowell

    13255 posts

    Hi Paul,

    Replying with the details here, as it will no doubt be helpful to others in the future.  Looking at one of the templates- this bit?  Was causing the error:

    {exp:weblog:entries limit="3"}
            
         <li id="{count}" 
        {if title == "<?php echo urldecode("{segment_2}"); ?>" } 
         class="active"
        {/if}
    
    {/exp:weblog:entries}

    It errors if you have php parsed on output, not if it’s parsed on input.  Basically on output?  The php isn’t parsed when the EE conditional is run- so it’s treating that whole bit as a string.

    What I’d do- first, change weblog to channel, just for consistency.  And I really thought that would break.

    Second- I try hard not to mix ee conditionals with php if I can avoid it, just because they really can get tricky.

    Third, I don’t think you need php at all- maybe:

    {if url_title == segment_2}

    Make sense what was going on there?  I’ve left it as is, because I don’t like messing with folks’ templates, particularly when I’m not sure how you want to address it.  But php and parse order are pretty much the problem.

  • #12 / Aug 03, 2012 3:02am

    PaulAyling

    16 posts

    Thanks a lot chaps, all working fine now and I made your suggested changes, still loads to learn 😊

    Thanks again
    Paul

  • #13 / Aug 03, 2012 9:54am

    Robin Sowell

    13255 posts

    WOOT!  Glad that did the trick- and made sense!  Looks like you’re doing a fine job of getting the hang of it- there’s a lot to learn!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases