Author Topic: No mail notification 3.2.3  (Read 3402 times)

dTi

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
No mail notification 3.2.3
« on: August 30, 2015, 08:11:49 AM »
Hello. I have a problem with mail notification, when creating new event.
My config: FreeBSD 10.2 / PHP 5.6 / MySQL 5.6 / FengOffice 3.2.3.

In mail settings I've fill correct data, test my main settings. I've received mail. Good.
But when I create new enent (with checked mail notification), notification didn't come.

I've check "Notification by mail, by cron" in global setting, add cron.php to OS cron but nothing is happened.

Can you help me with this problem?

winhex

  • Freshman
  • *
  • Posts: 16
    • View Profile
Re: No mail notification 3.2.3
« Reply #1 on: February 06, 2017, 09:44:32 AM »
Hello! I have a similar problem. No any e-mail notification in FO  3.4.4.1
I have my own mail server that works well with FO 2.2.2. FO 2.2.2 is installed on the same Web-server with FO 3.4.4.1
When I send a test message to the FO 3.4 I have a  Error 500: Internal Server Error. Mail Settings absolutely correct.
in the log.php, I found the following error:
Code: [Select]
Session "default" started at 2017-02-03T14:59:48+0000
#1 ERROR: Error: mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in '/var/www/fengoffice/environment/library/database/adapters/MysqlDBAdapter.class.php' on line 28 (error code: 8192)
#2 ERROR: Error: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in '/var/www/fengoffice/application/functions.php' on line 36 (error code: 8192)
#3 ERROR: Error: Undefined variable: default_mailer in '/var/www/fominhextk/application/models/notifier/Notifier.class.php' on line 1479 (error code: 8)
Time since start: 0.36066293716431 seconds

How to resolve this problem?
« Last Edit: February 06, 2017, 09:58:13 AM by winhex »

winhex

  • Freshman
  • *
  • Posts: 16
    • View Profile
Re: No mail notification 3.2.3
« Reply #2 on: February 08, 2017, 04:36:23 AM »
Any ideas?

peteman52

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: No mail notification 3.2.3
« Reply #3 on: February 09, 2017, 12:33:45 AM »
In file "/var/www/fominhextk/application/models/notifier/Notifier.class.php" change

line 1434: $mailer = self::getMailer();

to

                  $default_mailer = self::getMailer();
      $mailer         = $default_mailer;

winhex

  • Freshman
  • *
  • Posts: 16
    • View Profile
Re: No mail notification 3.2.3
« Reply #4 on: February 09, 2017, 08:28:34 AM »
In file "/var/www/fominhextk/application/models/notifier/Notifier.class.php" change

line 1434: $mailer = self::getMailer();

to

                  $default_mailer = self::getMailer();
      $mailer         = $default_mailer;

Thank for your answer, Error 500 disappeared, and test messages are sent perfectly. But  I create a task, write a comment or do anything else - but no any notifications.
But I have another error in log.php
When I create new task:
Code: [Select]
Session "default" started at 2017-02-06T09:43:08+0000
#1 ERROR: Error: mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in '/var/www/fominhextk/environment/library/database/adapters/MysqlDBAdapter.class.php' on line 28 (error code: 8192)
Time since start: 0.032985210418701 seconds
when I create comment in this task:
Code: [Select]
ERROR: Error: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in '/var/www/fominhextk/library/html2text/class.html2text.inc' on line 422 (error code: 8192)
In some of the latest versions don't have this problem?
« Last Edit: February 09, 2017, 08:37:48 AM by winhex »

peteman52

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: No mail notification 3.2.3
« Reply #5 on: February 09, 2017, 09:01:59 AM »
Do you use a Linux server or a Windows server?

If you do use a Linux server type in a terminal :  php -v

If you are not using PHP 7 in my opinion you may ignore these messages.

If you are using PHP 7 you should not have come as far as you obviously are.

If you use PHP 7, for the mysql-error see "http://usysto.net/php-7-mit-alten-mysql-funktionen_325"
Again, if you use PHP 7, for the preg-replace error see "http://php.net/manual/de/migration55.deprecated.php"

If you are using a Windows server in my opinion it should be similar.

I myself use a Linux server (Ubuntu 16.04.01 with Apache/2.4.18, feng office 3.4.4.1, PHP 7.0.13, mysql Ver 14.14 Distrib 5.7.17) and had to modify until now 256 files of 3048 php-files and one *.inc file for porting to PHP 7 and now at least feng office 3.4.4.1 runs smoothly. So good luck!



 

anything
anything