WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Cannot add any invitation codes

[Resolved] Cannot add any invitation codes

Viewing 3 replies - 1 through 3 (of 3 total)
  • maximinime
    Member

    @maximinime

    fixed in lib/CMInvitationCode.php:
    change

    public function getLimit() {
            if ($this->_registrationLimit == self::NO_LIMIT)

    to

    public function getLimit($raw = null) {
            if (!$raw && $this->_registrationLimit == self::NO_LIMIT)

    and change

    'registrationsLimit' => $this->getLimit(),
                'activationNeeded' => $this->isActivationNeeded(),

    to

    'registrationsLimit' => $this->getLimit(true),
                'activationNeeded' => (int) $this->isActivationNeeded(),

    Plugin Author CM Plugins
    Participant

    @creativemindssolutions

    We updated the plug to version 2.0 and included setting of registration limit so this should also fix the bug. please report if you still have problems using the plug

    maximinime
    Member

    @maximinime

    We didn’t end up needing it for our project, so I don’t know. I’m fairly certain this is caused by MySQL 5 not converting the string value to 0. So if you’re testing with 5+, you should be fine.

    One more problem: The plugin cannot be uninstalled. It’s requireing a premium file without first checking if it exists.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Cannot add any invitation codes’ is closed to new replies.