XF 2.1 InvalidArgumentException: Received invalid UTF-8 for string column [url]

Siropu

Well-known member
@Joe Link, a user of my free add-on Custom 404 Page is getting the following error:
InvalidArgumentException: Received invalid UTF-8 for string column url src/XF/Mvc/Entity/Entity.php:740

"url" is a string type column and it stores the URL that generates the 404 error. Could this be a XF bug or what's going on?
 
I don't think blob is the right type for this. The issue here is the entity column type validation not recognizing an URL as a valid string.
 
Trying to save a URL using the entity with a STR type column gives that error. This doesn't happen with any URL and since the error stack trace doesn't show how the full URL looks like, I have no idea what it can contain to throw that error.
 
Honestly, it's very difficult to say right away, without debugging without information about settings and installed add-ons. And also without a detailed log. It is possible when the characters in the links are different from utf-8. You can try this kind of links for the test:
/?page=312xF0/xA4/xAD/xA2
?page=234567890!@#$%^&*()-_=+[{]};:'",<.>/?~𝖠Β𝒞𝘋𝙴𝓕ĢȞỈ𝕵ꓗʟ𝙼ℕ০𝚸𝗤ՀꓢṰǓⅤ𝔚Ⲭ𝑌𝙕𝘢𝕤
 
Top Bottom