Thanks Friends, It's Resolved.
There was a whitespace in my some model. As soon as i removed, it start
working again.
Thanks a lot. Now i have an experience with this kind of error.
On Sunday, March 11, 2012 7:24:30 AM UTC+5:30, Brian Bowler wrote:
>
> So I have this function where the user ca
First delete all the temp files from /app/tmp/cache and /app/tmp/persistent
folders if you have created any new fields in database table. Secondly turn
on the debug mode in core.php file and then try again.
Thanks.
Vinit Sahasrabudhe
On 07-Sep-2014 8:07 AM, "Techinfocomp" wrote:
> I did that but
I did that but still i am getting the blank page while redirecting eg:
$this->redirect('/admin_cms_travels');
I am using CakePHP 2.5.4
Any suggestion ?
On Sunday, September 7, 2014 7:49:02 AM UTC+5:30, euromark wrote:
>
> Because it is unnecessary and can easily result in avoidable whitespace
Because it is unnecessary and can easily result in avoidable whitespace
errors.
Am Sonntag, 7. September 2014 04:18:06 UTC+2 schrieb Techinfocomp:
>
> Why we not suppose to include closing TAG (?>) "make sure all php files
> do not have closing ?>" ?
>
>
> On Monday, June 3, 2013 9:06:03 AM UTC
Why we not suppose to include closing TAG (?>) "make sure all php files do
not have closing ?>" ?
On Monday, June 3, 2013 9:06:03 AM UTC+5:30, Cheng Ka Teng wrote:
>
> if there is NO redirect at all you probably echo sth too soon and
> therefore headers are already sent and your redirect canno
Although the above fixed it , the issue remains the below code didnt work
as expected, in fact it doesnt work. why?
class AppController extends Controller {
public $components = array(
'Session',
'Auth' => array(
'loginRedirect' => array('controller' => 'posts', 'action' =>
This solved the problem as I need to specify the redirect in the login
I also tried in the beforefilter without success
public function login() {
if ($this->request->is('post')) {
if ($this->Auth->login()) {
return $this->redirect(array('controller' => 'posts','action' =>
'
Hi,
I am following this tutorial below and I dont get an error but what happens
is that when i login
I get redirected to the wrong place, explained below
cakephp/posts/index -correct and I get redirected here sometimes
cakephp/ - other times I get redirected here with same login name
htt
if there is NO redirect at all you probably echo sth too soon and therefore
headers are already sent and your redirect cannot work anymore . Please
check the files inside app/controller, make sure all php files do not have
closing ?>
On Sunday, March 11, 2012 9:54:30 AM UTC+8, Brian Bowler wrot
@Geore, I have tried taking it out and what happens is that it goes to the
'/formulas/instructions/' page minus the ID variables. I assume this
happens because this is happening because of POST. I either want to
redirect to a different page such as 'formulas/manage' (for example) or
redirect to '/f
Yes try the $this->redirect($this->referer());
http://book.cakephp.org/1.2/view/430/referer
Thanks,
Vijay
On Mar 11, 10:01 am, romel javier gomez herrera
wrote:
> try with this $this->redirect($this->referer());
>
> El 10 de marzo de 2012 21:24, Brian Bowler escribió:
>
>
>
>
>
>
>
> > So I
try with this $this->redirect($this->referer());
El 10 de marzo de 2012 21:24, Brian Bowler escribió:
> So I have this function where the user can add the weight to materials and
> save them. However after the updateAll, $this->redirect doesn't work at all
> and the result shows up with a blan
Without the redirect Cake should take you back to the 'instructions' view.
Have you tried removing the redirect line to see what happens (assuming the
instructions action you have here is in the instructions controller)?
George
On Sat, Mar 10, 2012 at 8:54 PM, Brian Bowler wrote:
> So I have th
So I have this function where the user can add the weight to materials and
save them. However after the updateAll, $this->redirect doesn't work at all
and the result shows up with a blank page with nothing in the source. In an
ideal world I would have it redirect to a different page but at a minimu
This is a weird issue. I am using the same redirect several times in
the controller. The redirect works for all of the other actions
except when I use an edit function. The redirect is as follows:
$this->redirect(array('controller'=>'systems', 'action'=>'index',
'admin'=>1));
I have checked
Hi,
Is there any space or empty line before 'http://www.sanisoft.com
On Thu, Nov 18, 2010 at 9:54 AM, Briko03 wrote:
> /app/controllers/results_controller.php:1
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> You recei
/app/controllers/results_controller.php:1
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@goo
Read FULL error message. It tells where output occurs in the "..."
part posted by you.
On Nov 18, 9:17 am, Briko03 wrote:
> I dont have a line 746 anywhere.
>
> On Nov 17, 10:16 pm, Briko03 wrote:
>
>
>
>
>
>
>
> > Not sure what you mean by that.
>
> > On Nov 17, 9:54 pm, Miles J wrote:
>
>
This is my model:
set('title_for_layout','Connecticut Industrial Ski Council
- Results - Find by Person');
//Set drop down fields
$this->set('locations',$this->Result->find('list',array(
'fields' =>
array('location','location'),'group'=>array('location';
$this->se
On Wed, Nov 17, 2010 at 10:17 PM, Briko03 wrote:
> I dont have a line 746 anywhere.
>From the error msg. But it's in Cake's Controller code. Probably the
redirect() method, so not likely to tell you much.
You probably have whitespace after the closing php tag (?>) in a file
somewhere. That s
You probably need to check your code.
Somewhere before PHP processes the redirect, there is an echo
somewhere.
If my guess is right, you have a debugging message before your
redirect.
Have a look at your Controller::beforeFilter() too in your controller
and AppController.
Even your model too if you
I dont have a line 746 anywhere.
On Nov 17, 10:16 pm, Briko03 wrote:
> Not sure what you mean by that.
>
> On Nov 17, 9:54 pm, Miles J wrote:
>
> > So whats line 746?
>
> > It seems you are echoing code before the redirect somewhere.
>
> > On Nov 17, 5:28 pm, Briko03 wrote:
>
> > > I have a
Not sure what you mean by that.
On Nov 17, 9:54 pm, Miles J wrote:
> So whats line 746?
>
> It seems you are echoing code before the redirect somewhere.
>
> On Nov 17, 5:28 pm, Briko03 wrote:
>
> > I have an form/action that I am trying to get to redirect based on
> > submitted values
>
> >
So whats line 746?
It seems you are echoing code before the redirect somewhere.
On Nov 17, 5:28 pm, Briko03 wrote:
> I have an form/action that I am trying to get to redirect based on
> submitted values
>
> For some reason when I try to get my form to redirect to my url I get:
> Warning (2):
I have an form/action that I am trying to get to redirect based on
submitted values
For some reason when I try to get my form to redirect to my url I get:
Warning (2): Cannot modify header information - headers already sent
by CORE/cake/libs/controller/controller.php, line 746
My goal is
You are outputting text to the screen before you do the redirect, so it won't
work. Rather than doing (and I am guessing what you are doing here) this:
echo "Congratulations, your new account has been successfully created";
$this->redirect...etc
...place the text into the session flash:
$this->S
On Thu, Oct 7, 2010 at 4:17 AM, a17s wrote:
> Hello, got a problem with using cakephp redirect. Get an error saying
> header already been set. Please how can I redirect to another action
> after processing a post. My error keeps pointing to the cake/
> basic.php, and the controller/controller.php
Hello, got a problem with using cakephp redirect. Get an error saying
header already been set. Please how can I redirect to another action
after processing a post. My error keeps pointing to the cake/
basic.php, and the controller/controller.php
See error and code below:
Error
Congratulation
Come to think of it, you could remove the final ?> as well.
PHP can parse files that do not end in ?>. And without the final ?> you
can never output accidental whitespace.
Here is what the PHP manual says:
Note: The closing tag of a PHP block at the end of a file is optional,
and in some cases
On Aug 2, 2006, at 10:56 AM, [EMAIL PROTECTED] wrote:
>
>> If you turn up DEBUG to 3 do you get any messages?
>
> Warning: Cannot modify header information - headers already sent by
> (output started at C:\www\workspace\site.com\app\config\core.php:149)
> in C:\www\workspace\site.com\cake\libs\c
> If you turn up DEBUG to 3 do you get any messages?
Warning: Cannot modify header information - headers already sent by
(output started at C:\www\workspace\site.com\app\config\core.php:149)
in C:\www\workspace\site.com\cake\libs\controller\controller.php on
line 396
> What happens when you vie
On Aug 2, 2006, at 10:39 AM, [EMAIL PROTECTED] wrote:
> and then i call it http://site.com/home/re and i have blank page
> instead of /users/login or whatever else.
If you turn up DEBUG to 3 do you get any messages? What happens when
you view source? Is there a view for that action? Anything
i write custom error handler (redirect to main page after e404) from
here:
http://cakebaker.wordpress.com/2006/06/15/writing-a-custom-error-handler/
and then i have blank page
so i write only redirect to test what's going on and then also i have
blank page:
class HomeController extends AppContro
On Aug 2, 2006, at 10:29 AM, [EMAIL PROTECTED] wrote:
>
> $this->redirect('/controller/action'); not working :(
>
> i always have blank page :/ DEBUG 0,1,2.. no matters.
>
> any ideas?
>
> $this->flash() working (with message and redirect after x seconds) but
> $this->redirect('/') always gives
$this->redirect('/controller/action'); not working :(
i always have blank page :/ DEBUG 0,1,2.. no matters.
any ideas?
$this->flash() working (with message and redirect after x seconds) but
$this->redirect('/') always gives blank page :(
--~--~-~--~~~---~--~~
35 matches
Mail list logo