title: Magento OnePage checkout Undefined Variable
body: <p>A few weeks ago I had a server crash, and had no real backups so everything had to be recovered manually. One of those things was a Magento store. I've got all of the files and database restored, however now when I try to go through the checkout process to test I get errors.</p>
  
  <p>I can either click to register when checking out, then when I click 'Continue' on the checkout page I get a 'Loading next step' message then some kind of AJAX error in the Chrome network inspector when trying to access the saveBilling page. The error is listed below:</p>
  
  <pre><code>Notice: Undefined variable: nameGroupAttribute  in /var/www/vhosts/mysite.com/httpdocs/app/code/local/Amasty/Customerattr/Model/Rewrite/Checkout/Type/Onepage.php on line 41
  
  #0 /var/www/vhosts/mysite.com/httpdocs/app/code/local/Amasty/Customerattr/Model/Rewrite/Checkout/Type/Onepage.php(41): mageCoreErrorHandler(8, 'Undefined varia...', '/var/www/vhosts...', 41, Array)
  #1 /var/www/vhosts/mysite.com/httpdocs/app/code/core/Mage/Checkout/controllers/OnepageController.php(307): Amasty_Customerattr_Model_Rewrite_Checkout_Type_Onepage-&gt;saveBilling(Array, false)
  #2 /var/www/vhosts/mysite.com/httpdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(420): Mage_Checkout_OnepageController-&gt;saveBillingAction()
  #3 /var/www/vhosts/mysite.com/httpdocs/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action-&gt;dispatch('saveBilling')
  #4 /var/www/vhosts/mysite.com/httpdocs/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard-&gt;match(Object(Mage_Core_Controller_Request_Http))
  #5 /var/www/vhosts/mysite.com/httpdocs/app/code/core/Mage/Core/Model/App.php(349): Mage_Core_Controller_Varien_Front-&gt;dispatch()
  #6 /var/www/vhosts/mysite.com/httpdocs/app/Mage.php(640): Mage_Core_Model_App-&gt;run(Array)
  #7 /var/www/vhosts/mysite.com/httpdocs/index.php(85): Mage::run('', 'store')
  #8 {main}
  </code></pre>
  
  <p>I've searched every possible combination of words that I can think of and have come up empty. This site was setup before I arrived at this company so I have no idea if anything was changed that shouldn't have been. All I know is the site was working before the server went down, and now this part doens't work.</p>
  
  <p>Thanks for any help!</p>