PHP-Nuke 8, bug, Sorry, too many page loads in so little time!

I installed PHP-nuke version 8 on my linux server.  When logged in as admin, upon clicking on froum, I would get an error “Sorry, too many page loads in so little time!”.  After reinstalling the problem still existed.  I posted the problem in the php nuke forum and within days received a reply from a member named arnoldkrg.  Well below is the solution from arnoldkrg, thanks man.

 OK….I have finally figured this one out. It is the new antiflood/dos attack prevention system. This writes the user’s ip address and the microtime of the page load to the nuke_antiflood table each time the users loads a page. If there are 3 page loads in 2 seconds, the antiflood dies the script and puts up the “Sorry, too many page loads in so short a time” message. Unfortunately, there are 4 page loads to view the Forums admin page. Each frame counts as a page load and they add up to four. So whenever you view the Forums admin page you exceed the limit and the page shuts down with the message. So the page loads criterium is too severe for the Forums admin page. (I cant believe they didnt test this)

Solution. In includes/ipban.php find near the bottom:
Code:
if ($numrow >= 3) {
   echo “

Sorry, too many page loads in so little time!
”;
   die();
}
and change to:
Code:
if ($numrow >= 5) {
   echo “

Sorry, too many page loads in so little time!
”;
   die();
}
This will allow sufficient page loads to view the frames in Forums admin, without disabling the antiflood system altogether.

About Andrew Lin

Hi, I have always wanted to creat a blog site but never had the time. I have been working in Information Technology for over 15 years. I specialize mainly in networks and server technologies and dabble a little with the programming aspects. Andrew Lin

View all posts by Andrew Lin →

2 Comments on “PHP-Nuke 8, bug, Sorry, too many page loads in so little time!”

  1. Pingback: link
  2. Pingback: link

Leave a Reply

Your email address will not be published. Required fields are marked *