Zend_Db_Statement_Exception Object
(
    [_previous:private] => 
    [message:protected] => SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`hanleywood_prod_ocentric_magento`.`cms_block_store`, CONSTRAINT `FK_CMS_BLOCK_STORE_BLOCK` FOREIGN KEY (`block_id`) REFERENCES `cms_block` (`block_id`) ON DELETE CASCADE ON UPDATE CASCADE)
    [string:private] => 
    [code:protected] => 0
    [file:protected] => /opt/ocentric/magento/lib/Zend/Db/Statement/Pdo.php
    [line:protected] => 240
    [trace:private] => Array
        (
            [0] => Array
                (
                    [file] => /opt/ocentric/magento/lib/Zend/Db/Statement.php
                    [line] => 300
                    [function] => _execute
                    [class] => Zend_Db_Statement_Pdo
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [0] => 1087
                                    [1] => 2
                                )

                        )

                )

            [1] => Array
                (
                    [file] => /opt/ocentric/magento/lib/Zend/Db/Adapter/Abstract.php
                    [line] => 479
                    [function] => execute
                    [class] => Zend_Db_Statement
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [0] => 1087
                                    [1] => 2
                                )

                        )

                )

            [2] => Array
                (
                    [file] => /opt/ocentric/magento/lib/Zend/Db/Adapter/Pdo/Abstract.php
                    [line] => 238
                    [function] => query
                    [class] => Zend_Db_Adapter_Abstract
                    [type] => ->
                    [args] => Array
                        (
                            [0] => INSERT INTO `cms_block_store` (`block_id`, `store_id`) VALUES (?, ?)
                            [1] => Array
                                (
                                    [0] => 1087
                                    [1] => 2
                                )

                        )

                )

            [3] => Array
                (
                    [file] => /opt/ocentric/magento/lib/Varien/Db/Adapter/Pdo/Mysql.php
                    [line] => 337
                    [function] => query
                    [class] => Zend_Db_Adapter_Pdo_Abstract
                    [type] => ->
                    [args] => Array
                        (
                            [0] => INSERT INTO `cms_block_store` (`block_id`, `store_id`) VALUES (?, ?)
                            [1] => Array
                                (
                                    [0] => 1087
                                    [1] => 2
                                )

                        )

                )

            [4] => Array
                (
                    [file] => /opt/ocentric/magento/lib/Zend/Db/Adapter/Abstract.php
                    [line] => 574
                    [function] => query
                    [class] => Varien_Db_Adapter_Pdo_Mysql
                    [type] => ->
                    [args] => Array
                        (
                            [0] => INSERT INTO `cms_block_store` (`block_id`, `store_id`) VALUES (?, ?)
                            [1] => Array
                                (
                                    [0] => 1087
                                    [1] => 2
                                )

                        )

                )

            [5] => Array
                (
                    [file] => /opt/ocentric/magento/app/code/core/Mage/Cms/Model/Mysql4/Block.php
                    [line] => 74
                    [function] => insert
                    [class] => Zend_Db_Adapter_Abstract
                    [type] => ->
                    [args] => Array
                        (
                            [0] => cms_block_store
                            [1] => Array
                                (
                                    [block_id] => 1087
                                    [store_id] => 2
                                )

                        )

                )

            [6] => Array
                (
                    [file] => /opt/ocentric/magento/app/code/core/Mage/Core/Model/Mysql4/Abstract.php
                    [line] => 422
                    [function] => _afterSave
                    [class] => Mage_Cms_Model_Mysql4_Block
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Mage_Cms_Model_Block Object
                                (
                                    [_cacheTag:protected] => cms_block
                                    [_eventPrefix:protected] => core_abstract
                                    [_eventObject:protected] => object
                                    [_resourceName:protected] => cms/block
                                    [_resource:protected] => 
                                    [_resourceCollectionName:protected] => cms/block_collection
                                    [_dataSaveAllowed:protected] => 1
                                    [_isObjectNew:protected] => 1
                                    [_data:protected] => Array
                                        (
                                            [title] => Eplans Customize this Plan
                                            [identifier] => epl-customize-plan-wide
                                            [content] => 
Click to customize Customize this plan
You can make all kinds of changes to this home, big and small, with our modification service. Click to get an estimate or call 1.888.299.5229.
[is_active] => 1 [stores] => Array ( [0] => 2 ) [creation_time] => 2017-04-26 10:07:40 [update_time] => 2017-04-26 10:07:40 [block_id] => 1087 ) [_hasDataChanges:protected] => 1 [_origData:protected] => [_idFieldName:protected] => block_id [_isDeleted:protected] => ) ) ) [7] => Array ( [file] => /opt/ocentric/magento/app/code/core/Mage/Core/Model/Abstract.php [line] => 318 [function] => save [class] => Mage_Core_Model_Mysql4_Abstract [type] => -> [args] => Array ( [0] => Mage_Cms_Model_Block Object ( [_cacheTag:protected] => cms_block [_eventPrefix:protected] => core_abstract [_eventObject:protected] => object [_resourceName:protected] => cms/block [_resource:protected] => [_resourceCollectionName:protected] => cms/block_collection [_dataSaveAllowed:protected] => 1 [_isObjectNew:protected] => 1 [_data:protected] => Array ( [title] => Eplans Customize this Plan [identifier] => epl-customize-plan-wide [content] =>
Click to customize Customize this plan
You can make all kinds of changes to this home, big and small, with our modification service. Click to get an estimate or call 1.888.299.5229.
[is_active] => 1 [stores] => Array ( [0] => 2 ) [creation_time] => 2017-04-26 10:07:40 [update_time] => 2017-04-26 10:07:40 [block_id] => 1087 ) [_hasDataChanges:protected] => 1 [_origData:protected] => [_idFieldName:protected] => block_id [_isDeleted:protected] => ) ) ) [8] => Array ( [file] => /opt/ocentric/magento/app/code/local/Hanleywood/CMS/sql/hw_cms_setup/mysql4-upgrade-0.0.69-0.0.70.php [line] => 29 [function] => save [class] => Mage_Core_Model_Abstract [type] => -> [args] => Array ( ) ) [9] => Array ( [file] => /opt/ocentric/magento/app/code/core/Mage/Core/Model/Resource/Setup.php [line] => 376 [args] => Array ( [0] => /opt/ocentric/magento/app/code/local/Hanleywood/CMS/sql/hw_cms_setup/mysql4-upgrade-0.0.69-0.0.70.php ) [function] => include ) [10] => Array ( [file] => /opt/ocentric/magento/app/code/core/Mage/Core/Model/Resource/Setup.php [line] => 289 [function] => _modifyResourceDb [class] => Mage_Core_Model_Resource_Setup [type] => -> [args] => Array ( [0] => upgrade [1] => 0.0.69 [2] => 0.0.72 ) ) [11] => Array ( [file] => /opt/ocentric/magento/app/code/core/Mage/Core/Model/Resource/Setup.php [line] => 233 [function] => _upgradeResourceDb [class] => Mage_Core_Model_Resource_Setup [type] => -> [args] => Array ( [0] => 0.0.69 [1] => 0.0.72 ) ) [12] => Array ( [file] => /opt/ocentric/magento/app/code/core/Mage/Core/Model/Resource/Setup.php [line] => 161 [function] => applyUpdates [class] => Mage_Core_Model_Resource_Setup [type] => -> [args] => Array ( ) ) [13] => Array ( [file] => /opt/ocentric/magento/app/code/core/Mage/Core/Model/App.php [line] => 399 [function] => applyAllUpdates [class] => Mage_Core_Model_Resource_Setup [type] => :: [args] => Array ( ) ) [14] => Array ( [file] => /opt/ocentric/magento/app/code/core/Mage/Core/Model/App.php [line] => 329 [function] => _initModules [class] => Mage_Core_Model_App [type] => -> [args] => Array ( ) ) [15] => Array ( [file] => /opt/ocentric/magento/app/Mage.php [line] => 630 [function] => run [class] => Mage_Core_Model_App [type] => -> [args] => Array ( [0] => Array ( [scope_code] => bhp [scope_type] => store [options] => Array ( ) ) ) ) [16] => Array ( [file] => /opt/ocentric/magento/index.php [line] => 82 [function] => run [class] => Mage [type] => :: [args] => Array ( [0] => bhp [1] => store ) ) ) )