• We have used BackWPUp for a long time and appears to work okay on WordPress 6 even though it shows not to be tested. We are migrating to PHP 8.1 as a result of the upcoming EOL for PHP 7.4 we are now running. Doing a backup on our development server after the upgrade, we are seeing the following deprecated notices from PHP…

    DEPRECATED: Return type of Requests_Cookie_Jar::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

    Will this plugin be updated to fully support PHP 8.1 and show tested with WordPress 6?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter wmnf

    (@wmnf)

    After doing a complete backup with PHP 8.1, we see other DEPRECATED messages as well I’m sure you’ll see. We use the AWS upload for storing backups and see same messages regarding AWS code. However, there are some Warnings as well…

    WARNING: Trying to access array offset on value of type null
    Backup transferred to https://wmnf.s3.amazonaws.com/wp-content/file_backups/wmnf/staging_wmnf_www_2022-10-22_12-16-19_5PSMNZQH01.zip.
    DEPRECATED: Return type of Aws\ResultPaginator::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
    DEPRECATED: Return type of Aws\ResultPaginator::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
    DEPRECATED: Return type of Aws\ResultPaginator::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
    DEPRECATED: Return type of Aws\ResultPaginator::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
    DEPRECATED: Return type of Aws\ResultPaginator::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
    WARNING: Trying to access array offset on value of type null

    Not sure if these Warnings would cause issue with the backups and hinder restore?

    Plugin Support happyAnt

    (@duongcuong96)

    Hello @wmnf
    Could you try running BackWpUp with PHP 8.0 instead? BackWPUp and even WordPress itself does not fully compatible with the latest PHP 8.1 yet.
    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP 8.1 deprecated code’ is closed to new replies.