Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

[GitHub Bug #1352]Edit My Account: Call to undefined method RoleModel::Roles in Ajax request

fh111fh111 Vanilla Padawan ✭✭
edited May 2012 in Vanilla 2.0 - 2.8

One member of our community let me know that he couldn't change his email address via the "Edit My Account" setting.

i checked and noticed that it does not work for anyone. you click 'save', but nothing happens. the dialog stays where it is, nothing is saved.

i just did a clean install of 2.0.18.4 in another directory and directly after setting it up tried to change the email address, but it did not work.

i wonder why. anyone else experiencing this?

Tagged:
«1

Answers

  • Options

    Use Firebug for firefox and check for any javascript errors

    There was an error rendering this rich post.

  • Options
    422422 Developer MVP
    edited May 2012

    Never tried this, is there a setting in roles and permissions ?

    There was an error rendering this rich post.

  • Options
    peregrineperegrine MVP
    edited May 2012

    I think fh111 may have found a glitch. I tried it and found the same problem.

    The save box just looks like it is trying to process and never resolves.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options
    422422 Developer MVP

    Have you run console ? In firebug

    There was an error rendering this rich post.

  • Options
    peregrineperegrine MVP
    edited May 2012
     Call to undefined method RoleModel::Roles() in /var/www/vanilla/applications/dashboard/models/class.usermodel.php on line 828
    
    Call Stack:
        0.0004     340892   1. {main}() /var/www/vanilla/index.php:0
        0.4126    7853200   2. Gdn_Dispatcher->Dispatch() /var/www/vanilla/index.php:53
        0.4684    9567236   3. call_user_func_array() /var/www/vanilla/library/core/class.dispatcher.php:322
        0.4685    9567488   4. ProfileController->Edit() /var/www/vanilla/library/core/class.dispatcher.php:0
        0.4806    9754872   5. Gdn_Form->Save() /var/www/vanilla/applications/dashboard/controllers/class.profilecontroller.php:293
        0.4806    9756152   6. UserModel->Save() /var/www/vanilla/library/core/class.form.php:1742
    
    
       $ConfirmEmailRoleID = C('Garden.Registration.ConfirmEmailRole');
    

    line 828 - if (RoleModel::Roles($ConfirmEmailRoleID)) {

    apparently this has to be set in config.php
    C('Garden.Registration.ConfirmEmailRole');

    $Configuration['Garden']['Registration']['ConfirmEmailRole'] = '8';

    I set it - but it doesn't solve problem.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options
    422422 Developer MVP

    Time to hit up a bug report on Fatgit.

    There was an error rendering this rich post.

  • Options

    I leave that to fh111 if more people can replicate problem.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options
    422422 Developer MVP
    edited May 2012

    Yuuup sounds good.

    Had to lol at fatgit.com

    There was an error rendering this rich post.

  • Options
    fh111fh111 Vanilla Padawan ✭✭
    edited May 2012

    oh thanks guys for looking into this. too bad - i was hoping there would be a quick fix :p

    i just submitted this issue on ... uhm .. fatgit :D ..

    never really used it before so please tell me i did not make a mistake

    https://github.com/vanillaforums/Garden/issues/1352

  • Options
    422422 Developer MVP

    Goodonya

    There was an error rendering this rich post.

  • Options

    Good job, everything worked out... I updated the discussion title and commented on the bug on GitHub...
    So now you can make bug reports (reproduce bugs first please!) and you can make ... wiki pages? :-)

    There was an error rendering this rich post.

  • Options
    fh111fh111 Vanilla Padawan ✭✭
    edited May 2012

    i am really confused now. i mentioned in a discussion to the other admins and mods that i reported the bug on github. then another admin wrote today that he was able to change his email address. so i tried myself, and it worked (firefox). then i tried with another browser (chromium) and it worked again Oo then i tried with a third browser (opera) and it also worked.

    i am VERY confused buy this. i first heard about a user having difficulties changing their email about a month ago. i tried myself back then and couldn't change my email either. but i thought i'll deal with it another time, because i was quite busy back then.

    so now...i don't know what to say honestly

    @peregrine
    does it work for you as well now? can anyone explain this to me please? i reproduced this on a clean install yesterday. and now on the same install it works as well!! wtf

    baffled

  • Options
    peregrineperegrine MVP
    edited May 2012

    Admins appear to be able to change e-mail, members run into an error.

    Did you try it as a member?

    create a test user, login as that user, and goto edit my account and see if you can change the e-mail address. If you can there is not problem and no bug now. If you can't something in the permissions or a bug is present. either way, still need to find out what to change.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options
    fh111fh111 Vanilla Padawan ✭✭

    well it totally works with a regular members account on the clean install
    but it did not even work with the admin account when i set it up to reproduce the error

    but it does not seem to work for members in our community, so something is not right yet. keep me posted if you find something, i'll do the same

  • Options

    try replacing class.usermodel.php (from the new install) and putting it on your live /vanilla/applications/dashboard/models/class.usermodel.php

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options
    fh111fh111 Vanilla Padawan ✭✭
    edited May 2012

    just tried but it did not change anything

    edit:
    i'll go through roles & permissions when i have time and just play with the checkboxes. too bad that part is so buggy ...

  • Options
    peregrineperegrine MVP
    edited May 2012

    I reloaded all of the source to the 3/26/2012 version of software 2.0.18.4
    and the problem disappeared. Members are now able to change the e-mail.
    I also deleted all the ini files from cache. Don't quite know what the problem was.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options
    fh111fh111 Vanilla Padawan ✭✭
    edited May 2012

    strange. i will try that too then, as soon i have time. will report back.
    happy to hear the problem is resolved for you

  • Options

    I actually have an imaginary site, for me, myself, and I. None of us were worried about the problem, we just test and try to solve things for you folks for the challenge. :)

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options
    fh111fh111 Vanilla Padawan ✭✭

    haha, you're lucky! you don't have anyone complain about things not working 100% : )

Sign In or Register to comment.