Softsale Am_Exception Stops All Users

Discussion in 'Setting-up protection' started by crystalmedia, Jun 16, 2020.

  1. crystalmedia

    crystalmedia Member

    Joined:
    Oct 15, 2013
    Messages:
    69
    If a softsale license scheme is deleted while there is a product/users who are still assigned to that that scheme, an exception occurs - one so critical is actually prohibits every single customer from being able to access their members page.

    Steps to repeat:
    1. Create a softsale license scheme and assign it to a product.
    2. Using a fake account (one you use for testing purposes), add the product to your account.
    3. Verify you have been issues a license.
    4. Admin now deletes license scheme.
    5. Log in again under fake account above, or any account for that matter. User will see database error message.

    Exception from log file below:

    Exception Am_Exception_Db_NotFound:Failed loading LicenseScheme(8) at line 777 in file /home4/sumit1/public_html/sumit2/accounts/library/Am/Record.php
    Am_Table->loadRow [ library/Am/Record.php : 744 ]
    Am_Table->load [ application/softsale/library/License.php : 37 ]
    License->getScheme [ application/softsale/controllers/LicenseController.php : 16 ]
    Softsale_LicenseController->indexAction [ library/Am/Mvc/Controller.php : 129 ]
    Am_Mvc_Controller->_runAction [ library/Am/Mvc/Controller.php : 106 ]
    Am_Mvc_Controller->dispatch [ library/Zend/Controller/Dispatcher/Standard.php : 307 ]
    Zend_Controller_Dispatcher_Standard->dispatch [ library/Zend/Controller/Front.php : 956 ]
    Zend_Controller_Front->dispatch [ library/Am/App.php : 1165 ]
    Am_App->run [ index.php : 93 ]
  2. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
    Is there any real reason to delete license schema that in use?
  3. crystalmedia

    crystalmedia Member

    Joined:
    Oct 15, 2013
    Messages:
    69
    @caesar , Hi. Yes. Schemes are created for testing prior to public software release. If scheme is accidentally deleted with a user license assigned, it completely breaks amember access for all clients/users.

Share This Page