Author Topic: PHP Fatal error: Class 'Mail_mime' not found  (Read 11448 times)

Offline JohnnyKing94

  • Newbie
  • *
  • Posts: 4
PHP Fatal error: Class 'Mail_mime' not found
« on: March 01, 2016, 01:26:46 PM »
Since i cannot post a bug on the bug tracker (registration disabled), i try here. I'm using the git master version and i met this error on the postfix.log

This happens only when i try to send an email with roundcube...
Code: [Select]
Mar  1 18:33:50 server roundcube: PHP Catchable fatal error:  session_regenerate_id(): Failed to create(read) session ID: user (path: /var/lib/php/sessions) in /opt/www/roundcubemail-git/program/lib/Roundcube/rcube_session.php on line 436
Mar  1 18:40:26 server roundcube: PHP Fatal error:  Uncaught Error: Class 'Mail_mime' not found in /opt/www/roundcubemail-git/program/steps/mail/sendmail.inc:361#012Stack trace:#012#0 /opt/www/roundcubemail-git/index.php(291): include_once()#012#1 {main}#012  thrown in /opt/www/roundcubemail-git/program/steps/mail/sendmail.inc on line 361

Consider i'm using the PHP 7 with Apache 2.4...

Offline alec

  • Hero Member
  • *****
  • Posts: 1,365
Re: PHP Fatal error: Class 'Mail_mime' not found
« Reply #1 on: March 01, 2016, 03:00:00 PM »
For PHP7 you need Roundcube 1.2.

Offline JohnnyKing94

  • Newbie
  • *
  • Posts: 4
Re: PHP Fatal error: Class 'Mail_mime' not found
« Reply #2 on: March 01, 2016, 03:31:37 PM »
As I said i'm using the github version of roundcube (the last one, 1.2-git)...


Offline JohnnyKing94

  • Newbie
  • *
  • Posts: 4
Re: PHP Fatal error: Class 'Mail_mime' not found
« Reply #3 on: March 01, 2016, 03:35:34 PM »
Besides both "sendmail.inc" files (from the 1.2 released on november and from the 1.2-git) match, so the error doesn't change...

Offline alec

  • Hero Member
  • *****
  • Posts: 1,365
Re: PHP Fatal error: Class 'Mail_mime' not found
« Reply #4 on: March 02, 2016, 02:14:38 AM »
Most likely you didn't install dependencies (/vendor directory). As for the session error this is your php installation issue. Looks like php can't write to /var/lib/php/sessions.

Offline JohnnyKing94

  • Newbie
  • *
  • Posts: 4
Re: PHP Fatal error: Class 'Mail_mime' not found
« Reply #5 on: March 02, 2016, 08:22:55 AM »
Ok resolved, i forgot to enable the session module for PHP xD :P