1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed License not activated after being deactivated.

Discussion in 'Resolved Bugs' started by Liam W, Sep 17, 2014.

  1. Liam W

    Liam W Member

    If a license is deactivated by removing the URL, updating it by entering the URL does not activate it - the download is still unavailable and it's listed in the inactive licenses section.

    Liam
     
  2. Chris D

    Chris D Xen Resources Developer Staff Member Xen Notices

  3. Liam W

    Liam W Member

    Interesting, no - I can't.

    But they definitely aren't validating on XF Liam. Let me try disabling my Stripe addon.

    EDIT: Nope, disabling my Stripe addon doesn't do anything. This is really strange. Just a note, they are non-expiring licenses.

    (I added some edits @Chris D)
     
  4. Liam W

    Liam W Member

    @Chris D

    Found the bug...

    In the datawriter:

    PHP:
    if ($this->get('license_url')
       && 
    XenForo_Application::$time $this->get('expiry_date')
    )
    {
        
    $this->set('license_state''active');
    }
    However the expiry date is 0, as it's a non-expiring license...

    Liam
     
    Chris D likes this.
  5. Chris D

    Chris D Xen Resources Developer Staff Member Xen Notices

    Fixed. Just needs an
    PHP:
    && $this->get('expiry_date')
    adding to that condition.
     

Share This Page