Menu

Error creating vouchers

Help
Nahom
2015-07-15
2016-03-03
  • Nahom

    Nahom - 2015-07-15

    My RadiusDesk deployment has about 10 access providers and thus each one generates their own vouchers. This used to work well before but I suppose as more and more vouchers are generated, I started receiving an error message saying "Could not create item" when trying to generate vouchers. I believe this is because the generator is running out of words to combine to create unique (vouchers that already exist in the db) vouchers.
    Has anyone come across this?
    Anyone has any ideas on how to fix this?
    Thanks!

     
  • Nahom

    Nahom - 2015-07-15

    Well, I've now switched out the voucher/password generation algorithm in rd_cake/Controller/Component/VoucherGeneratorComponent.php to use random alpha numeric and this seems to have solved the issue, but I rather like the adjective noun method and if there is a fix for the issue, would like to go back to it.

     
  • James Mc Bride

    James Mc Bride - 2016-03-03

    Hi Nahom, I am also running into the same problem of running out of word combinations.

    I've been trying to modify the rd_cake/Controller/Component/VoucherGeneratorComponent.php file to generate a random 8 charecter alphanumeric string, but I still just seem to be getting the random words at the moment.

    Any advice or examples if your code would be appreciated!

    James

     
  • James Mc Bride

    James Mc Bride - 2016-03-03

    Ignore me, I've got it working now!

    James

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.