Mantis 1.1.6 requires phpmailer 1.73

Bug #360809 reported by Micah Gersten
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mantis
Fix Released
Unknown
mantis (Debian)
Fix Released
Undecided
Unassigned
mantis (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Binary package hint: mantis

This error occurs with phpmailer 2.1:
Fatal error: Cannot access private property PHPMailer::$smtp in /usr/share/mantis/www/core/email_api.php on line 805

phpmailer 2.1 is the PHP 5 version which enforces class member privileges.

Mantis 1.2 has removed the offending code that relied upon PHP not enforcing class member privacy.

The easiest solution is to require phpmailer 1.73 for Mantis 1.1.6. The problem is that 2.1 is the only version available in jaunty. Should we suggest the PHP 5 version of phpmailer have a different name? Or, can we have libphp-phpmailer-1.73?

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 9.04
MediaBuild: Xubuntu 8.10 "Intrepid Ibex" - Release amd64 (20081030.3)
NonfreeKernelModules: fglrx
Package: mantis 1.1.6+dfsg-2
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: mantis
Uname: Linux 2.6.28-11-generic x86_64

Related branches

Revision history for this message
Micah Gersten (micahg) wrote :
Changed in mantis (Debian):
status: Unknown → New
Changed in mantis:
status: Unknown → Fix Released
Revision history for this message
Nathan Handler (nhandler) wrote :

After talking with ScottK on IRC, we feel that the best way to go about handling this bug is to patch mantis to use the version of phpmailer that is in Jaunty. Currently, no patch is available. If one can not be prepared in time for Jaunty release, it should be able to qualify for a SRU. I am subscribing motu-sru to this bug so that they are aware of this issue.

In the meantime, packaging phpmailer 1.73 and uploading it to a PPA should enable you to use mantis in Jaunty.

Revision history for this message
Andreas Moog (ampelbein) wrote :

debdiff attached. I took the necessary changes from the debian bugreport's comment 35 (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=501434#35). It is stated that this works flawlessly for him. A build with the patch included is currently waiting in the queue and will be available shortly via ppa https://edge.launchpad.net/~amoog/+archive/ppa/.

mantis (1.1.6+dfsg-2ubuntu1) jaunty; urgency=low

  * debian/patches
    - update all patches to apply cleanly
    - add 05-fix-phpmailer.patch to fix use with phpmailer 1.73
    (LP: #360809)

 -- Andreas Moog <email address hidden> Mon, 20 Apr 2009 01:51:50 +0200

Revision history for this message
Micah Gersten (micahg) wrote : Re: [Bug 360809] Re: Mantis 1.1.6 requires phpmailer 1.73

Andreas Moog wrote:
> debdiff attached. I took the necessary changes from the debian
> bugreport's comment 35 (http://bugs.debian.org/cgi-
> bin/bugreport.cgi?bug=501434#35). It is stated that this works
> flawlessly for him. A build with the patch included is currently waiting
> in the queue and will be available shortly via ppa
> https://edge.launchpad.net/~amoog/+archive/ppa/.
>
> mantis (1.1.6+dfsg-2ubuntu1) jaunty; urgency=low
>
> * debian/patches
> - update all patches to apply cleanly
> - add 05-fix-phpmailer.patch to fix use with phpmailer 1.73
> (LP: #360809)
>
> -- Andreas Moog <email address hidden> Mon, 20 Apr 2009 01:51:50 +0200
>
>
> ** Attachment added: "mantis_1.1.6+dfsg-2ubuntu1.debdiff"
> http://launchpadlibrarian.net/25768234/mantis_1.1.6%2Bdfsg-2ubuntu1.debdiff
>
>
The patch looks ok, but the purpose is to make it compatible with
PHPMailer 2.1, not 1.73.

Thanks,
Micah

Revision history for this message
Andreas Moog (ampelbein) wrote :

Arghs. Got slightly confused there, modified debdiff attached. Thanks for the hint. It's 2 AM here, I hope this qualifies as an excuse ;-)

Revision history for this message
Micah Gersten (micahg) wrote :

Andreas Moog wrote:
> Arghs. Got slightly confused there, modified debdiff attached. Thanks
> for the hint. It's 2 AM here, I hope this qualifies as an excuse ;-)
>
> ** Attachment added: "mantis_1.1.6+dfsg-2ubuntu1.debdiff"
> http://launchpadlibrarian.net/25768555/mantis_1.1.6%2Bdfsg-2ubuntu1.debdiff
>
> ** Attachment removed: "mantis_1.1.6+dfsg-2ubuntu1.debdiff"
> http://launchpadlibrarian.net/25768285/mantis_1.1.6%2Bdfsg-2ubuntu1.debdiff
>
>
Seems to fix the problem.
Thanks for the quick response.

Andreas Moog (ampelbein)
Changed in mantis (Ubuntu):
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mantis - 1.1.6+dfsg-2ubuntu1

---------------
mantis (1.1.6+dfsg-2ubuntu1) jaunty; urgency=low

  * debian/patches
    - update all patches to apply cleanly
    - add 05-fix-phpmailer.patch to fix use with phpmailer 2.1
      (LP: #360809)

 -- Andreas Moog <email address hidden> Mon, 20 Apr 2009 01:51:50 +0200

Changed in mantis (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Artur Rona (ari-tczew) wrote :

 mantis (1.1.8+dfsg-1) unstable; urgency=low

   [ Olivier Berger ]
   * New upstream version (Closes: #528192).
   * Apply patch from Andreas Moog, fixing ucf warning
     (Closes: #525369)
   * Add 05-fix-phpmailer.patch to make it work with phpmailer 2.1
     (Closes: #501434)
   * Remove documentation for soap restrictions because they are not anymore
   * Use nusoap from libnusoap-php instead of shipping embedded copy.
   * Restore SOAP server
   * Fix patch 01-use-libphp-phpmailer-instead-of-prepackaged-version.patch
     so that phpmailer works even when invoked from SOAP

   [ Patrick Schoenfeld ]
   * Merged and fixed changelog entries
   * Fix debian/watch
   * Update standards version; no changes needed
   * debian/changelog: Do not point to the symlinked license. Instead
     point to GPL2 and LGPL2 directly

 -- Patrick Schoenfeld <email address hidden> Sat, 27 Jun 2009 09:49:05 +0200

Changed in mantis (Debian):
importance: Unknown → Undecided
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.