Author Topic: Trouble sending email: Mail_mime::getHTMLBody() undefined  (Read 4260 times)

Offline colindean

  • Newbie
  • *
  • Posts: 3
    • http://cad.cx
Trouble sending email: Mail_mime::getHTMLBody() undefined
« on: October 20, 2011, 04:29:02 PM »
Hey all, long time RoundCube user here.

I recently upgraded an installation from 0.2 to 0.6. Upgrade process went fine with a few hiccups, but I'm still trying to track down a problem.

When I attempt to send an email, the message never sends. When I check the syslog, this is what I see:

Code: [Select]
Oct 20 16:02:18 convoy roundcube: PHP Fatal error:  Call to undefined method Mail_mime::getHTMLBody() in /usr/share/roundcube-webmail/program/steps/mail/sendmail.inc on line 102

Now, I know that Mail_mime is installed. I just installed PEAR via ye olde go-pear.phar and installed all of the dependencies. I ditched the Ubuntu 8.04 (what I'm stuck on at the moment) repo version to do this.

Code: [Select]
[colin@convoy roundcubemail-0.6-dep]$ pear list
Installed packages, channel pear.php.net:
=========================================
Package          Version State
Archive_Tar      1.3.7   stable
Auth_SASL        1.0.6   stable
Console_Getopt   1.3.0   stable
MDB2             2.5.0b2 beta
Mail_Mime        1.8.2   stable
Net_IDNA2        0.1.1   beta
Net_SMTP         1.6.1   stable
Net_Socket       1.0.10  stable
PEAR             1.9.4   stable
Structures_Graph 1.0.4   stable
XML_Util         1.2.1   stable


Moreover, I verified the include path to be /usr/share/pear and here's a grep on the file:

Code: [Select]
[colin@convoy roundcube]$ grep -C 5 -H -n getHTML /usr/share/pear/Mail/mime.php
/usr/share/pear/Mail/mime.php-300-     *
/usr/share/pear/Mail/mime.php-301-     * @return string HTML body
/usr/share/pear/Mail/mime.php-302-     * @access public
/usr/share/pear/Mail/mime.php-303-     * @since 1.6.0
/usr/share/pear/Mail/mime.php-304-     */
/usr/share/pear/Mail/mime.php:305:    function getHTMLBody()
/usr/share/pear/Mail/mime.php-306-    {
/usr/share/pear/Mail/mime.php-307-        return $this->_htmlbody;
/usr/share/pear/Mail/mime.php-308-    }
/usr/share/pear/Mail/mime.php-309-
/usr/share/pear/Mail/mime.php-310-    /**


What could be the matter, here? I'm trying to use the GPL package for great justice but I'd rather not have to try the full package just because I've already chosen this path and would like to solve it if possible.

The obligatory:

Code: [Select]
[colin@convoy roundcubemail-0.6-dep]$ php -v
PHP 5.2.4-2ubuntu5.18 with Suhosin-Patch 0.9.6.2 (cli) (built: Oct 15 2011 15:36:15)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,882
    • SKaero - Custom Roundcube development
Trouble sending email: Mail_mime::getHTMLBody() undefined
« Reply #1 on: October 20, 2011, 09:03:28 PM »
Just a guess but pear maybe being block by open_basedir restrictions.

zaralansss

  • Guest
Trouble sending email: Mail_mime::getHTMLBody() undefined
« Reply #2 on: October 20, 2011, 09:30:48 PM »
Hey guy,Glad to see you again, you've always brings us something different, so I always remember you. I want to be god make let me see you again. It will focus on your dynamic!!!!!!!!!!







Ralph Lauren Polo Shirts
Green Weight Loss Tea
green slimming
meizitang slimming pillss

Offline colindean

  • Newbie
  • *
  • Posts: 3
    • http://cad.cx
Trouble sending email: Mail_mime::getHTMLBody() undefined
« Reply #3 on: October 21, 2011, 12:26:26 PM »
I'm disinclined to believe that that may be the case. Other PEAR libraries are able to be opened and used. Moreover, if I understand the error message correctly, it seems that PHP is able to find the Mail_mime class, but the method getHTMLBody() isn't defined within the class.

Offline colindean

  • Newbie
  • *
  • Posts: 3
    • http://cad.cx
Trouble sending email: Mail_mime::getHTMLBody() undefined
« Reply #4 on: October 23, 2011, 09:17:04 PM »
Any further thoughts on this?

Offline alec

  • Hero Member
  • *****
  • Posts: 1,365
Trouble sending email: Mail_mime::getHTMLBody() undefined
« Reply #5 on: October 24, 2011, 02:14:11 AM »
You did an upgrade from 0.2. Maybe you have some old versions of PEAR packages (provided with Roundcube) still in include path.