0

I'm new to Symfony and in my company, I take over the project created by someone else using Symfony 1.4 & is not available now.

I went through jobeet tutorial and mostly comfortable with symfony but I could not load debug toolbar even environment is set to 'dev'. Debug bar is not visible even through frontend_dev.php file. Common settings are:

factories.yml

prod:
    logger:
        class:   sfNoLogger
        param:
            level:   err
            loggers: ~

dev:
    mailer:
        param:
          delivery_strategy: none

Settings.yml

prod:
  .settings:
    error_reporting:        <?php echo ((E_ALL | E_STRICT))."\n" ?>
    no_script_name:         true
    logging_enabled:        true

dev:
  .settings:
    error_reporting:        <?php echo (((E_ALL | E_STRICT)^ E_NOTICE) ^ E_DEPRECATED)."\n" ?>
    web_debug:              true
    cache:                  false
    no_script_name:         false
    etag:                   false
    compressed:             false

Frontend_dev.php file include

require_once(dirname(__FILE__).'/../config/ProjectConfiguration.class.php');

$configuration = ProjectConfiguration::getApplicationConfiguration('frontend', 'dev', true);
sfContext::createInstance($configuration)->dispatch();

Where is the error? We are using custom design defined in layout, partials and template (*Success.php) pages. Do I need to add some code to layout to enable debug bar?

7
  • Does the c/p of settings.yml is good? Because you have a one space indented instead of 2 for .settings (which can cause the problem you've got) Commented Aug 21, 2012 at 7:17
  • Yes I cross-checked setting.yml file again. 'Two space' are used everywhere including in 'dev:' settings. One space shown here is mistake here, while pasting text. Commented Aug 21, 2012 at 8:36
  • Thanks J, That was the reason. I changed web_debug:true but didn't cleared the cache since last few days. It started working as soon as I cleared cache. Commented Aug 21, 2012 at 8:57
  • 1
    Common symfony rules: if something doesn't change after updated one configuration file: php symfony cc Commented Aug 21, 2012 at 9:00
  • Yes, after this incident, I'll keep that as first debug thing. However, there is another problem now. Debug bar not opening. On web console, I'm getting following message: ReferenceError: sfWebDebugShowDetailsFor is not defined Any idea why this is happening? Commented Aug 21, 2012 at 9:02

2 Answers 2

4

Did you clear your cache?

Common symfony rules (kind of #protips):

if something doesn't change after updated one configuration file, try: php symfony cc

Sign up to request clarification or add additional context in comments.

Comments

0

You have to edit your httpd.conf (for apache web server) file particularly your virtual host definition. Add this Alias /sf /home/sfproject/lib/vendor/symfony/data/web/sf AllowOverride All Allow from All

See this.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.