You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updating my ci4-auth install. Updated to CI 4.55 and found that the older ci4-auth was causing issues with site_URL(). so removed my src folder and dropped in the new one. Manually updated the tables to match the new structure. The login, logout and landing pages work great. But, if you try to go deeper into the site, ci4-auth throws an error:
Function with return type must return a value
PPATH/ThirdParty/lewe/ci4-auth/src/Filters/RoleFilter.php at line 31
27 public function before(RequestInterface $request, $arguments = null): \CodeIgniter\HTTP\RedirectResponse
28 {
29 if (!function_exists('logged_in')) helper('auth');
30
31 if (empty($arguments)) return;
If I comment out the bit after the colon on line 27, the site works fine. Any suggestions as to what is going on? From what I read CI is expecting a return in the RedirectResponse type.
Thanks, love the module!
The text was updated successfully, but these errors were encountered:
true, the older release does not entirely follow strict coding rules. Newer PHP versions require those though. I started playing with PHP 8.4.1 and even CI 4.5.5 is not adjusted to 8.4 yet.
Anyway, I committed the updated filter classes just now. See if those work for you.
Updating my ci4-auth install. Updated to CI 4.55 and found that the older ci4-auth was causing issues with site_URL(). so removed my src folder and dropped in the new one. Manually updated the tables to match the new structure. The login, logout and landing pages work great. But, if you try to go deeper into the site, ci4-auth throws an error:
If I comment out the bit after the colon on line 27, the site works fine. Any suggestions as to what is going on? From what I read CI is expecting a return in the RedirectResponse type.
Thanks, love the module!
The text was updated successfully, but these errors were encountered: