Skip to content

MailWatch: Quarantine list display doesn't work using PHP 8.1 #1277

@adri-k

Description

@adri-k

Issue summary

Quarantine doesn't display.

Steps to reproduce

  1. Login to MailWatch
  2. Press Quarantine in the main menu.

Expected result

A list of all dates with quarantined messages.

Actual result

Empty screen with a PHP error message in apache httpd-error.log.

Installation

Version and method

  • MailWatch Version: [ stable 1.2.20 ]
  • Install type: [ Zip/tarball install ]
  • Updated from an older MailWatch or fresh install: [ Upgrade ] (from version [ 1.2.18 ])

Server configuration

  • Operation System: [ FreeBSD ] version [ 13.1-RELEASE-p7 ]
  • PHP version: [ 8.1 ]
  • Database: [ MySQL ] version [ 5.7.40 ]
  • Mail Server: [ Sendmail ]
  • Used web server: [ Apache ] version [ 2,4,56 ]

Client configuration

  • Operation System: [ Microsoft Windows ] version [ 11 ]
  • Browser: [ Google Chrome 111.0.5563.65 ]

Solution

quarantine.php, line 156: $msg_ids = implode($items, ',');
This syntax is no longer valid , starting with php 8.1.
Change to: $msg_ids = implode(',', $items);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions