Skip to content

[FIXED] ReferenceError: rl is not defined #1968

@QuentiumYT

Description

@QuentiumYT

Describe the bug
When running the app from source (up to date 16/06/2025), the following error appears:

Uncaught ReferenceError: rl is not defined
    at (index):16:1

After some investigation, turning JavaScript debug to On resolve this issue. Without that, the JS seems to stop loading (boot.js is not loaded)

[debug]
; Special option required for development purposes
enable = Off
javascript = On
css = Off

To Reproduce
Steps to reproduce the behavior:

  1. Clone the repo
  2. Run gulp and build
  3. Have javascript = Off in application.ini config
  4. Start a PHP server for exemple in the root directory
  5. Open the web console
  6. See error because page didn't load successfully

Expected behavior
It should work by displaying the login page

Screenshots

Image

Please complete the following information:

  • Browser: Chrome 137
  • IMAP daemon: [e.g. courier, dovecot]
  • PHP version: 8.4.7
  • SnappyMail Version: master (0.0.0)
  • Mode: standalone (php server)

Debug/logging information
Nothing alarming

[2025-06-16 18:25:44.189][1cbb737e] [DEBUG]: [SM:0.0.0][IP:127.0.0.1][PID:14236][PHP/8.4.8 (Development Server)][cli-server][Streams:tcp,udp,ssl,tls,tlsv1.0,tlsv1.1,tlsv1.2,tlsv1.3][GET http://mail:466/]
[2025-06-16 18:25:44.301][1cbb737e] [DEBUG]: Memory peak usage: 4MB
[2025-06-16 18:25:44.302][1cbb737e] [DEBUG]: Time delta: 0.21018695831299
[2025-06-16 18:25:45.854][c7e1fd5d] [DEBUG]: [SM:0.0.0][IP:127.0.0.1][PID:14236][PHP/8.4.8 (Development Server)][cli-server][Streams:tcp,udp,ssl,tls,tlsv1.0,tlsv1.1,tlsv1.2,tlsv1.3][GET http://mail:466/logo.png]
[2025-06-16 18:25:45.980][c7e1fd5d] [DEBUG]: Memory peak usage: 4MB
[2025-06-16 18:25:45.981][c7e1fd5d] [DEBUG]: Time delta: 0.16530013084412
  • I've placed them here (few lines) or as attachments (many lines)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions