title: Upgrade magento from 1.3 to 1.4 then to 1.8 but getting loop of array on homepage
body: <p>ive updated a site from 1.3 to 1.4 as suggested via docs, and then done to 1.9 latest but now when i hit the homepage it just keeps constantly reloading and showing:</p>
  
  <p>Any ideas on how i can sort this, ive spent ages looking online but to me seems like the updating did not update the database maybe??</p>
  
  <p>Thanks in advance</p>
  
  <pre><code>PDOException Object
  (
      [message:protected] =&gt; SQLSTATE[HY000]: General error: 1025 Error on rename of './seedpant_staging/#sql-351f_1680c1' to './seedpant_staging/core_layout_link' (errno: 150)
      [string:Exception:private] =&gt; 
      [code:protected] =&gt; HY000
      [file:protected] =&gt; /home/seedpant/public_html/staging/lib/Zend/Db/Statement/Pdo.php
      [line:protected] =&gt; 228
      [trace:Exception:private] =&gt; Array
          (
              [0] =&gt; Array
                  (
                      [file] =&gt; /home/seedpant/public_html/staging/lib/Zend/Db/Statement/Pdo.php
                      [line] =&gt; 228
                      [function] =&gt; execute
                      [class] =&gt; PDOStatement
                      [type] =&gt; -&gt;
                      [args] =&gt; Array
                          (
                              [0] =&gt; Array
                                  (
                                  )
  
                          )
  
                  )
  
              [1] =&gt; Array
                  (
                      [file] =&gt; /home/seedpant/public_html/staging/lib/Varien/Db/Statement/Pdo/Mysql.php
                      [line] =&gt; 110
                      [function] =&gt; _execute
                      [class] =&gt; Zend_Db_Statement_Pdo
                      [type] =&gt; -&gt;
                      [args] =&gt; Array
                          (
                              [0] =&gt; Array
                                  (
                                  )
  
                          )
  
                  )
  
              [2] =&gt; Array
                  (
                      [file] =&gt; /home/seedpant/public_html/staging/app/code/core/Zend/Db/Statement.php
                      [line] =&gt; 291
                      [function] =&gt; _execute
                      [class] =&gt; Varien_Db_Statement_Pdo_Mysql
                      [type] =&gt; -&gt;
                      [args] =&gt; Array
                          (
                              [0] =&gt; Array
                                  (
                                  )
  
                          )
  
                  )
  
              [3] =&gt; Array
                  (
                      [file] =&gt; /home/seedpant/public_html/staging/lib/Zend/Db/Adapter/Abstract.php
                      [line] =&gt; 480
                      [function] =&gt; execute
                      [class] =&gt; Zend_Db_Statement
                      [type] =&gt; -&gt;
                      [args] =&gt; Array
                          (
                              [0] =&gt; Array
                                  (
                                  )
  
                          )
  
                  )
  
              [4] =&gt; Array
                  (
                      [file] =&gt; /home/seedpant/public_html/staging/lib/Zend/Db/Adapter/Pdo/Abstract.php
                      [line] =&gt; 238
                      [function] =&gt; query
                      [class] =&gt; Zend_Db_Adapter_Abstract
                      [type] =&gt; -&gt;
                      [args] =&gt; Array
                          (
                              [0] =&gt; ALTER TABLE `core_layout_link` DROP KEY `store_id`
                              [1] =&gt; Array
                                  (
                                  )
  
                          )
  
                  )
  
              [5] =&gt; Array
                  (
                      [file] =&gt; /home/seedpant/public_html/staging/lib/Varien/Db/Adapter/Pdo/Mysql.php
                      [line] =&gt; 428
                      [function] =&gt; query
                      [class] =&gt; Zend_Db_Adapter_Pdo_Abstract
                      [type] =&gt; -&gt;
                      [args] =&gt; Array
                          (
                              [0] =&gt; ALTER TABLE `core_layout_link` DROP KEY `store_id`
                              [1] =&gt; Array
                                  (
                                  )
  
                          )
  
                  )
  
              [6] =&gt; Array
                  (
                      [file] =&gt; /home/seedpant/public_html/staging/lib/Varien/Db/Adapter/Pdo/Mysql.php
                      [line] =&gt; 347
                      [function] =&gt; query
                      [class] =&gt; Varien_Db_Adapter_Pdo_Mysql
                      [type] =&gt; -&gt;
                      [args] =&gt; Array
                          (
                              [0] =&gt; ALTER TABLE `core_layout_link` DROP KEY `store_id`
                          )
  
                  )
  
              [7] =&gt; Array
                  (
                      [file] =&gt; /home/seedpant/public_html/staging/lib/Varien/Db/Adapter/Pdo/Mysql.php
                      [line] =&gt; 2686
                      [function] =&gt; raw_query
                      [class] =&gt; Varien_Db_Adapter_Pdo_Mysql
                      [type] =&gt; -&gt;
                      [args] =&gt; Array
                          (
                              [0] =&gt; ALTER TABLE `core_layout_link` DROP KEY `store_id`
                          )
  
                  )
  
              [8] =&gt; Array
                  (
                      [file] =&gt; /home/seedpant/public_html/staging/app/code/core/Mage/Core/sql/core_setup/mysql4-upgrade-1.5.9.9-1.6.0.0.php
                      [line] =&gt; 163
                      [function] =&gt; dropIndex
                      [class] =&gt; Varien_Db_Adapter_Pdo_Mysql
                      [type] =&gt; -&gt;
                      [args] =&gt; Array
                          (
                              [0] =&gt; core_layout_link
                              [1] =&gt; STORE_ID
                          )
  
                  )
  
              [9] =&gt; Array
                  (
                      [file] =&gt; /home/seedpant/public_html/staging/app/code/core/Mage/Core/Model/Resource/Setup.php
                      [line] =&gt; 624
                      [args] =&gt; Array
                          (
                              [0] =&gt; /home/seedpant/public_html/staging/app/code/core/Mage/Core/sql/core_setup/mysql4-upgrade-1.5.9.9-1.6.0.0.php
                          )
  
                      [function] =&gt; include
                  )
  
              [10] =&gt; Array
                  (
                      [file] =&gt; /home/seedpant/public_html/staging/app/code/core/Mage/Core/Model/Resource/Setup.php
                      [line] =&gt; 437
                      [function] =&gt; _modifyResourceDb
                      [class] =&gt; Mage_Core_Model_Resource_Setup
                      [type] =&gt; -&gt;
                      [args] =&gt; Array
                          (
                              [0] =&gt; upgrade
                              [1] =&gt; 0.8.28
                              [2] =&gt; 1.6.0.4
                          )
  
                  )
  
              [11] =&gt; Array
                  (
                      [file] =&gt; /home/seedpant/public_html/staging/app/code/core/Mage/Core/Model/Resource/Setup.php
                      [line] =&gt; 320
                      [function] =&gt; _upgradeResourceDb
                      [class] =&gt; Mage_Core_Model_Resource_Setup
                      [type] =&gt; -&gt;
                      [args] =&gt; Array
                          (
                              [0] =&gt; 0.8.28
                              [1] =&gt; 1.6.0.4
                          )
  
                  )
  
              [12] =&gt; Array
                  (
                      [file] =&gt; /home/seedpant/public_html/staging/app/code/core/Mage/Core/Model/Resource/Setup.php
                      [line] =&gt; 235
                      [function] =&gt; applyUpdates
                      [class] =&gt; Mage_Core_Model_Resource_Setup
                      [type] =&gt; -&gt;
                      [args] =&gt; Array
                          (
                          )
  
                  )
  
              [13] =&gt; Array
                  (
                      [file] =&gt; /home/seedpant/public_html/staging/app/code/core/Mage/Core/Model/App.php
                      [line] =&gt; 417
                      [function] =&gt; applyAllUpdates
                      [class] =&gt; Mage_Core_Model_Resource_Setup
                      [type] =&gt; ::
                      [args] =&gt; Array
                          (
                          )
  
                  )
  
              [14] =&gt; Array
                  (
                      [file] =&gt; /home/seedpant/public_html/staging/app/code/core/Mage/Core/Model/App.php
                      [line] =&gt; 343
                      [function] =&gt; _initModules
                      [class] =&gt; Mage_Core_Model_App
                      [type] =&gt; -&gt;
                      [args] =&gt; Array
                          (
                          )
  
                  )
  
              [15] =&gt; Array
                  (
                      [file] =&gt; /home/seedpant/public_html/staging/app/Mage.php
                      [line] =&gt; 684
                      [function] =&gt; run
                      [class] =&gt; Mage_Core_Model_App
                      [type] =&gt; -&gt;
                      [args] =&gt; Array
                          (
                              [0] =&gt; Array
                                  (
                                      [scope_code] =&gt; 
                                      [scope_type] =&gt; store
                                      [options] =&gt; Array
                                          (
                                          )
  
                                  )
  
                          )
  
                  )
  
              [16] =&gt; Array
                  (
                      [file] =&gt; /home/seedpant/public_html/staging/index.php
                      [line] =&gt; 87
                      [function] =&gt; run
                      [class] =&gt; Mage
                      [type] =&gt; ::
                      [args] =&gt; Array
                          (
                              [0] =&gt; 
                              [1] =&gt; store
                          )
  
                  )
  
          )
  
      [previous:Exception:private] =&gt; 
      [errorInfo] =&gt; Array
          (
              [0] =&gt; HY000
              [1] =&gt; 1025
              [2] =&gt; Error on rename of './seedpant_staging/#sql-351f_1680c1' to './seedpant_staging/core_layout_link' (errno: 150)
          )
  
  )
  </code></pre>