bfstop
bfstop copied to clipboard
Error 500 when trying to unblock IP or remove IP from exception list
I tried to unblock a blocked IP which gave the 500 error. Same happened when trying to delete an IP from the Exception list.
Adding to the exception or the blocked list does work.
What do you mean with "Exception list" - maybe the "Allow list" (/ "White list " as it was called in previous versions)? Which version of bfstop does this happen with, which Joomla version? Do you get any more specific error message or entries in the log file? If not, can you try turning up the logging on your Joomla installation to get more information?
Hi,
I meant the ‚Ausnahmen-Liste‘.
The BF version is 1.4.4
Joomla version 4.2.3
No more error messages besides the ‚Error 500‘ screen.
I turned the log on and generated two error messages, see below:
Best regards
Am 19.10.2022 um 16:51 schrieb Bernhard Froehler @.***>:
What do you mean with "Exception list" - maybe the "Allow list" (/ "White list " as it was called in previous versions)? Which version of bfstop does this happen with, which Joomla version? Do you get any more specific error message or entries in the log file? If not, can you try turning up the logging on your Joomla installation to get more information?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.
see below:
I see no error message below unfortunately :(
I attached two screen shots but they seem to got lost. Here the text from one of the screenshots, hope that helps or let me please know, how I can sent you the pictures…
FatalError HTTP 500 Whoops, looks like something went wrong. Compile Error: Declaration of BFStopController AllowList: :getModel ($name = 'allowlist', $prefix = "bfstopmode.. must be compatible with Joomla\CMS\VC\Controller\BaseController:getModel($name = ", $prefix = . Sconfig =1) Exception! Exception Stack Trace Symfony\Component\ErrorHandler\Error) FatalError in/homepages/28/d146014317/htdocs/entwicklung/administrator/components/com_bfstop/controllers/allowlist.php(line15) 10 jimport('joomla.application.component.controlleradmin'); 12 13. 14. 15. 16 17. 18 class BFStopControllerAllowList extends ControllerAdmin public function getModel($name = 'allowlist', $prefix
'bfstopmodel') $model = parent : :getModel($name, $prefix, array( 'ignore_request' return $model; => true)):
Mit freundlichen Grüßen
Am 19.10.2022 um 17:08 schrieb Bernhard Froehler @.***>:
see below:
I see no error message below unfortunately :(
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.
I have the same error with BFStopControllerBlockList and used the following patch to solve it:
old: public function getModel($name = 'blocklist', $prefix = 'bfstopmodel')
new: public function getModel($name = 'blocklist', $prefix = 'bfstopmodel', $config = [])
Error message in my case:
Fatal error: Declaration of BFStopControllerBlockList::getModel($name = 'blocklist', $prefix = 'bfstopmodel')
must be compatible with Joomla\CMS\MVC\Controller\BaseController::getModel($name = '', $prefix = '', $config = [])
in .../administrator/components/com_bfstop/controllers/blocklist.php on line 14
The same problem exists in: administrator/components/com_bfstop/controllers/allowlist.php administrator/components/com_bfstop/controllers/blocklist.php administrator/components/com_bfstop/controllers/htblocklist.php administrator/components/com_bfstop/controllers/whitelist.php
It's probably a consequence of switching to PHP 8.
Thanks for the reminder!
administrator/components/com_bfstop/controllers/whitelist.php
is actually a now unnecessary remainder of a previous version of bfstop, I have created a separate issue for removing it during an upgrade.
For the rest, this is now fixed with this commit. The next release (probably 1.5.0, to be released some time in January) will include this fix!
Finally got a release out that fixes this issue: see BFStop 1.4.6. This release should also get distributed already through Joomla's update system. Let me know if you still encounter any issues with that version!