Skip to content

[BUG] mod.php does NOT respect $config['board_path'] when managing boards #977

@hustlerone

Description

@hustlerone

Describe the bug

When managing a board, mod.php tries to access ./BOARD/manage/thread/XXXX.html instead of ./$config['board_path']/BOARD/manage/thread/XXXX.html, thus making it impossible to use on my setup.

Steps to Reproduce

1. Set $config['board_path'] to any subdir
2. Install vichan like normal
3. Try to manage a board (could be /b/ or anything, doesn't matter)
4. Enjoy a `Page not found!' error or an `Invalid board' error.

Expected Behavior

Being able to manage a board stored in a subdir

Server Specifications

- OS: `Linux 6.16.9, NixOS, 25.11 (Xantusia), 25.11.20251002.7df7ff7`
- Architecture: `x86_64-linux`
- Vichan rev: `2c57e84ac5f1bd85dcb5a2dfb44b2d287c290b09`
- Nixpkgs rev: `7df7ff7d8e00218376575f0acdcc5d66741351ee`
- PHP package: `php82` (PHP 8.2.29)
- Web server: `openresty` (Openresty 1.27.1.2)
- Database: `mariadb` (MariaDB 10.11.14)

Additional Context

The files rest onto a read-only filesystem unless they are to be generated by a user. If said file(s) or folders must be changed at runtime, they are substituted with a symlink that points to the real ones outside of the web server's working directory (which rests on a read-only filesystem).

Not having mod.php respect `$config['board_path']` makes it impossible to manage boards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions