Re: Notice+error after file upload

2009-10-08 Thread Bert Van den Brande
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 emmeics...@gmail.com 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Notice+error after file upload

2009-10-08 Thread emmexx



On 8 Ott, 08:01, Bert Van den Brande cyr...@gmail.com wrote:
 Setting debug to 0 will work around your problem since PHP notices won't be
 shown then.

I presumed that... :-)
My question was about the different behaviour on my laptop and on my
web host.
The debug level is the same: 2.
On my pc the notice is only present in the debug.log.


 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 :)

Or Miles should contact me! ;-)

Thank you
maxx
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Notice+error after file upload

2009-10-08 Thread Bert Van den Brande
Well to find out why it is behaving differently you first need to find out
what is causing the problem ...

On Thu, Oct 8, 2009 at 8:45 AM, emmexx emmeics...@gmail.com wrote:




 On 8 Ott, 08:01, Bert Van den Brande cyr...@gmail.com wrote:
  Setting debug to 0 will work around your problem since PHP notices won't
 be
  shown then.

 I presumed that... :-)
 My question was about the different behaviour on my laptop and on my
 web host.
 The debug level is the same: 2.
 On my pc the notice is only present in the debug.log.

 
  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 :)

 Or Miles should contact me! ;-)

 Thank you
maxx
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Notice+error after file upload

2009-10-08 Thread Miles J

Well I tried to take a look at like 695 in my class but you have an
older version so we are not looking at the same thing. Try upgrading
to 2.3 and let me know if the error happens again.

You can also try using my attachment behavior in 2.3

http://www.milesj.me/resources/script/uploader-plugin

On Oct 7, 11:55 pm, Bert Van den Brande cyr...@gmail.com wrote:
 Well to find out why it is behaving differently you first need to find out
 what is causing the problem ...

 On Thu, Oct 8, 2009 at 8:45 AM, emmexx emmeics...@gmail.com wrote:

  On 8 Ott, 08:01, Bert Van den Brande cyr...@gmail.com wrote:
   Setting debug to 0 will work around your problem since PHP notices won't
  be
   shown then.

  I presumed that... :-)
  My question was about the different behaviour on my laptop and on my
  web host.
  The debug level is the same: 2.
  On my pc the notice is only present in the debug.log.

   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 :)

  Or Miles should contact me! ;-)

  Thank you
     maxx
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---