[Bug]: Parse error
Closed this issue · 7 comments
Code of Conduct
- I agree to follow this project's Code of Conduct.
Issue reporting checklist
- I have read and understand the issue reporting policy.
- I observed this bug on a clean install of a supported OS.
- I have followed the project prerequisites.
- I have searched this repository for existing issues.
- I checked the FAQ and official documentation.
- I am using an external wireless adapter.
- I have generated a RaspAP debug log and performed a self-diagnosis.
Operating System
Debian Bookworm
Installation method
Quick install
Onboard wireless chipset or external adapter?
Onboard wireless chipset
Hardware
Raspberry Pi 4 Model B
RaspAP version
Latest
Other software or services running with RaspAP?
No other software
Contact details (optional)
No response
Bug description
RaspAP Exception
An exception occurred
Stack trace:
ParseError: syntax error, unexpected '=>' (T_DOUBLE_ARROW)
at {closure}(Dashboard.php:30)
at spl_autoload_call(Unknown Source)
at DisplayDashboard(dashboard.php:14)
at handleCorePageAction(page_actions.php:26)
at require_once(page_actions.php:12)
at (main)(index.php:119)
Steps to reproduce
after the update
Screenshots
No response
Additional context
No response
Relevant log output
[2025-03-24 23:16:06] syntax error, unexpected '=>' (T_DOUBLE_ARROW) in /var/www/html/src/RaspAP/UI/Dashboard.php on line 30
this is line 30
class Dashboard {
private string $firewallConfig;
public function __construct() {
$this->firewallConfig = RASPI_CONFIG.'/networking/firewall.conf';
}
/*
* Returns the management page for an associated VPN
*
* @param string $interface
* @return string
*/
public function getVpnManged(?string $interface = null): ?string
{
return match ($interface) {
'wg0' => '/wg_conf',
'tun0' => '/openvpn_conf',
'tailscale0' => '/plugin__Tailscale',
default => null,
};
}
I did this with the PHP 7.4 fix.
This: 20fe5fc
Now I keep getting the message "The session has expired."
I have now reinstalled the entire system and reinstalled raspap, now there is also an error message with the session
Why not simply use a pre-built custom OS with RaspAP?

