Skip to content

Suppress Deprecation message: #3376

Description

@bhlevca

This is for reporting bugs with the code, if this issue is regarding setting up on your local server please use the forum see readme for details

Describe the bug
A clear and concise description of what the bug is.

At load time if the PHP version is > 7.1, the following message appears in several places on the dashboard:

A PHP Error was encountered
Severity: 8192
Message: ini_set(): session.sid_length INI setting is deprecated
Filename: Session/Session.php
Line Number: 356

To Reproduce
Steps to reproduce the behaviour:
Install a PHP version >7.2

Expected behaviour
A clear and concise description of what you expected to happen.

No error messages on the screen

Desktop (please complete the following information):

  • OS: opensuse tumbleweed
  • Browser: Brave
  • server: raspberrypi 5/RaspberryOS

Additional context

in Session/Session.php replace line 356 ini_set('session.sid_length', (string) $params['sid_length']);

with

if (version_compare(PHP_VERSION, '7.1', '<')) {
       @ini_set('session.sid_length', (string) $params['sid_length']);
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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