0

I have a problem, I'm there two days without being able to solve it:

I have a page with twig using javascripts, prod and gives error on the page, does not give error on dev

I tried using assetic and gives error

I've tried taking the asset files from the web, also gives error

the base file: http://pastebin.com/Xyjg0U0L

the page the error: http://pastebin.com/Vj73EuPk

dev.itenho.com.br/

dev.itenho.com.br/app_dev.php

I've compared the two versions of html and css in ubuntu meld and is identical

1
  • 2
    can you describe the error a bit more? Commented Aug 3, 2012 at 6:39

2 Answers 2

1

I just can guess since your error description is a bit vague.

But this is a "classic" one when you have errors with assetic in your prod env:
You can do two things:

Try to add in your config_prod.yml:

assetic:
    use_controller: true

or call:

php app/console assetic:dump --env=prod --no-debug
Sign up to request clarification or add additional context in comments.

Comments

1

I had the same problem and I solved it with a semicolon ; at the end of the js file. Check all your js file and put a semicolon ; at the end of those file that no has one.

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.