I’am building a webportal for customers where i would like to assign customerid’s (numbers) as webuser names.
MODx allows me to create numeric webuser accounts but when i try to log in (via the WebLogin snippet) using one of these numbers i get the following error:
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« `’7’` is not numeric and may not be passed to makeUrl() »
Anyone familiar with this issue ?
Thanks !
"Just smile and wave boys..smile and wave"
I think you’ve put ’7’ in a snippet when it should be `7`.
Make sure every value you’re passing using the backtick ` - to the left of 1 on most keyboards.
Without the backtick, MODx puts backticks around it, so ’7’ becomes `’7’`, which is a string not a number.
Paul, thanks for your reply. I’am using the default WebLogin snippet. I’ve not created a custom snippet. The error only shows when using a loginname that consists of a number instead of a word.
"Just smile and wave boys..smile and wave"