Closed ALTITUDE-DEV-FR closed 1 year ago
7093 ?
I use this, its a problem ?
`
<IfModule !mod_rewrite.c> ErrorDocument 404 /index.php
I got Whoops! page at the first visit. But I reloaded, your site looks great.
Check your web server log and CodeIgniter log to get the reason of 500 errors.
I got Whoops! page at the first visit. But I reloaded, your site looks great.
Check your web server log and CodeIgniter log to get the reason of 500 errors.
Its my problem i have any problem :( any logs in my project :( localhost or live.. is verry obscur bug :D
I got Whoops! page at the first visit. But I reloaded, your site looks great.
Yes , Whoops ,after normal.
I have check my log server, no errors detected, and no logs in server live with errors, and no log created in the writable folder.. Throttle is the problem ?
I mso sorry is my fault, i have make a verification "banned" user IP its make the problem.. Solved
If you implement like this https://codeigniter4.github.io/CodeIgniter4/libraries/throttler.html#the-code the response code is 429, not 500.
If you implement like this https://codeigniter4.github.io/CodeIgniter4/libraries/throttler.html#the-code the response code is 429, not 500.
Small question with Throttler, how to define time lock user, example i have made this :
// -- Antispam & ForceBrute --
$throttler = \Config\Services::throttler();
$allow = $throttler->check('perform', 4, MINUTE);
How to lock user for 5 minutes ?
See https://github.com/codeigniter4/shield/blob/develop/src/Filters/AuthRates.php#L38 This is sample code for rate limit to an IP address.
Wow, I've never had such a fast and competent support in the development world, thank you very much for your help and long life to CI!
PHP Version
8.2
CodeIgniter4 Version
4.1.12
CodeIgniter4 Installation Method
Composer (using
codeigniter4/appstarter
)Which operating systems have you tested for this bug?
Windows, Linux
Which server did you use?
apache
Database
MYSQL 5.6
What happened?
I started to develop my own CMS, it works perfectly, fast, secure etc, I even have security scores in A+ and 100% on Google Insight, however according to some tools like GT METRIX or Chromes extensions it tells me that my site is in error 500, except that this is not the case, I do not know where to find this kind of concerns.
Link to test : https://dev01.altitude-dev.com/
Steps to Reproduce
Just load the website and check.
Network console, no errors.. Google Insight same GtMetrix detect a error 500 and others apps.
Expected Output
Error 500 in tools.
Anything else?
No response