We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19562
    • 18 Posts
    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"
      • 22815
      • 1,097 Posts
      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.
        No, I don't know what OpenGeek's saying half the time either.
        MODx Documentation: The Wiki | My Wiki contributions | Main MODx Documentation
        Forum: Where to post threads about add-ons | Forum Rules
        Like MODx? donate (and/or share your resources)
        Like me? See my Amazon wishlist
        MODx "Most Promising CMS" - so appropriate!
        • 19562
        • 18 Posts
        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"
          • 21255
          • 215 Posts
          Quote from: milkyway at Aug 18, 2006, 03:00 AM

          « 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() »

          Please post the part of your source code of the document/template where you reference the Weblogin-Snippet.

          Did MODx output any additional error information (line number, file)?