Skip to content

[2.1.7]: "Cannot use bool as array" Session.php:159 #9168

@Geremia

Description

@Geremia

Basic Information

I get tons of errors from Guest users:

Image

I can fix this problem by disabling database-driven sessions (at index.php?action=admin;area=serversettings#databaseSession_enable).

Steps to reproduce

  1. Make sure database driven sessions are enabled.
  2. Access the site as a Guest (with no JavaScript so PHPSESSID is used in URL).

👀:

list ($sess_data) = $smcFunc['db_fetch_row']($result);

Version/Git revision

2.1.7

Database Engine

PostgreSQL

Database Version

PostgreSQL (libpq) Version 15.17

PHP Version

PHP Version 8.5.4

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions