Database error for cart

Discussion in 'Troubleshooting' started by thehomeschoolmom, Feb 23, 2021.

Thread Status:
Not open for further replies.
  1. thehomeschoolmom

    thehomeschoolmom aMember Pro Customer

    Joined:
    Jun 28, 2007
    Messages:
    11
    I've put in a ticket, but in case someone here might have an idea before they respond I'm posting here as well.

    I was making some changes to a user field and forms and I broke something. DB is now giving "The database has encountered a problem, please try again later" error.

    Rebuilding and Repairing DB did not help.

    Error in log:

    Exception Am_Exception_Db_NotFound:Failed loading Invoice(31) at line 777 in file .../amember/library/Am/Record.php
    Am_Table->loadRow [ library/Am/Record.php : 212 ]
    Am_Record->refresh [ library/Am/Record/WithData.php : 843 ]
    Am_Record_WithData->refresh [ application/cart/library/Am/ShoppingCart.php : 188 ]
    Am_ShoppingCart->isCompleted [ application/cart/Bootstrap.php : 726 ]
    Bootstrap_Cart->loadCart [ application/cart/Bootstrap.php : 742 ]
    Bootstrap_Cart->getCart [ application/cart/controllers/IndexController.php : 468 ]
    Cart_IndexController->getCart [ application/cart/controllers/IndexController.php : 37 ]
    Cart_IndexController->init [ library/Zend/Controller/Action.php : 133 ]
    Zend_Controller_Action->__construct [ library/Am/Mvc/Controller.php : 24 ]
    Am_Mvc_Controller->__construct [ library/Zend/Controller/Dispatcher/Standard.php : 280 ]
    Zend_Controller_Dispatcher_Standard->dispatch [ library/Zend/Controller/Front.php : 956 ]
    Zend_Controller_Front->dispatch [ library/Am/App.php : 1188 ]
    Am_App->run [ index.php : 92 ]

    Any idea what I did and/or how I might fix it?
  2. thehomeschoolmom

    thehomeschoolmom aMember Pro Customer

    Joined:
    Jun 28, 2007
    Messages:
    11
    This turned out to be a caching problem - the database was looking for a deleted invoice. I logged out, cleared my cache, closed and reopened the browser, and the error disappeared.
    caesar likes this.
Thread Status:
Not open for further replies.

Share This Page