When I cause an error to be thrown in php code in, say, an action, I
see the error displayed in my page, no matter what I set "debug" to in
my settings.yml.

In my action, on line 19, I added this:

$foobar.getId();

On the web page, I get this display:

Fatal error: Call to undefined function getId() in /home/bdunn/sandbox-
fibot/apps/frontend/modules/guide/action s/actions.class.php on line
19

Here is what I have in apps/frontend/config/settings.yml:

.settings:
  web_debug:              on
  debug:                  off

In /web/index.php, I added some debug output to try to trace what is
going on. I printed out "display_errors" before and after initializing
the application, as you see here:

echo "display_errors: " . ini_get('display_errors') . "<br/>";
require_once(SF_ROOT_DIR.DIRECTORY_SEPARATOR.'apps'.DIRECTORY_SEPARATOR.SF_APP.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php');
echo "display_errors: " . ini_get('display_errors') . "<br/>";
echo "sf_debug: " . sfConfig::get('sf_debug') . "<br/>";

Here is the output, which appears at the top of the page:

display_errors:
display_errors: on
sf_debug:

I've checked php.ini and confirmed these settings:

display_errors = Off
display_startup_errors = Off
log_errors = On

I can tell in symfony.php that it is setting "display_errors" based on
the value of $sf_debug:

// error settings
ini_set('display_errors', $sf_debug ? 'on' : 'off');

Clearly symfony thinks the value of sf_debug is different from what I
think I set it to. Is there some other place this is being changed
that I am not aware of?

Thanks for your help!
Barclay

I also posted this question in the symfony forums at
http://www.symfony-project.org/forum/index.php/m/52864/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony developers" 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-devs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to