Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9212781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:36:13+00:00 2026-06-18T01:36:13+00:00

Attempting to load in multiple js libraries. Using either method bellow, the bootstrap and

  • 0

Attempting to load in multiple js libraries. Using either method bellow, the bootstrap and facebook js files load in fine, but any other libraries I add either throw a 500 error if called by name or simply do not load in if using /* The files are all in the same directory with the same permissions as far as I can tell. Why would this be happening and how can I fix it?

Method 1:

{% javascripts
        'bundles/onnbrun/js/*'
        %}
        <script type="text/javascript" src="{{ asset_url }}"></script>
{% endjavascripts %}

Method 2:

{% javascripts
        'bundles/onnbrun/js/jquery-1.8.0.min.js'
        'bundles/onnbrun/js/jquery-ui-1.9.0.js'
        'bundles/onnbrun/js/bootstrap.min.js'
        'bundles/onnbrun/js/facebook_enable.js'
        %}
        <script type="text/javascript" src="{{ asset_url }}"></script>
{% endjavascripts %}

UPDATE #1:

Using the @Bundle syntax suggested below I am able to run php app/console assetic:dump without error; however, when I attempt to go to app_dev.php in a browser I get the error:

An exception has been thrown during the compilation of a template (“Unable to find file “@ONNBrunBundle/js/jquery-1.8.0.min.js”.”) in “ONNBrunBundle::web.html.twig”.

I am able to view the file located in my bundle’s Resources/public/js directory through my ide and through putty.

UPDATE #2:

On advice from lee in #symfony tried routing to my js directory in my browser and voila! only the two js files that have been serving properly the whole time are there – nothing else.

So… /www/src/ONN/BrunBundle/Resources/public/js shows me all the js files I’m trying to serve when I look at it through putty or through my ide or through any random ftp program; however, /web/bundles/onnbrun/js/ in a browser shows only the two js files that serve correctly.

I have run assetic:dump and assetic:dump –env=prod –no-debug with no errors.

I have run cache:clear.

I don’t know what could be causing the discrepancy.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T01:36:14+00:00Added an answer on June 18, 2026 at 1:36 am

    case 1)

    your files are stored in a bundle

    If it’s the case, use the code below

    {% javascripts
            '@YourBundle/Resources/public/js/*'
            %}
            <script type="text/javascript" src="{{ asset_url }}"></script>
    {% endjavascripts %}
    

    case 2)

    Your files are stored in your root web directory under a js directory (not a bundle directory)

    {% javascripts
            'js/*'
            %}
            <script type="text/javascript" src="{{ asset_url }}"></script>
    {% endjavascripts %}
    

    Final step

    dump your file

    php app/console assetic:dump --env=prod --no-debug
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am attempting to load document files into a document library in SharePoint using
I am attempting to load multiple images in AS3 and I'm exploring different options
So basically I am thinking about attempting load testing on my asp.net application using
I'm attempting to load a store catalog into MongoDb (2.2.2) using Node.js (0.8.18) and
I'm attempting to parse an XML file using simpleXML, but I keep running into
I'm trying load a 3rd party DLL but I get an error when attempting
I am attempting to load from text files, queries into an MS Access Queries
I am attempting to load a set of JAR files that go together to
I am attempting to load HTML code using C++ and wininet.h instrumentation in Visual
I'm attempting to load the Highcharts library using a shim in RequireJS. However, when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.