Skip to content

Instantly share code, notes, and snippets.

@sebbdk
Created March 28, 2012 14:02
Show Gist options
  • Save sebbdk/2226431 to your computer and use it in GitHub Desktop.
Save sebbdk/2226431 to your computer and use it in GitHub Desktop.
$this->MapPoint->deleteAll(array(
'MapPoint.map_id' => $this->data[0]['MapPoint']['map_id']
));
the error:
{"success":false,"data":{"exception":{"class":"MissingPluginException","trace":"#0 \/var\/www\/kondi\/htdocs\/vendors\/cakephp\/lib\/Cake\/Core\/App.php(357): CakePlugin::path('maps')\n#1 \/var\/www\/kondi\/htdocs\/vendors\/cakephp\/lib\/Cake\/Core\/App.php(225): App::pluginPath('maps')\n#2 \/var\/www\/kondi\/htdocs\/vendors\/cakephp\/lib\/Cake\/Core\/App.php(535): App::path('Model', 'maps')\n#3 [internal function]: App::load('Map')\n#4 [internal function]: spl_autoload_call('Map')\n#5 \/var\/www\/kondi\/htdocs\/vendors\/cakephp\/lib\/Cake\/Utility\/ClassRegistry.php(136): class_exists('Map')\n#6 \/var\/www\/kondi\/htdocs\/vendors\/cakephp\/lib\/Cake\/Model\/Model.php(1009): ClassRegistry::init(Array)\n#7 \/var\/www\/kondi\/htdocs\/vendors\/cakephp\/lib\/Cake\/Model\/Model.php(835): Model->_constructLinkedModel('Map', 'Map', 'maps')\n#8 \/var\/www\/kondi\/htdocs\/vendors\/cakephp\/lib\/Cake\/Model\/Model.php(865): Model->__isset('Map')\n#9 \/var\/www\/kondi\/htdocs\/vendors\/cakephp\/lib\/Cake\/Model\/Datasource\/DboSource.php(1040): Model->__get('Map')\n#10 \/var\/www\/kondi\/htdocs\/vendors\/cakephp\/lib\/Cake\/Model\/Model.php(2635): DboSource->read(Object(MapPoint), Array)\n#11 \/var\/www\/kondi\/htdocs\/vendors\/cakephp\/lib\/Cake\/Model\/Model.php(2494): Model->find('all', Array)\n#12 \/var\/www\/kondi\/htdocs\/app\/Plugin\/Maps\/Controller\/MapPointsController.php(54): Model->deleteAll(Array)\n#13 [internal function]: MapPointsController->admin_add()\n#14 \/var\/www\/kondi\/htdocs\/vendors\/cakephp\/lib\/Cake\/Controller\/Controller.php(488): ReflectionMethod->invokeArgs(Object(MapPointsController), Array)\n#15 \/var\/www\/kondi\/htdocs\/app\/Plugin\/Backend\/Lib\/Nodes\/Backend\/App\/Controller.php(249): Controller->invokeAction(Object(CakeRequest))\n#16 \/var\/www\/kondi\/htdocs\/vendors\/cakephp\/lib\/Cake\/Routing\/Dispatcher.php(103): Nodes\\Backend\\App\\Controller->invokeAction(Object(CakeRequest))\n#17 \/var\/www\/kondi\/htdocs\/vendors\/cakephp\/lib\/Cake\/Routing\/Dispatcher.php(85): Dispatcher->_invoke(Object(MapPointsController), Object(CakeRequest), Object(CakeResponse))\n#18 \/var\/www\/kondi\/htdocs\/app\/webroot\/index.php(96): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))\n#19 {main}"},"code":"500","url":"\/admin\/spark_bold\/maps\/map_points\/add.json","name":"Plugin maps could not be found."}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment