Illegal function in “contact us” form
Posted: 12 May 2006 02:49 PM   [ Ignore ]  
Research Assistant
RankRankRank
Total Posts:  414
Joined  10-08-2005

i have a few users who inform me that whenver the email-based “contact us” form is used, EE tells him that they have performed an “illegal function”. i am unable to duplicate the problem myself. can someone tell me what is the error message that is being described? does this error occurs with certain proxy IP or other situations? if so, how do i correc this?

Profile
 
 
Posted: 12 May 2006 11:33 PM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7534
Joined  08-05-2002

Unfortunately, that error message does not ring any bells and I checked the script just to make sure with no luck either.  If you could get the exact error message that would be great.  Also, it might be a browser issue so see if they are using the same browser.  Perhaps exactly what they tried to send as well and then you can try sending it to see if you get the error.

 Signature 
Profile
 
 
Posted: 13 May 2006 03:54 AM   [ Ignore ]   [ # 2 ]  
Research Assistant
RankRankRank
Total Posts:  414
Joined  10-08-2005

hi, paul,

the user was able to reach me by another means. it turns out it was an authorization error. it appears that the default AOL browser is creating problem with the email based contact us form. do you know if this is a known issue? should i include something in my whitelist to deal with AOL browser?

Profile
 
 
Posted: 13 May 2006 08:41 AM   [ Ignore ]   [ # 3 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  292
Joined  03-21-2005

I’ve come across a similar issue when testing contact us forms I’m building. The following might be what your users are experiencing:

During form testing, if I try and send two messages in a row using the form, it throws this error message:

The following errors were encountered

      * You are not authorized to perform this action

Return to Previous Page

I can resolve this by simply refreshing the form and submitting again. It seems as though once the form has been cached, it can’t be used again until it has been refreshed.

I don’t know why this happens, but my guess is that it’s a built in mechanism to prevent using the form for spam. There are probably ways around this, like setting tag caching to “no” or something, but I haven’t played around with it so I’m not sure.

 Signature 

VENN ~ Web Development : Web Content Management

Profile
 
 
Posted: 13 May 2006 12:35 PM   [ Ignore ]   [ # 4 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7534
Joined  08-05-2002

It is not tag caching but Secure Forms, which is a universal feature for EE’s forms.  It prevents forms on an EE site to be submitted by bots or the like without considerable effort.  With AOL, they often cache pages and also use a proxy, which might change the person’s IP address.  We need the form to be fresh and used by the same IP address that loaded it that sent it.  That is likely your problem.

 Signature 
Profile
 
 
Posted: 13 May 2006 12:50 PM   [ Ignore ]   [ # 5 ]  
Research Assistant
RankRankRank
Total Posts:  414
Joined  10-08-2005

paul,

what is the solution then? i don’t want to turn off secure form. it is a good feature to prevent email spam.

Profile
 
 
Posted: 13 May 2006 01:23 PM   [ Ignore ]   [ # 6 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7534
Joined  08-05-2002

Well, unfortunately most of our security code relies on the person loading the page themselves and their IP address not changing between page loads, which is unfortunately not something you can guarantee with AOL users and some people behind proxies.

There is no good solution here, since it seems impossible to guarantee security with some visitors to your site.  You could turn off Secure Forms and simply require membership for those pages, but that seems to be a great deal of effort and restricts their use.

 Signature 
Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64904 Total Logged-in Users: 50
Total Topics: 81848 Total Anonymous Users: 27
Total Replies: 440043 Total Guests: 231
Total Posts: 521891    
Members ( View Memberlist )