The problem was eventually identified to where a type cast was being
made. The PreProduction server did not have an issue with this but the
Live server failed when converting the object to a string with
(string). Solved when __toString() was used instead.

Before:
$replaceVariables = array('var1' => $Practice->getDateStart(), 'var2'
=> (string)$Practice->getCompleteName());

After:
$replaceVariables = array('var1' => $Practice->getDateStart(), 'var2'
=> $Practice->getCompleteName()->__toString());

Production runs PHP 5.2.4, PreProduction 5.2.6 and both worked
correctly with (string) in test cases:

<?php
class Foo {
    public $name;

    public function __construct($name) {
        $this->name = $name;
    }

    public function __toString() {
        return $this->name;
    }
}

$foo = new Foo('foobar');
echo (string)$foo;
?>

This isn't something you would expect but there was a solution
available to deal with it. I'd be very interested to know why the
Production server behaves in this case.

Thanks

On 12 ago, 23:04, Alexandre Salomé <[email protected]> wrote:
>   Must be a strange behavior from your HTTP server installation.
>
> Try with another server, that you are sure it is configured correctly.
> Maybe a strange behavior from your mail server.
>
> Try debugging, with simple tests :
>
>     * Disable mail sending
>     * Compare the HTTP responses of each installation (diff)
>     * Try some simple tests, out of your application : HTTP Redirection,
>       HTTP Header modifications, etc.
>
> And give us feedback ;)
>
> Le 12/08/10 11:32, El Duderino a �crit :
>
>
>
>
>
> > The project I am working on is using Symfony 1.4 and the backend has a
> > number of forms that when the data is changed and the form submitted,
> > the user in question is notified by email.
>
> > On our development server all goes fine, the page redirects back to '/
> > page-you-are-on/15/edit' and the email has arrived.
>
> > On the PreProduction server though, with the company that will host
> > the site when it goes live, when you submit the form, it sends the
> > email but instead of returning to '/page-you-are-on/15/edit' with a
> > Flash confirmation message, the page goes to '/page-you-are-on' with
> > this error message:
>
> > 'The page is not available
> > It is possible that the web pagehttp://www.projectsite.com/page-you-are-on
> > is temporarily inactive or has been moved to a different address.
>
> > More information - Error 324 (net::ERR_EMPTY_RESPONSE): Unknown error'
>
> > The site uses PHPMailer (BLSysEmail.class.php) to send the email.
>
> > It appears the PreProduction server is returning the wrong header but
> > any help on why this is happening and how to resolve it would be much
> > appreciated.
>
> > Thanks!
>
> --
> ---
> Alexandre Salom� -http://alexandre.salome.fr

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" 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/symfony-users?hl=en

Reply via email to