View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
20040Bug reportsAssetspublic2025-04-02 12:28
Reportertassoman Assigned To 
PrioritynoneSeverityminor 
Status newResolutionopen 
Product Version6.6.x 
Summary20040: Admintheme wrong js asset loading
Description

I'm writing a more accessible admintheme, based on Sea Green v6.0.
By using custom assets CSS and JS, files are correctly created and placed inside

  • assets/hexhex/css/myadmintheme.css
  • assets/hexhex/js/myadmintheme.js

The problem is that backend page https://limesurvey.local/index.php/dashboard/view tries to load missing file in https://limesurvey.local/tmp/assets/a194a71f/scripts/myadmintheme.js
Every administrative page acts as the same. File not found.

Steps To Reproduce

Steps to reproduce

  1. install LS 6.12.0
  2. copy Sea Green administrative theme inside upload/admintheme/myadmintheme
  3. edit config.xml accordingly
  4. add a js and css file (see code below)
  5. open adminstration theme general settings
  6. select myadmintheme
  7. delete asset cache by button
  8. open admin web interface
  9. inspect developer console for 404 error


<files>
<css>
<filename>sea_green.css</filename>
<filename>rer.css</filename>
</css>

    <js>
        <filename>rer.js</filename>
    </js>
</files>

Expected result

JS asset should be inside assets/hexhex/js/myadmintheme.js

Actual result

CSS file is ok but JS is inside "scripts"

  • assets/a194a71f/css/myadmintheme.css
  • assets/a194a71f/scripts/myadmintheme.js
TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)6.12.0+250310
I will donate to the project if issue is resolvedNo
BrowserAny
Database type & versionAny
Server OS (if known)Any
Webserver software & version (if known)Apache 2.4
PHP Version8.2

Users monitoring this issue

tassoman

Activities

DenisChenu

DenisChenu

2025-04-01 17:04

developer   ~82358

Do you try to reset assets cache ?
(button on General setting)

tassoman

tassoman

2025-04-01 17:10

reporter   ~82359

Yes, of course. Noted as step n.7

DenisChenu

DenisChenu

2025-04-01 17:34

developer   ~82360

Oups , sorry :)

And if you put in scripts directory ?
https://github.com/LimeSurvey/LimeSurvey/tree/master/themes/survey/vanilla/scripts

(Seems to be a manual issue)

tassoman

tassoman

2025-04-02 11:11

reporter   ~82361

Well I guess it works. But why to have xml element named files.js.filename while it's files.scripts.filename ? The surveys theme config.xml works flawless, this is messy.
Second question, considering a development environment, assuming config debug => 1 could be admin theme assets rebuilding avoided?
Kind of 'force_xmlsettings_for_survey_rendering' => true, situation.
Thanks for caring

DenisChenu

DenisChenu

2025-04-02 12:28

developer   ~82362

For question : ask original developer
https://www.limesurvey.org/manual/Optional_settings use_asset_manager => 1

Issue History

Date Modified Username Field Change
2025-04-01 15:14 tassoman New Issue
2025-04-01 16:00 tassoman Issue Monitored: tassoman
2025-04-01 16:00 tassoman Bug heat 0 => 2
2025-04-01 17:04 DenisChenu Note Added: 82358
2025-04-01 17:04 DenisChenu Bug heat 2 => 4
2025-04-01 17:10 tassoman Note Added: 82359
2025-04-01 17:10 tassoman Bug heat 4 => 6
2025-04-01 17:34 DenisChenu Note Added: 82360
2025-04-02 11:11 tassoman Note Added: 82361
2025-04-02 12:28 DenisChenu Note Added: 82362