We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15003
    • 85 Posts
    My update profile page doesn’t show any error or success messages from [+wlpe.message+]

    The webloginPE call I am using is:
    [!WebLoginPE? &type=`profile` &profileTpl=`update-profile-form` &profileHomeID=`17`!]

    Can anybody please tell me what I’m missing? Any updated information is making it to the database, I just need the messages to work. The messages do work for the login process.

    Thanks ~Jules
      • 4310
      • 2,310 Posts
      A quick look around line 970 shows :
      		}
      		
      		$this->FormatMessage($this->LanguageArray[101]);
      	}

      Probably should be :
      		}
      		
      		$this->FormatMessage($this->LanguageArray[101]);
                      return;
      	}

      LanguageArray[101] is the update profile success message.
      Untested so beware wink
        • 15003
        • 85 Posts
        Thanks for the suggestion, it didn’t work though. Just to be sure I went back to using the default profile template.

        I tried updating my password using unmatched words --no error message.
        When I updated my profile I didn’t get "Your profile has been updated." either. The changes are being saved.

        The call I’m using now is:
        [!WebLoginPE? &type=`profile` &profileHomeID=`17`!]

        I’m at a loss, do you have any other ideas?
          • 4310
          • 2,310 Posts
          I was getting the incorrect password error okay, but no success message!
            • 15003
            • 85 Posts
            The call I’m using is basic, and I’m using the default template --so if the problem is not in the form or the call where do I go to look for it?

            I’m using a slide down panel for the login, and though I don’t think it has anything to do with my problem I thought I would include anyways:
            [!WebLoginPE? &type=`simple` &loginFormTpl=`login-panel-tpl` &successTpl=`login-panel-success-tpl` &profileHomeId=`17`  &resetTpl=`login-panel-reset-pw-tpl` &activateTpl=`login-panel-pw-activation-tpl` &liHomeId=`17` &loHomeId=`1` &disableServices=`deleteprofile,register`!] 


            Thanks for any help offered!
            Jules

              • 15003
              • 85 Posts
              I did a new test install of MODx and implemented WebloginPE using all default templates to see if there was some sort of corruption in the site I was working on... I still didn’t get any of the wlpe messages.

              In order to get around this issue I would like to set it up so that when "save" is clicked the user is redirected to a page that reflects the updated info, but isn’t inside a form --like the defaultViewProfileTpl.html except that it should only list the one user with the newly saved data. I thought that using the &profileHomeID would accomplish this, but it didn’t.

              I see that in the webloginpe.snippet.php on line 58
              $displayProfileTpl = isset($profileTpl) ? $wlpe->Template($profileTpl) : $wlpeProfileTpl;

              and starting on line 162

              case ’saveprofile’ :
              if (in_array(’saveprofile’, $disableServices)){return;}
              $wlpe->SaveUserProfile();
              $wlpe->PlaceHolders($inputHandler, $messageTpl);
              return $displayProfileTpl;
              break;

              Can anyone suggest a way of having a user return to a page of my choice instead of returning to the profileTpl?

              I really need to find a way to resolve this issue... please someone help me! If needed I would be more than willing to give access to the site on my testing server.

              Thanks, Jules

                • 4310
                • 2,310 Posts
                Untested, so back it up first, but try this where ** is the id of the page you want them sent to.

                case 'saveprofile' :
                                if (in_array('saveprofile', $disableServices)){return;}
                                $wlpe->SaveUserProfile();
                                $wlpe->PlaceHolders($inputHandler, $messageTpl);
                                $url = $modx->makeURL(**);
                                $modx->sendRedirect($url,0,'REDIRECT_REFRESH');
                                break;
                  • 15003
                  • 85 Posts
                  Thank you so much!
                  It worked like a charm. And thanks for the reminder to document my changes and create a bk up of the original:-)

                  ~Jules