•  
      request #10991 browse all project fails, exception in nginx log: Mustache_Exception_UnknownVariableException .. Unknown variable: current_category
    Infos
    #10991
    Thomas Konzett (toko789)
    2018-07-11 08:45
    2018-01-09 08:39
    11321
    Details
    browse all project fails, exception in nginx log: Mustache_Exception_UnknownVariableException .. Unknown variable: current_category
    In a quite fresh installation (on a fresh patched centOS machine) I get the following error, since I did delete the predefined project categories and added my own ones. I have added only one testing project so far and that one doesn't have the old categories assigned, for sure (and the pre-defined ones have no categories too).

    When we open the menu Projects -> Browse all (link: /softwaremap/trove_list.php) then we get the following error in the nginx/error.log:

    2018/01/09 08:29:26 [error] 2008#0: *1 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught exception 'Mustache_Exception_UnknownVariableException' with message 'Unknown variable: current_category' in /usr/share/tuleap/src/vendor/mustache/mustache/src/Mustache/Context.php:245
    Stack trace:
    #0 /usr/share/tuleap/src/vendor/mustache/mustache/src/Mustache/Context.php(102): Mustache_Context->findVariableInStack('current_categor...', Array)
    #1 /var/tmp/tuleap_cache/template_engine/__Mustache_ed2f43f5776a7acdcfc6f1258a4ac65d.php(60): Mustache_Context->find('current_categor...')
    #2 /usr/share/tuleap/src/vendor/mustache/mustache/src/Mustache/Template.php(73): __Mustache_ed2f43f5776a7acdcfc6f1258a4ac65d->renderInternal(Object(Mustache_Context))
    #3 /usr/share/tuleap/src/vendor/mustache/mustache/src/Mustache/Engine.php(244): Mustache_Template->render(Object(Tuleap\Trove\SoftwareMapPresenter))" while reading upstream, client: 192.168.100.172, server: board.ps.local, request: "GET /softwaremap/trove_list.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "board.ps.local", referrer: "https://board.ps.local/my/"
    2018/01/09 08:29:26 [error] 2008#0: *1 FastCGI sent in stderr: "
    #4 /usr/share/tuleap/src/common/templating/mustache/MustacheRenderer.class.php(65): Mustache_Engine->render('software_map', Object(Tuleap\Trove\SoftwareMapPresenter))
    #5 /usr/shar" while reading upstream, client: 192.168.100.172, server: board.ps.local, request: "GET /softwaremap/trove_list.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "board.ps.local", referrer: "https://board.ps.local/my/"


    Maybe one has an idea?
    Other
    9.16
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Closed
    2018-07-11
    Attachments
    Empty
    References
    Referencing request #10991
    Referenced by request #10991

    Follow-ups

    User avatar
    Hi, thx for the follow-up in light-velocity. Restart service or full machine showed still the same. The query output:

    mysql> SELECT trove_cat_id, fullpath FROM trove_cat;
    +--------------+-----------------------------------------+
    | trove_cat_id | fullpath |
    +--------------+-----------------------------------------+
    | 13 | Type :: Tec :: Hosting |
    | 14 | Type :: Tec :: Internal |
    | 4 | Type :: Tec |
    | 5 | Type :: Development |
    | 6 | Type :: Organizational |
    | 7 | Type :: Teamboards |
    | 8 | Type :: Development :: Customer Project |
    | 9 | Type :: Development :: Internal Project |
    | 10 | Type :: Development :: Products |
    | 15 | Size |
    | 16 | Size :: Size: S |
    | 17 | Size :: Size: M |
    | 18 | Size :: Size: L |
    | 19 | Size :: Size: XL |
    | 20 | Type |
    +--------------+-----------------------------------------+
    15 rows in set (0.01 sec)

    .. I have "Size: M" as name... that colon maybe the reason?
    User avatar
    Thomas Gerbet (tgerbet)2018-01-09 08:51
    Hello,

    Can you try to refresh the Tuleap caches by restarting the Tuleap service (service tuleap restart). If the issue is still present can you please give the result of the following SQL query:
    SELECT trove_cat_id, fullpath FROM trove_cat;

    • Status changed from New to Acknowledged