October: Type:Question Errors in different browser. Need guideline.

Created on 18 May 2016  路  3Comments  路  Source: octobercms/october

I have this error when i tried to put bootstrap into layout.

Google chrome has this error --> [Failed to parse SourceMap: http://localhost/index.php/combine/bootstrap-theme.css.map] --> [/* cms::lang.combiner.not_found */]

FireFox has this error --> [The stylesheet http://localhost/index.php/combine/ec6df7e84184194902cfefdfc14203a3- was not loaded because its MIME type, "application/javascript", is not "text/css".]

I tried re download bootstrap but the error is still there.

This is what i write in layout:
<head> <meta charset="utf-8"> <title>{{ this.page.title }}</title> <meta name="title" content="{{ this.page.meta_title }}"> <meta name="description" content="{{ this.page.meta_description }}"> <meta name="viewport" content="width=device-width, initial-scale=1"> {% styles %} <link rel="stylesheet" href="{{ [ 'assets/bootstrap-3.3.6-dist/css/bootstrap.css', 'assets/bootstrap-3.3.6-dist/css/bootstrap-theme.css' ]|theme }}"> <link rel="stylesheet" href="{{ [ 'assets/Roboto/Roboto-Regular.ttf' ]|theme }}"> </head>
In the Body tag:
<script type="text/javascript" src="{{ [ 'assets/jquery-2.2.3/jquery-2.2.3.min.js', 'assets/bootstrap-3.3.6-dist/js/bootstrap.min.js' ]|theme }}"></script> {% framework extras %} {% scripts %}
Do anyone know how to solve this error?

Question

All 3 comments

<link rel="stylesheet" href="{{ [ 'assets/Roboto/Roboto-Regular.ttf' ]|theme }}"> 

This line appears to be invalid

The GitHub issue list is for reporting bugs in the OctoberCMS code base specifically. Please try the following support avenues for getting support with using October:

But then how to add custom fonts?

Was this page helpful?
0 / 5 - 0 ratings