This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

submitted several comments recently
#1
Exclamation 

Hi.
Whenever I submit a comment regardless of the details placed in the form, I get ..
"You have submitted several comments recently. Please wait longer."
I have changed names and email details and have removed all cookies.
Admin Detection is activated.
Any advice please.
Reply
#2

Hi Wendon,

You're right this is a bug. It checks the IP address (which is why it doesn't make any difference when you use a different name or clear your cookies), but the bug is how it ignores that it's the admin. It used to check whether it was the admin in v2.x but I guess this wasn't carried over in v3.x.

To fix open this file:
/upload/frontend/controller/main/form.php

Find this:
PHP Code:
<?php 
if ($this->setting->get('flood_control_delay_enabled')) {

Replace with:
PHP Code:
<?php 
if ($this->setting->get('flood_control_delay_enabled') && !$is_admin) {

Find this:
PHP Code:
<?php 
if ($this->setting->get('flood_control_maximum_enabled')) {

Replace with:
PHP Code:
<?php 
if ($this->setting->get('flood_control_maximum_enabled') && !$is_admin) {

Have you completed the interview?
Reply
#3

Thanks Steven, that works a treat...
but now (not sure if it's connected to that problem) when I (Admin) accesses 'Manage/Comments' and edit a comment...
(url: mysite/commentic/adminarea/index.php?route=edit/comment&id=28 ) on hitting the 'update' button I am taken to my sites front page. This is what happens when an unknown location has been entered. The url remains as shown above and no changes have been made to the comment.
Huh
Reply
#4

Can you PM me your admin login so I can determine what's happening?

Have you completed the interview?
Reply
#5

I've tested clicking 'Update' for that particular comment in both Chrome and Firefox and it's working successfully for me.

Are you still able to replicate it? If so, can you try a different browser/computer. Then, if it's still happening, can you send me your browser details using this:

http://supportdetails.net

Have you completed the interview?
Reply
#6

Hello Steven.
Well, I don't know what to say... I tested it again and it's working fine. Maybe you just frightened it.

Sorry for the trouble and many thanks.
Don
Reply
#7

Hello,

I have been receiving the following message even though I have posted fewer times than the 'Amount' set in flooding. (5 times in a period of 1 hour)

"You have submitted several comments recently. Please wait longer."

This occurs weather or not 'Admin detection' is enabled or disabled. I have also tried posting with an email other than the admin email address.

The only thing that will allow me to post is by keeping the 'Maximum' radio button unchecked.

Regards,

Neo
Reply
#8

Hi Neo I committed a fix for this recently. Please apply this change in /frontend/model/main/form.php

https://github.com/commentics/commentics...4327211e14

Have you completed the interview?
Reply
#9

Thanks Steven, works fine now.
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by Steven
13-Aug-2021, 08:01 AM
Last Post by 2hands
18-Nov-2017, 11:21 PM
Last Post by Deparis
21-Jul-2014, 10:39 AM
Last Post by johan
29-Oct-2013, 11:01 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)