Invalid data type used for entity.
-
Using 2.0.7 on WP 3.6 on PHP 5.4.8 on MySQL 5.5.28 when trying to upload images the following is returned to http request https://me.local.com/wp/photocrati_ajax?action=upload_image&gallery_id=1&gallery_name=:
"gallery_id":1,"error":"An unexpected error occured.","error_details":"Invalid data type used for entity. Please use stdClass\n\t\t\t\tor a subclass of C_DataMapper_Model. Arrays will be supported in\n\t\t\t\tthe future." which seems to come from the constructor of class E_InvalidEntityException so I put a backtrace there and got the backtrace and also a database error showed up: [10-Aug-2013 19:08:16 UTC] WordPress database error Field 'image_slug' doesn't have a default value for query INSERT INTO <code>wp_ngg_pictures</code> (<code>exclude</code>,<code>description</code>,<code>sortorder</code>,<code>imagedate</code>,<code>alttext</code>,<code>galleryid</code>,<code>filename</code>) VALUES ('','','0','2013-08-10 19:08:15','plymouth_duster-jpg','1','plymouth_duster.jpg') made by require('C:\WWW\wp\wp-blog-header.php'), require_once('C:\WWW\wp\wp-load.php'), require_once('C:\WWW\wp\wp-config.php'), require_once('C:\WWW\wp\wp-settings.php'), do_action('init'), call_user_func_array, C_NextGEN_Bootstrap->route, C_Router->serve_request, ExtensibleObject->__call, ExtensibleObject->_exec_cached_method, ReflectionMethod->invokeArgs, Mixin_Router->serve_request, C_Routing_App->serve_request, ExtensibleObject->__call, ExtensibleObject->_exec_cached_method, ReflectionMethod->invokeArgs, Mixin_Routing_App->serve_request, C_Routing_App->execute_route_handler, ExtensibleObject->__call, ExtensibleObject->_exec_cached_method, ReflectionMethod->invokeArgs, Mixin_Routing_App->execute_route_handler, C_Ajax_Controller->index_action, ExtensibleObject->call_method, ExtensibleObject->__call, ExtensibleObject->_exec_cached_method, ReflectionMethod->invokeArgs, A_NextGen_AddGallery_Ajax->upload_image_action, C_Gallery_Storage->upload_image, C_GalleryStorage_Base->__call, ExtensibleObject->__call, call_user_func_array, C_NggLegacy_GalleryStorage_Driver->upload_image, C_GalleryStorage_Base->__call, ExtensibleObject->__call, ExtensibleObject->_exec_cached_method, ReflectionMethod->invokeArgs, Mixin_NggLegacy_GalleryStorage_Driver->upload_image, C_NggLegacy_GalleryStorage_Driver->upload_base64_image, C_GalleryStorage_Base->__call, ExtensibleObject->__call, ExtensibleObject->_exec_cached_method, ReflectionMethod->invokeArgs, Mixin_GalleryStorage_Driver_Base->upload_base64_image, C_Image_Mapper->save, ExtensibleObject->__call, ExtensibleObject->_exec_cached_method, ReflectionMethod->invokeArgs, Mixin_DataMapper_Driver_Base->save, C_Image_Mapper->_save_entity, ExtensibleObject->__call, ExtensibleObject->_exec_cached_method, ReflectionMethod->invokeArgs, Mixin_Gallery_Image_Mapper->_save_entity, Mixin->call_parent, ExtensibleObject->call_method, ExtensibleObject->__call, ExtensibleObject->_exec_cached_method, ReflectionMethod->invokeArgs, C_CustomTable_DataMapper_Driver_Mixin->_save_entity, C_Image_Mapper->_create, ExtensibleObject->__call, ExtensibleObject->_exec_cached_method, ReflectionMethod->invokeArgs, C_CustomTable_DataMapper_Driver_Mixin->_create [10-Aug-2013 19:08:16 UTC] ##### E_InvalidEntityException::__construct():backtrace=Array ( [0] => Array ( [file] => C:\WWW\wp\wp-content\plugins\nextgen-gallery\products\photocrati_nextgen\modules\nextgen_data\class.gallerystorage_driver_base.php [line] => 605 [function] => __construct [class] => E_InvalidEntityException [type] => -> ) [1] => Array ( [function] => upload_base64_image [class] => Mixin_GalleryStorage_Driver_Base [type] => -> ) [2] => Array ( [file] => C:\WWW\wp\wp-content\plugins\nextgen-gallery\pope\lib\class.extensibleobject.php [line] => 1140 [function] => invokeArgs [class] => ReflectionMethod [type] => -> ) [3] => Array ( [file] => C:\WWW\wp\wp-content\plugins\nextgen-gallery\pope\lib\class.extensibleobject.php [line] => 785 [function] => _exec_cached_method [class] => ExtensibleObject [type] => -> ) [4] => Array ( [file] => C:\WWW\wp\wp-content\plugins\nextgen-gallery\products\photocrati_nextgen\modules\nextgen_data\class.gallerystorage_base.php [line] => 19 [function] => __call [class] => ExtensibleObject [type] => -> ) [5] => Array ( [file] => C:\WWW\wp\wp-content\plugins\nextgen-gallery\products\photocrati_nextgen\modules\nextgen_data\class.ngglegacy_gallerystorage_driver.php [line] => 201 [function] => __call [class] => C_GalleryStorage_Base [type] => -> ) [6] => Array ( [file] => C:\WWW\wp\wp-content\plugins\nextgen-gallery\products\photocrati_nextgen\modules\nextgen_data\class.ngglegacy_gallerystorage_driver.php [line] => 201 [function] => upload_base64_image [class] => C_NggLegacy_GalleryStorage_Driver [type] => -> ) [7] => Array ( [function] => upload_image [class] => Mixin_NggLegacy_GalleryStorage_Driver [type] => -> ) [8] => Array ( [file] => C:\WWW\wp\wp-content\plugins\nextgen-gallery\pope\lib\class.extensibleobject.php [line] => 1140 [function] => invokeArgs [class] => ReflectionMethod [type] => -> ) [9] => Array ( [file] => C:\WWW\wp\wp-content\plugins\nextgen-gallery\pope\lib\class.extensibleobject.php [line] => 785 [function] => _exec_cached_method [class] => ExtensibleObject [type] => -> ) [10] => Array ( [file] => C:\WWW\wp\wp-content\plugins\nextgen-gallery\products\photocrati_nextgen\modules\nextgen_data\class.gallerystorage_base.php [line] => 19 [function] => __call [class] => ExtensibleObject [type] => -> ) [11] => Array ( [function] => __call [class] => C_GalleryStorage_Base [type] => -> ) [12] => Array ( [function] => upload_image [class] => C_NggLegacy_GalleryStorage_Driver [type] => -> ) [13] => Array ( [file] => C:\WWW\wp\wp-content\plugins\nextgen-gallery\pope\lib\class.extensibleobject.php [line] => 802 [function] => call_user_func_array ) [14] => Array ( [file] => C:\WWW\wp\wp-content\plugins\nextgen-gallery\products\photocrati_nextgen\modules\nextgen_data\class.gallerystorage_base.php [line] => 19 [function] => __call [class] => ExtensibleObject [type] => -> ) [15] => Array ( [file] => C:\WWW\wp\wp-content\plugins\nextgen-gallery\products\photocrati_nextgen\modules\nextgen_addgallery_page\adapter.nextgen_addgallery_ajax.php [line] => 53 [function] => __call [class] => C_GalleryStorage_Base [type] => -> ) [16] => Array ( [file] => C:\WWW\wp\wp-content\plugins\nextgen-gallery\products\photocrati_nextgen\modules\nextgen_addgallery_page\adapter.nextgen_addgallery_ajax.php [line] => 53 [function] => upload_image [class] => C_Gallery_Storage [type] => -> ) [17] => Array ( [function] => upload_image_action [class] => A_NextGen_AddGallery_Ajax [type] => -> ) [18] => Array ( [file] => C:\WWW\wp\wp-content\plugins\nextgen-gallery\pope\lib\class.extensibleobject.php [line] => 1140 [function] => invokeArgs [class] => ReflectionMethod [type] => -> ) [19] => Array ( [file] => C:\WWW\wp\wp-content\plugins\nextgen-gallery\pope\lib\class.extensibleobject.php [line] => 785 [function] => _exec_cached_method [class] => ExtensibleObject [type] => -> ) [20] => Array ( [file] => C:\WWW\wp\wp-content\plugins\nextgen-gallery\pope\lib\class.extensibleobject.php [line] => 897 [function] => __call [class] => ExtensibleObject [type] => -> ) [21] => Array ( [file] => C:\WWW\wp\wp-content\plugins\nextgen-gallery\products\photocrati_nextgen\modules\ajax\class.ajax_controller.php [line] => 27 [function] => call_method [class] => ExtensibleObject [type] => -> ) [22] => Array ( [file] => C:\WWW\wp\wp-content\plugins\nextgen-gallery\products\photocrati_nextgen\modules\router\class.routing_app.php [line] => 334 [function] => index_action [class] => C_Ajax_Controller [type] => -> ) [23] => Array ( [function] => execute_route_handler [class] => Mixin_Routing_App [type] => -> ) [24] => Array ( [file] => C:\WWW\wp\wp-content\plugins\nextgen-gallery\pope\lib\class.extensibleobject.php [line] => 1140 [function] => invokeArgs [class] => ReflectionMethod [type] => -> ) [25] => Array ( [file] => C:\WWW\wp\wp-content\plugins\nextgen-gallery\pope\lib\class.extensibleobject.php [line] => 785 [function] => _exec_cached_method [class] => ExtensibleObject [type] => -> ) [26] => Array ( [file] => C:\WWW\wp\wp-content\plugins\nextgen-gallery\products\photocrati_nextgen\modules\router\class.routing_app.php [line] => 305 [function] => __call [class] => ExtensibleObject [type] => -> ) [27] => Array ( [file] => C:\WWW\wp\wp-content\plugins\nextgen-gallery\products\photocrati_nextgen\modules\router\class.routing_app.php [line] => 305 [function] => execute_route_handler [class] => C_Routing_App [type] => -> ) [28] => Array ( [function] => serve_request [class] => Mixin_Routing_App [type] => -> ) [29] => Array ( [file] => C:\WWW\wp\wp-content\plugins\nextgen-gallery\pope\lib\class.extensibleobject.php [line] => 1140 [function] => invokeArgs [class] => ReflectionMethod [type] => -> ) [30] => Array ( [file] => C:\WWW\wp\wp-content\plugins\nextgen-gallery\pope\lib\class.extensibleobject.php [line] => 785 [function] => _exec_cached_method [class] => ExtensibleObject [type] => -> ) [31] => Array ( [file] => C:\WWW\wp\wp-content\plugins\nextgen-gallery\products\photocrati_nextgen\modules\router\class.router.php [line] => 168 [function] => __call [class] => ExtensibleObject [type] => -> ) [32] => Array ( [file] => C:\WWW\wp\wp-content\plugins\nextgen-gallery\products\photocrati_nextgen\modules\router\class.router.php [line] => 168 [function] => serve_request [class] => C_Routing_App [type] => -> ) [33] => Array ( [function] => serve_request [class] => Mixin_Router [type] => -> ) [34] => Array ( [file] => C:\WWW\wp\wp-content\plugins\nextgen-gallery\pope\lib\class.extensibleobject.php [line] => 1140 [function] => invokeArgs [class] => ReflectionMethod [type] => -> ) [35] => Array ( [file] => C:\WWW\wp\wp-content\plugins\nextgen-gallery\pope\lib\class.extensibleobject.php [line] => 785 [function] => _exec_cached_method [class] => ExtensibleObject [type] => -> ) [36] => Array ( [file] => C:\WWW\wp\wp-content\plugins\nextgen-gallery\nggallery.php [line] => 253 [function] => __call [class] => ExtensibleObject [type] => -> ) [37] => Array ( [file] => C:\WWW\wp\wp-content\plugins\nextgen-gallery\nggallery.php [line] => 253 [function] => serve_request [class] => C_Router [type] => -> ) [38] => Array ( [function] => route [class] => C_NextGEN_Bootstrap [type] => -> ) [39] => Array ( [file] => C:\WWW\wp\wp-includes\plugin.php [line] => 406 [function] => call_user_func_array ) [40] => Array ( [file] => C:\WWW\wp\wp-settings.php [line] => 308 [function] => do_action ) [41] => Array ( [file] => C:\WWW\wp\wp-config.php [line] => 90 [args] => Array ( [0] => C:\WWW\wp\wp-settings.php ) [function] => require_once ) [42] => Array ( [file] => C:\WWW\wp\wp-load.php [line] => 29 [args] => Array ( [0] => C:\WWW\wp\wp-config.php ) [function] => require_once ) [43] => Array ( [file] => C:\WWW\wp\wp-blog-header.php [line] => 12 [args] => Array ( [0] => C:\WWW\wp\wp-load.php ) [function] => require_once ) [44] => Array ( [file] => C:\WWW\wp\index.php [line] => 17 [args] => Array ( [0] => C:\WWW\wp\wp-blog-header.php ) [function] => require ) )
Hope this helps,
mc
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Invalid data type used for entity.’ is closed to new replies.