{"id":46,"date":"2007-07-05T15:50:10","date_gmt":"2007-07-05T20:50:10","guid":{"rendered":"http:\/\/www.gamescheat.ca\/?p=46"},"modified":"2019-09-04T19:57:41","modified_gmt":"2019-09-05T00:57:41","slug":"php-nuke-8-bug-sorry-too-many-page-loads-in-so-little-time","status":"publish","type":"post","link":"http:\/\/www.gamescheat.ca\/?p=46","title":{"rendered":"PHP-Nuke 8, bug, Sorry, too many page loads in so little time!"},"content":{"rendered":"<div style=\"float: right;\"><div style=\"margin: 15px 15px 15px 15px\";><script type=\"text\/javascript\"><!--\ngoogle_ad_client = \"pub-3319935785736004\";\ngoogle_alternate_color = \"FFFFFF\";\ngoogle_ad_width = 234;\ngoogle_ad_height = 60;\ngoogle_ad_format = \"234x60_as\";\ngoogle_ad_type = \"text_image\";\ngoogle_ad_channel =\"\";\ngoogle_color_border = \"cccccc\";\ngoogle_color_link = \"cc0000\";\ngoogle_color_bg = \"ffffff\";\ngoogle_color_text = \"000000\";\ngoogle_color_url = \"008000\";\n\/\/--><\/script>\n<script type=\"text\/javascript\"\n  src=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\n<\/script><\/div><\/div><p>I installed PHP-nuke version 8 on my linux server.\u00c2\u00a0 When logged in as admin, upon clicking on froum, I would get an error \u201cSorry, too many page loads in so little time!\u201d.\u00c2\u00a0 After reinstalling the problem still existed.\u00c2\u00a0 I posted the problem in the php nuke forum and within days received a reply from a member named\u00c2\u00a0arnoldkrg.\u00c2\u00a0 Well below is the solution from arnoldkrg, thanks man.<\/p>\n<p>\u00c2\u00a0OK\u2026.I have finally figured this one out. It is the new antiflood\/dos attack prevention system. This writes the user\u2019s 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 \u201cSorry, too many page loads in so short a time\u201d 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)<\/p>\n<p>Solution. In includes\/ipban.php find near the bottom:<br \/>\nCode:<br \/>\nif ($numrow >= 3) {<br \/>\n\u00c2\u00a0\u00c2\u00a0 echo \u201c<br><br><center><b>Sorry, too many page loads in so little time!<\/b><\/center>\u201d;<br \/>\n\u00c2\u00a0\u00c2\u00a0 die();<br \/>\n}<br \/>\nand change to:<br \/>\nCode:<br \/>\nif ($numrow >= 5) {<br \/>\n\u00c2\u00a0\u00c2\u00a0 echo \u201c<br><br><center><b>Sorry, too many page loads in so little time!<\/b><\/center>\u201d;<br \/>\n\u00c2\u00a0\u00c2\u00a0 die();<br \/>\n}<br \/>\nThis will allow sufficient page loads to view the frames in Forums admin, without disabling the antiflood system altogether.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I installed PHP-nuke version 8 on my linux server.\u00c2\u00a0 When logged in as admin, upon clicking on froum, I would get an error \u201cSorry, too many page loads in so little time!\u201d.\u00c2\u00a0 After reinstalling the problem still existed.\u00c2\u00a0 I posted&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"http:\/\/www.gamescheat.ca\/?p=46\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[19],"tags":[],"_links":{"self":[{"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts\/46"}],"collection":[{"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=46"}],"version-history":[{"count":1,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts\/46\/revisions"}],"predecessor-version":[{"id":675,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts\/46\/revisions\/675"}],"wp:attachment":[{"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=46"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=46"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=46"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}