SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'user_id' cannot be null


File: /usr/local/www/data/homemakersonline.com.au/library/Zend/Db/Statement.php
Line: 300

ArrayObject Object
(
    [storage:ArrayObject:private] => Array
        (
            [exception] => Zend_Db_Statement_Exception Object
                (
                    [_previous:Zend_Exception:private] => 
                    [message:protected] => SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'user_id' cannot be null
                    [string:Exception:private] => 
                    [code:protected] => 23000
                    [file:protected] => /usr/local/www/data/homemakersonline.com.au/library/Zend/Db/Statement/Pdo.php
                    [line:protected] => 234
                    [trace:Exception:private] => Array
                        (
                            [0] => Array
                                (
                                    [file] => /usr/local/www/data/homemakersonline.com.au/library/Zend/Db/Statement.php
                                    [line] => 300
                                    [function] => _execute
                                    [class] => Zend_Db_Statement_Pdo
                                    [type] => ->
                                    [args] => Array
                                        (
                                            [0] => Array
                                                (
                                                    [0] => 176
                                                    [1] => 
                                                    [2] => 8a8a753959ed728f23dcc3989713e927
                                                    [3] => 1371695968
                                                )

                                        )

                                )

                            [1] => Array
                                (
                                    [file] => /usr/local/www/data/homemakersonline.com.au/library/Zend/Db/Adapter/Abstract.php
                                    [line] => 479
                                    [function] => execute
                                    [class] => Zend_Db_Statement
                                    [type] => ->
                                    [args] => Array
                                        (
                                            [0] => Array
                                                (
                                                    [0] => 176
                                                    [1] => 
                                                    [2] => 8a8a753959ed728f23dcc3989713e927
                                                    [3] => 1371695968
                                                )

                                        )

                                )

                            [2] => Array
                                (
                                    [file] => /usr/local/www/data/homemakersonline.com.au/library/Zend/Db/Adapter/Pdo/Abstract.php
                                    [line] => 238
                                    [function] => query
                                    [class] => Zend_Db_Adapter_Abstract
                                    [type] => ->
                                    [args] => Array
                                        (
                                            [0] => INSERT INTO `wishlist` (`product_id`, `user_id`, `session_id`, `date_created`) VALUES (?, ?, ?, ?)
                                            [1] => Array
                                                (
                                                    [0] => 176
                                                    [1] => 
                                                    [2] => 8a8a753959ed728f23dcc3989713e927
                                                    [3] => 1371695968
                                                )

                                        )

                                )

                            [3] => Array
                                (
                                    [file] => /usr/local/www/data/homemakersonline.com.au/library/Zend/Db/Adapter/Abstract.php
                                    [line] => 575
                                    [function] => query
                                    [class] => Zend_Db_Adapter_Pdo_Abstract
                                    [type] => ->
                                    [args] => Array
                                        (
                                            [0] => INSERT INTO `wishlist` (`product_id`, `user_id`, `session_id`, `date_created`) VALUES (?, ?, ?, ?)
                                            [1] => Array
                                                (
                                                    [0] => 176
                                                    [1] => 
                                                    [2] => 8a8a753959ed728f23dcc3989713e927
                                                    [3] => 1371695968
                                                )

                                        )

                                )

                            [4] => Array
                                (
                                    [file] => /usr/local/www/data/homemakersonline.com.au/library/Zend/Db/Table/Abstract.php
                                    [line] => 1075
                                    [function] => insert
                                    [class] => Zend_Db_Adapter_Abstract
                                    [type] => ->
                                    [args] => Array
                                        (
                                            [0] => wishlist
                                            [1] => Array
                                                (
                                                    [product_id] => 176
                                                    [user_id] => 
                                                    [session_id] => 8a8a753959ed728f23dcc3989713e927
                                                    [date_created] => 1371695968
                                                )

                                        )

                                )

                            [5] => Array
                                (
                                    [file] => /usr/local/www/data/homemakersonline.com.au/library/Zend/Db/Table/Row/Abstract.php
                                    [line] => 467
                                    [function] => insert
                                    [class] => Zend_Db_Table_Abstract
                                    [type] => ->
                                    [args] => Array
                                        (
                                            [0] => Array
                                                (
                                                    [product_id] => 176
                                                    [user_id] => 
                                                    [session_id] => 8a8a753959ed728f23dcc3989713e927
                                                    [date_created] => 1371695968
                                                )

                                        )

                                )

                            [6] => Array
                                (
                                    [file] => /usr/local/www/data/homemakersonline.com.au/library/Zend/Db/Table/Row/Abstract.php
                                    [line] => 438
                                    [function] => _doInsert
                                    [class] => Zend_Db_Table_Row_Abstract
                                    [type] => ->
                                    [args] => Array
                                        (
                                        )

                                )

                            [7] => Array
                                (
                                    [file] => /usr/local/www/data/homemakersonline.com.au/application/models/Wishlist/Table.php
                                    [line] => 49
                                    [function] => save
                                    [class] => Zend_Db_Table_Row_Abstract
                                    [type] => ->
                                    [args] => Array
                                        (
                                        )

                                )

                            [8] => Array
                                (
                                    [file] => /usr/local/www/data/homemakersonline.com.au/application/modules/default/controllers/WishlistController.php
                                    [line] => 32
                                    [function] => addWish
                                    [class] => Wishlist_Table
                                    [type] => ->
                                    [args] => Array
                                        (
                                            [0] => 
                                            [1] => 176
                                        )

                                )

                            [9] => Array
                                (
                                    [file] => /usr/local/www/data/homemakersonline.com.au/library/Zend/Controller/Action.php
                                    [line] => 516
                                    [function] => ajaxAddAction
                                    [class] => WishlistController
                                    [type] => ->
                                    [args] => Array
                                        (
                                        )

                                )

                            [10] => Array
                                (
                                    [file] => /usr/local/www/data/homemakersonline.com.au/library/Zend/Controller/Dispatcher/Standard.php
                                    [line] => 295
                                    [function] => dispatch
                                    [class] => Zend_Controller_Action
                                    [type] => ->
                                    [args] => Array
                                        (
                                            [0] => ajaxAddAction
                                        )

                                )

                            [11] => Array
                                (
                                    [file] => /usr/local/www/data/homemakersonline.com.au/library/Zend/Controller/Front.php
                                    [line] => 954
                                    [function] => dispatch
                                    [class] => Zend_Controller_Dispatcher_Standard
                                    [type] => ->
                                    [args] => Array
                                        (
                                            [0] => Zend_Controller_Request_Http Object
                                                (
                                                    [_paramSources:protected] => Array
                                                        (
                                                            [0] => _GET
                                                            [1] => _POST
                                                        )

                                                    [_requestUri:protected] => /wishlist/ajax-add/product_id/176
                                                    [_baseUrl:protected] => 
                                                    [_basePath:protected] => 
                                                    [_pathInfo:protected] => /wishlist/ajax-add/product_id/176
                                                    [_params:protected] => Array
                                                        (
                                                            [controller] => wishlist
                                                            [action] => ajax-add
                                                            [product_id] => 176
                                                            [module] => default
                                                            [error_handler] => ArrayObject Object
 *RECURSION*
                                                        )

                                                    [_rawBody:protected] => 
                                                    [_aliases:protected] => Array
                                                        (
                                                        )

                                                    [_dispatched:protected] => 1
                                                    [_module:protected] => default
                                                    [_moduleKey:protected] => module
                                                    [_controller:protected] => error
                                                    [_controllerKey:protected] => controller
                                                    [_action:protected] => error
                                                    [_actionKey:protected] => action
                                                )

                                            [1] => Zend_Controller_Response_Http Object
                                                (
                                                    [_body:protected] => Array
                                                        (
                                                        )

                                                    [_exceptions:protected] => Array
                                                        (
                                                            [0] => Zend_Db_Statement_Exception Object
 *RECURSION*
                                                        )

                                                    [_headers:protected] => Array
                                                        (
                                                        )

                                                    [_headersRaw:protected] => Array
                                                        (
                                                        )

                                                    [_httpResponseCode:protected] => 200
                                                    [_isRedirect:protected] => 
                                                    [_renderExceptions:protected] => 
                                                    [headersSentThrowsException] => 1
                                                )

                                        )

                                )

                            [12] => Array
                                (
                                    [file] => /usr/local/www/data/homemakersonline.com.au/application/Bootstrap.php
                                    [line] => 190
                                    [function] => dispatch
                                    [class] => Zend_Controller_Front
                                    [type] => ->
                                    [args] => Array
                                        (
                                        )

                                )

                            [13] => Array
                                (
                                    [file] => /usr/local/www/data/homemakersonline.com.au/web/index.php
                                    [line] => 3
                                    [function] => dispatch
                                    [class] => Bootstrap
                                    [type] => ->
                                    [args] => Array
                                        (
                                        )

                                )

                        )

                    [previous:Exception:private] => PDOException Object
                        (
                            [message:protected] => SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'user_id' cannot be null
                            [string:Exception:private] => 
                            [code:protected] => 23000
                            [file:protected] => /usr/local/www/data/homemakersonline.com.au/library/Zend/Db/Statement/Pdo.php
                            [line:protected] => 228
                            [trace:Exception:private] => Array
                                (
                                    [0] => Array
                                        (
                                            [file] => /usr/local/www/data/homemakersonline.com.au/library/Zend/Db/Statement/Pdo.php
                                            [line] => 228
                                            [function] => execute
                                            [class] => PDOStatement
                                            [type] => ->
                                            [args] => Array
                                                (
                                                    [0] => Array
                                                        (
                                                            [0] => 176
                                                            [1] => 
                                                            [2] => 8a8a753959ed728f23dcc3989713e927
                                                            [3] => 1371695968
                                                        )

                                                )

                                        )

                                    [1] => Array
                                        (
                                            [file] => /usr/local/www/data/homemakersonline.com.au/library/Zend/Db/Statement.php
                                            [line] => 300
                                            [function] => _execute
                                            [class] => Zend_Db_Statement_Pdo
                                            [type] => ->
                                            [args] => Array
                                                (
                                                    [0] => Array
                                                        (
                                                            [0] => 176
                                                            [1] => 
                                                            [2] => 8a8a753959ed728f23dcc3989713e927
                                                            [3] => 1371695968
                                                        )

                                                )

                                        )

                                    [2] => Array
                                        (
                                            [file] => /usr/local/www/data/homemakersonline.com.au/library/Zend/Db/Adapter/Abstract.php
                                            [line] => 479
                                            [function] => execute
                                            [class] => Zend_Db_Statement
                                            [type] => ->
                                            [args] => Array
                                                (
                                                    [0] => Array
                                                        (
                                                            [0] => 176
                                                            [1] => 
                                                            [2] => 8a8a753959ed728f23dcc3989713e927
                                                            [3] => 1371695968
                                                        )

                                                )

                                        )

                                    [3] => Array
                                        (
                                            [file] => /usr/local/www/data/homemakersonline.com.au/library/Zend/Db/Adapter/Pdo/Abstract.php
                                            [line] => 238
                                            [function] => query
                                            [class] => Zend_Db_Adapter_Abstract
                                            [type] => ->
                                            [args] => Array
                                                (
                                                    [0] => INSERT INTO `wishlist` (`product_id`, `user_id`, `session_id`, `date_created`) VALUES (?, ?, ?, ?)
                                                    [1] => Array
                                                        (
                                                            [0] => 176
                                                            [1] => 
                                                            [2] => 8a8a753959ed728f23dcc3989713e927
                                                            [3] => 1371695968
                                                        )

                                                )

                                        )

                                    [4] => Array
                                        (
                                            [file] => /usr/local/www/data/homemakersonline.com.au/library/Zend/Db/Adapter/Abstract.php
                                            [line] => 575
                                            [function] => query
                                            [class] => Zend_Db_Adapter_Pdo_Abstract
                                            [type] => ->
                                            [args] => Array
                                                (
                                                    [0] => INSERT INTO `wishlist` (`product_id`, `user_id`, `session_id`, `date_created`) VALUES (?, ?, ?, ?)
                                                    [1] => Array
                                                        (
                                                            [0] => 176
                                                            [1] => 
                                                            [2] => 8a8a753959ed728f23dcc3989713e927
                                                            [3] => 1371695968
                                                        )

                                                )

                                        )

                                    [5] => Array
                                        (
                                            [file] => /usr/local/www/data/homemakersonline.com.au/library/Zend/Db/Table/Abstract.php
                                            [line] => 1075
                                            [function] => insert
                                            [class] => Zend_Db_Adapter_Abstract
                                            [type] => ->
                                            [args] => Array
                                                (
                                                    [0] => wishlist
                                                    [1] => Array
                                                        (
                                                            [product_id] => 176
                                                            [user_id] => 
                                                            [session_id] => 8a8a753959ed728f23dcc3989713e927
                                                            [date_created] => 1371695968
                                                        )

                                                )

                                        )

                                    [6] => Array
                                        (
                                            [file] => /usr/local/www/data/homemakersonline.com.au/library/Zend/Db/Table/Row/Abstract.php
                                            [line] => 467
                                            [function] => insert
                                            [class] => Zend_Db_Table_Abstract
                                            [type] => ->
                                            [args] => Array
                                                (
                                                    [0] => Array
                                                        (
                                                            [product_id] => 176
                                                            [user_id] => 
                                                            [session_id] => 8a8a753959ed728f23dcc3989713e927
                                                            [date_created] => 1371695968
                                                        )

                                                )

                                        )

                                    [7] => Array
                                        (
                                            [file] => /usr/local/www/data/homemakersonline.com.au/library/Zend/Db/Table/Row/Abstract.php
                                            [line] => 438
                                            [function] => _doInsert
                                            [class] => Zend_Db_Table_Row_Abstract
                                            [type] => ->
                                            [args] => Array
                                                (
                                                )

                                        )

                                    [8] => Array
                                        (
                                            [file] => /usr/local/www/data/homemakersonline.com.au/application/models/Wishlist/Table.php
                                            [line] => 49
                                            [function] => save
                                            [class] => Zend_Db_Table_Row_Abstract
                                            [type] => ->
                                            [args] => Array
                                                (
                                                )

                                        )

                                    [9] => Array
                                        (
                                            [file] => /usr/local/www/data/homemakersonline.com.au/application/modules/default/controllers/WishlistController.php
                                            [line] => 32
                                            [function] => addWish
                                            [class] => Wishlist_Table
                                            [type] => ->
                                            [args] => Array
                                                (
                                                    [0] => 
                                                    [1] => 176
                                                )

                                        )

                                    [10] => Array
                                        (
                                            [file] => /usr/local/www/data/homemakersonline.com.au/library/Zend/Controller/Action.php
                                            [line] => 516
                                            [function] => ajaxAddAction
                                            [class] => WishlistController
                                            [type] => ->
                                            [args] => Array
                                                (
                                                )

                                        )

                                    [11] => Array
                                        (
                                            [file] => /usr/local/www/data/homemakersonline.com.au/library/Zend/Controller/Dispatcher/Standard.php
                                            [line] => 295
                                            [function] => dispatch
                                            [class] => Zend_Controller_Action
                                            [type] => ->
                                            [args] => Array
                                                (
                                                    [0] => ajaxAddAction
                                                )

                                        )

                                    [12] => Array
                                        (
                                            [file] => /usr/local/www/data/homemakersonline.com.au/library/Zend/Controller/Front.php
                                            [line] => 954
                                            [function] => dispatch
                                            [class] => Zend_Controller_Dispatcher_Standard
                                            [type] => ->
                                            [args] => Array
                                                (
                                                    [0] => Zend_Controller_Request_Http Object
                                                        (
                                                            [_paramSources:protected] => Array
                                                                (
                                                                    [0] => _GET
                                                                    [1] => _POST
                                                                )

                                                            [_requestUri:protected] => /wishlist/ajax-add/product_id/176
                                                            [_baseUrl:protected] => 
                                                            [_basePath:protected] => 
                                                            [_pathInfo:protected] => /wishlist/ajax-add/product_id/176
                                                            [_params:protected] => Array
                                                                (
                                                                    [controller] => wishlist
                                                                    [action] => ajax-add
                                                                    [product_id] => 176
                                                                    [module] => default
                                                                    [error_handler] => ArrayObject Object
 *RECURSION*
                                                                )

                                                            [_rawBody:protected] => 
                                                            [_aliases:protected] => Array
                                                                (
                                                                )

                                                            [_dispatched:protected] => 1
                                                            [_module:protected] => default
                                                            [_moduleKey:protected] => module
                                                            [_controller:protected] => error
                                                            [_controllerKey:protected] => controller
                                                            [_action:protected] => error
                                                            [_actionKey:protected] => action
                                                        )

                                                    [1] => Zend_Controller_Response_Http Object
                                                        (
                                                            [_body:protected] => Array
                                                                (
                                                                )

                                                            [_exceptions:protected] => Array
                                                                (
                                                                    [0] => Zend_Db_Statement_Exception Object
 *RECURSION*
                                                                )

                                                            [_headers:protected] => Array
                                                                (
                                                                )

                                                            [_headersRaw:protected] => Array
                                                                (
                                                                )

                                                            [_httpResponseCode:protected] => 200
                                                            [_isRedirect:protected] => 
                                                            [_renderExceptions:protected] => 
                                                            [headersSentThrowsException] => 1
                                                        )

                                                )

                                        )

                                    [13] => Array
                                        (
                                            [file] => /usr/local/www/data/homemakersonline.com.au/application/Bootstrap.php
                                            [line] => 190
                                            [function] => dispatch
                                            [class] => Zend_Controller_Front
                                            [type] => ->
                                            [args] => Array
                                                (
                                                )

                                        )

                                    [14] => Array
                                        (
                                            [file] => /usr/local/www/data/homemakersonline.com.au/web/index.php
                                            [line] => 3
                                            [function] => dispatch
                                            [class] => Bootstrap
                                            [type] => ->
                                            [args] => Array
                                                (
                                                )

                                        )

                                )

                            [previous:Exception:private] => 
                            [errorInfo] => Array
                                (
                                    [0] => 23000
                                    [1] => 1048
                                    [2] => Column 'user_id' cannot be null
                                )

                        )

                )

            [type] => EXCEPTION_OTHER
            [request] => Zend_Controller_Request_Http Object
                (
                    [_paramSources:protected] => Array
                        (
                            [0] => _GET
                            [1] => _POST
                        )

                    [_requestUri:protected] => /wishlist/ajax-add/product_id/176
                    [_baseUrl:protected] => 
                    [_basePath:protected] => 
                    [_pathInfo:protected] => /wishlist/ajax-add/product_id/176
                    [_params:protected] => Array
                        (
                            [controller] => wishlist
                            [action] => ajax-add
                            [product_id] => 176
                            [module] => default
                        )

                    [_rawBody:protected] => 
                    [_aliases:protected] => Array
                        (
                        )

                    [_dispatched:protected] => 1
                    [_module:protected] => default
                    [_moduleKey:protected] => module
                    [_controller:protected] => wishlist
                    [_controllerKey:protected] => controller
                    [_action:protected] => ajax-add
                    [_actionKey:protected] => action
                )

        )

)