Welcome Guest, Not a member yet? Register   Sign In
Validation Issue
#4

(This post was last modified: 08-22-2024, 03:04 PM by munggaran.)

(08-16-2024, 07:46 PM)kenjis Wrote: Thank you for reporting!

We don't know this issue. Can you show the exact whole error message?
And what version of CI4 did work?
Code:
=========================
Type Error
str_contains(): Argument #1 ($haystack) must be of type string, int given

SYSTEMPATH\Validation\Validation.php at line 172
LINE 172:
if (str_contains($field, '*')) {
=========================

This works in CI 4.0, number as field names still accepted.

Other bugs that I found is when I put only "trim" as validation then this will raise same error, I just want to make sure that user put something instead string with spaces, but this can be escalated by adding regex into validation for now. I read from internet trim in 4.0 was converted into boolean while 4.5.4 just null, this probably leads into validation error.
Reply


Messages In This Thread
Validation Issue - by munggaran - 08-16-2024, 10:55 AM
RE: Validation Issue - by kenjis - 08-16-2024, 07:46 PM
RE: Validation Issue - by munggaran - 08-22-2024, 12:16 PM
RE: Validation Issue - by kenjis - 08-22-2024, 04:45 PM
RE: Validation Issue - by InsiteFX - 08-17-2024, 09:48 PM
RE: Validation Issue - by kenjis - 08-22-2024, 04:39 PM
RE: Validation Issue - by nahaK - 12-14-2024, 03:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB