Skip to content

[3.0.0-rc1] Deprecated warnings in setup #15988

@alexsoin

Description

@alexsoin

Bug report

Summary

During installation, after passing the database check, an error is shown:

(link of the page where the error is shown https://url.com/setup/?action=database)

Deprecated: Return type of xPDO\xPDOMap::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/public_html/core/vendor/xpdo/xpdo/src/xPDO/xPDOMap.php on line 33 
Deprecated: Function strftime() is deprecated in /home/public_html/setup/includes/modinstall.class.php on line 479
Deprecated: Function strftime() is deprecated in /home/public_html/setup/includes/modinstall.class.php on line 203
Warning: Cannot modify header information - headers already sent by (output started at /home/public_html/core/vendor/xpdo/xpdo/src/xPDO/xPDOMap.php:16) in /home/public_html/setup/includes/request/modinstallrequest.class.php on line 228 

Environment

MODX version 3.0.0-rc1
I tried to install both on PHP 7.4 and on 8.1

Download the installer from here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThe issue in the code or project, which should be addressed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions