Hi everyone,
i'm trying to use ThumbComponent from
http://bakery.cakephp.org/articles/view/phpthumb-component
(the enhanced version, actually) in my cake1.2 app, but there is some
redirect problem:
1) using Auth & Thumb Components in the controller, calling any
actions get this error:
Warning (2): Cannot modify header information - headers already sent
by (output started at D:\Programas\xampp\htdocs\kanja\app\controllers
\components\thumb.php:1) [CORE\cake\libs\controller\controller.php,
line 546]
Code | Context
Warning: implode() [function.implode]: Bad arguments. in D:\Programas
\xampp\htdocs\kanja\cake\libs\debugger.php on line 497
header - [internal], line ??
Controller::redirect() - CORE\cake\libs\controller\controller.php,
line 546
AuthComponent::startup() - CORE\cake\libs\controller\components
\auth.php, line 315
Dispatcher::start() - CORE\cake\dispatcher.php, line 319
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 226
[main] - APP\webroot\index.php, line 84
the error line (auth.php, line 315) => $controller->redirect($this-
>loginAction, null, true);
or
2) using Thumb Component (without Auth) in the controller, all works
fine until the first redirect when I get this error:
Warning (2): Cannot modify header information - headers already sent
by (output started at D:\Programas\xampp\htdocs\kanja\app\controllers
\components\thumb.php:1) [CORE\cake\libs\controller\controller.php,
line 546]
Code | Context
Warning: implode() [function.implode]: Bad arguments. in D:\Programas
\xampp\htdocs\kanja\cake\libs\debugger.php on line 497
header - [internal], line ??
Controller::redirect() - CORE\cake\libs\controller\controller.php,
line 546
NoticiasController::addimg() - APP\controllers
\noticias_controller.php, line 175
Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 268
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 240
[main] - APP\webroot\index.php, line 84
the error line (noticias_controller.php, line 175) => $this-
>redirect('/noticias/edit/'.$id);
It seems to be a problem in my configuration, but i'm unable to find?
What i'm missing?
thank you
Pierpaolo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---