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
{{ message }}
Repository navigation
Can get a 'hidden' validation warning trying to clone if exp_channel_titles missing ip #3998
User was getting a weird issue trying to clone some entries- it would do a validation error message, but nothing was highlighted as invalid. After digging, it was objecting to a missing ip_address field- but there was no ip_address form field.
Digging into it, it validates the ip_address from/for the ip_address in exp_channel_titles.
Locally, I tried cloning an entry with a blank ip_address in that field- but that work. Then I stuck a 0 in the field, and boom- replicate.
Not sure why, but user had 0 in the ip_address db column for some of those entries, and if you try to clone those, it acts like there's a validation error. Though you can't see what's causing the error, because ip_address isn't a form field.
Note- tested with ip_address required to post in the settings. But no idea if that's in play- I suspect it is moot.
The IP address is kinda special because it is the property on the ChannelEntry model, it has validation, but it's not on the page - so there is no place where the error could be shown.
Since this seems to currently be only one of this kind, I've added a "special case" to treat it.
The error message could have been better, but that's what comes from validation service (and I think it's generic on purpose)
Activity
robinsowell commentedon Jan 12, 2024
And in case it ever comes up- you. can see the validation errors for a form submit hacking ExpressionEngine/Model/Channel/ChannelEntry.php:
Resolved #3998 where no proper error was shown when trying to clone e…
intoeetive commentedon Jan 15, 2024
The IP address is kinda special because it is the property on the ChannelEntry model, it has validation, but it's not on the page - so there is no place where the error could be shown.
Since this seems to currently be only one of this kind, I've added a "special case" to treat it.
The error message could have been better, but that's what comes from validation service (and I think it's generic on purpose)
Merge pull request #4001 from ExpressionEngine/bug/7.x/entry-ip-addre…
Merge pull request #5362 from rowansentesy/bug/7.x/clone-entry-invali…