View Issue Details

IDProjectCategoryView StatusLast Update
14138Bug reports[All Projects] Response browsingpublic2018-10-10 18:51
ReportercaseylucasAssigned To 
PrioritynoneSeverityminor 
Status newResolutionopen 
Product Version3.13.x 
Target VersionFixed in Version 
Summary14138: missing glyphicons-halflings-regular.* fonts when viewing survey responses
Description

Navigate to the "Responses" section of a survey (admin) and bootstrap.css will reference missing font files. These examples were running on my localhost.

Missing files:
http://localhost:8080/assets/packages/fonts/glyphicons-halflings-regular.woff2
http://localhost:8080/assets/packages/fonts/glyphicons-halflings-regular.woff
http://localhost:8080/assets/packages/fonts/glyphicons-halflings-regular.ttf

Referer:
http://localhost:8080/assets/packages/bootstrap/bootstrap.css

Example problem URL:
http://localhost:8080/index.php?r=admin/responses/sa/browse&surveyid=346263

Steps To Reproduce

Navigate to survey responses in admin. Notice 404 errors in browser dev tools.

Additional Information

I'm willing to create a PR with a little direction. I wasn't sure if i should copy the missing font files to a specific directory or modify the bootstrap.css file.

TagsNo tags attached.
Complete LimeSurvey version number (& build)3.14.11+180926
I will donate to the project if issue is resolvedNo
Browserchrome
Database & DB-VersionPostgres
Server OS (if known)linux
Webserver software & version (if known)FPM
PHP Version7.2

Activities

DenisChenu

DenisChenu

2018-10-10 08:21

developer   ~49283

Yep , since we have (and use) fontawesome, maybe it's better to update glyphicon.less to use fontawesome …

I have a snippet for this : https://gitlab.com/snippets/1761726

caseylucas

caseylucas

2018-10-10 15:56

reporter   ~49293

Can you give a little more detail? I couldn't find any LimeSurvey docs on building the assets in the 'assets' directory.

DenisChenu

DenisChenu

2018-10-10 16:07

developer   ~49294

Last edited: 2018-10-10 16:09

View 3 revisions

assets system is same than Yii : we just copy css/js files without updating it.

Finally : you can just update bootstrap.css file

https://github.com/LimeSurvey/LimeSurvey/blob/5ef8669ceee8a171d0eedfa4793c0d40a9819edf/assets/packages/bootstrap/bootstrap.css#L266-L267

caseylucas

caseylucas

2018-10-10 17:04

reporter   ~49296

I don't understand what you mean by "asset system is same than Yii". Is there no build/packaging step in order to create bootstrap.css and bootstrap.min.css?

This diff below of assets/packages/bootstrap/bootstrap.css fixes the problem by changing the css so that it correctly resolves the glyphicon fonts (not using fontawesome) however it doesn't change the bootstrap.min.css file and seems like a hack. Is this what you want? Note the patch just adds a '../' to the font src references.

@@ -263,8 +263,8 @@ th {
@font-face {
font-family: 'Glyphicons Halflings';

  • src: url('../fonts/glyphicons-halflings-regular.eot');
  • src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff2') format('woff2'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
  • src: url('../../fonts/font-src/glyphicons-halflings-regular.eot');
  • src: url('../../fonts/font-src/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../../fonts/font-src/glyphicons-halflings-regular.woff2') format('woff2'), url('../../fonts/font-src/glyphicons-halflings-regular.woff') format('woff'), url('../../fonts/font-src/glyphicons-halflings-regular.ttf') format('truetype'), url('../../fonts/font-src/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
    }
    .glyphicon {
    position: relative;
DenisChenu

DenisChenu

2018-10-10 18:51

developer   ~49299

Sorry : i mean : personnaly i don't have the less file for current bootstrap.css : maybe LimeSurvey GMBH team have one …

Issue History

Date Modified Username Field Change
2018-10-09 20:58 caseylucas New Issue
2018-10-10 08:21 DenisChenu Note Added: 49283
2018-10-10 15:56 caseylucas Note Added: 49293
2018-10-10 16:07 DenisChenu Note Added: 49294
2018-10-10 16:07 DenisChenu Note Edited: 49294 View Revisions
2018-10-10 16:09 DenisChenu Note Edited: 49294 View Revisions
2018-10-10 17:04 caseylucas Note Added: 49296
2018-10-10 18:51 DenisChenu Note Added: 49299