Setting debug to 0 will work around your problem since PHP notices won't be shown then.
Of course, the real root of the problem is the fact that the uploader tries to access an array with a var that doesn't exist. Have a look at the script on line 695 and try to figure out why it's not set. Possibly it's a small bug, then you should contact Miles :) On Wed, Oct 7, 2009 at 11:28 PM, emmexx <[email protected]> wrote: > > I use Miles Johnson's Uploader plugin in a model. > http://www.milesj.me/resources/script/uploader-plugin > > On my pc I have no problem. > On the host where I'm testing my application after saving a record a > receive the following messages. > The page seems partially broken, it is not the index page, but I > verified that the file has been uploaded and the record saved. > > How can I remove this message? > > thank you > maxx > > Notice (8): Undefined index: group [APP/plugins/uploader/controllers/ > components/uploader.php, line 695] > > Code | Context > > $this = uploadercomponent > uploadercomponent::$_log = NULL > uploadercomponent::$version = "2.1" > uploadercomponent::$data = array > uploadercomponent::$logs = array > uploadercomponent::$current = "filename" > uploadercomponent::$enableUpload = true > uploadercomponent::$maxFileSize = "5M" > uploadercomponent::$maxNameLength = 40 > uploadercomponent::$scanFile = false > uploadercomponent::$tempDir = "/a_path/cake2/app/tmp/" > uploadercomponent::$uploadDir = "files/uploads/" > uploadercomponent::$mimeTypes = array > uploadercomponent::$enabled = true > uploadercomponent::$Controller = resourcescontroller object > uploadercomponent::$Folder = folder object > uploadercomponent::$finalDir = "/a_path/cake2/app/webroot/files/ > uploads/" > $file = "filename" > $options = array( > "name" => null, > "overwrite" => false, > "multiple" => false > ) > $defaults = array( > "name" => null, > "overwrite" => false, > "multiple" => false > ) > > upload - [internal], line ?? > uploadercomponent::upload() - APP/plugins/uploader/controllers/ > components/uploader.php, line 695 > resourcescontroller::add() - APP/controllers/resources_controller.php, > line 26 > resourcescontroller::dispatchmethod() - CORE/cake/libs/object.php, > line 115 > dispatcher::_invoke() - CORE/cake/dispatcher.php, line 227 > dispatcher::dispatch() - CORE/cake/dispatcher.php, line 194 > [main] - APP/webroot/index.php, line 88 > > Warning (2): Cannot modify header information - headers already sent > by (output started at /a_path/cake2/cake/basics.php:111) [CORE/cake/ > libs/controller/controller.php, line 640] > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
