RaspAP/raspap-webgui

[Bug]: Parse error

Closed this issue · 7 comments

Code of Conduct

  • I agree to follow this project's Code of Conduct.

Issue reporting checklist

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."

Image

See this #1788

Hi

Thanks for the info, but that's already defined. I still get the message.

Image

@billz can you help pls?

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?