Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
adri-k opened this issue Mar 20, 2023 · 0 comments
Closed

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

adri-k opened this issue Mar 20, 2023 · 0 comments

Comments

@adri-k
Copy link

adri-k commented Mar 20, 2023

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);

@adri-k adri-k changed the title Qurantine doesn't work using PHP 8.1 MailWatch: Quarantine list display doesn't work using PHP 8.1 Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant