Advertisement:

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003950SMF 2.0Templatepublic2009-11-02 18:162010-05-09 06:35
ReporterSleePy 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusresolvedResolutionfixed 
PlatformOSOS Version
Summary0003950: Weird profile template error
DescriptionRecently I have been seeing this logged on our site from guests
http://www.simplemachines.org/community/index.php?action=profile;area=account;save [^]
Unable to load the 'account' template.

I have absolutely no clue how to reproduce this. The IPs associated with them are assigned to members.
I tried to hit that url as a guest. Nothing
I tried to clear my cookies and then hit that url (so I have no active sesion). Nothing.
I tried to login as a user, go to the account settings, then clear my cookies and submit that page. Also nothing.
Tags2.0 final, With Fix
Attached Filespatch file icon bug_3950.patch [^] (2,962 bytes) 2010-05-07 08:52 [Show Content]

- Relationships
related to 0004404resolvedNorv undefined error when changing email address 

-  Notes
(0011230)
karlbenson (SMF Friend)
2009-12-26 19:16

is this still occuring Sleepy?
(0011277)
SleePy (Developer)
2009-12-28 09:56

Yes it is. I for the life of me can't reproduce it either. I am getting it in multiple languages now.
(0011372)
Arantor_old (Viewer)
2009-12-31 06:19

Would it be possible to get at the raw access logs and see what URL(s) that guest was at beforehand?
(0011376)
karlbenson (SMF Friend)
2009-12-31 16:28

At a guess could it be related to
- deleting account
(with our w/o admins permission)
(0011601)
TE (SMF Friend)
2010-02-16 05:56

SleePy, is this still an issue after the site upgrade?
(0011607)
SleePy (Developer)
2010-02-16 16:45

Yes.. Although now they have user ids in the urls.
I will include the Info in a message marked private after this reply.
(0011820)
groundup (SMF Friend)
2010-04-23 13:54

Still waiting on some information from Sleepy or whomever was working on this.
(0011883)
[SiNaN] (SMF Friend)
2010-05-07 08:51
edited on: 2010-05-07 08:54

...This took a lot of time of me to find the cause. Took 10 seconds to fix though. Oh, well!

The cause is the profileSendActivation() function for email address change input validation.

    $context += array(
        'page_title' => $txt['profile'],
        'sub_template' => 'after',
        'description' => $txt['activate_changed_email']
    );

It pushes sub template with += but it fails, obviously (it's already set in ModifyProfile() function as 'account' -the function name-) and obExit() at the end of the function exists before account() function is run, which sets the sub template to 'edit_options'.

And the reason we couldn't reproduce it easily was that the option "Require reactivation after email change" should have been set and since it isn't enabled by default, it was hard to catch. I'm not going to let these things pass through though. :P

Anyway, attached a patch fixing the issue.

(0011884)
Norv (SMF Friend)
2010-05-07 09:52

Nice job!
(0011902)
[SiNaN] (SMF Friend)
2010-05-09 06:35

& Correct sub template was not set for email activation notice on email change (Profile-Modify.php Register.php, Register template, Profile language file) Revision 9863
MantisBT 1.2.8 (Modified)[^] Copyright © 2000 - 2010 Mantis Group