Migrating 2 to 3.0.6: Could not instantiate mail function

Questions & Problems about Installing or Upgrading with Version 3 phpList.
Forum rules
Please help the volunteers to help you by supplying the version of phpList you are using, browser & version and if possible, a link to your phpList installation.

Migrating 2 to 3.0.6: Could not instantiate mail function

Postby gertve » 12:26pm, Wed 30 Jul, 2014

After upgrading from version 2 to 3.0.6 the software is not quite stable.
Upgrade file was taken from the download page and upgrade instructions were followed from http://www.phplist.com/download

Queuing and requesting to process (with embargo in the near future ) to send a testmail to list of 36 email adresses in batches of 30 emails, processes only 30 emails which all end up in the log file stating Error sending email to somebodyATsomesite.net Could not instantiate mail function.

Then requested a resume processing after above had happened, it reports sending in goups of 30 emails and waits probably indefinitely at this point. Only requesting 'Process Queue' on the (second) Log screen brings the process a bit further, producing log records:
Finished this run
15 failed (will retry later)
Processed 15 out of 15 subscribers
Still some emails were received.

Testing the batchprocessing that we normally used (2.10.18) for our 3000 recipients list, also does not do the job. Cron job is:

/usr/local/bin/php /home/landferi/public_html/linde.net/lists/admin/index.php -p processqueue -c /home/landferi/public_html/linde.net/lists/config/config.php

The -c part was added since 3.0.6 because the config.php file could not be found without it.

It produces the following messages:
- ONCE -
phpList version 3.0.6 (c) 2000-2014 phpList Ltd, http://www.phplist.com PHPlist - Recently sent : 0 PHPlist - Started [0.0037900000] (84) PHPlist - Sending in batches of 30 emails [0.0002540000] (85) PHPlist - Processing has started, 1 message(s) to process. [0.0023590000] (89) PHPlist - Processing message 107 [0.0054490000] (104) PHPlist - Looking for subscribers [0.0019750000] (109) PHPlist - Found them: 36 to process [0.0038270000] (115) PHPlist - Processing batch of: 30 [0.0026940000] (119)
- For every address -
2014-07-29 12:15:03 Cannot open main log file "/var/log/exim_mainlog": No such file or directory: euid=0 egid=32003
2014-07-29 12:15:03 cwd=/home/landferi/public_html/linde.net/lists/admin 4 args: /usr/sbin/sendmail -t -i -flistbounces@landferienhaus-linde.net
2014-07-29 12:15:03 Cannot open main log file "/var/log/exim_mainlog": No such file or directory: euid=0 egid=32003
exim: could not open panic log - aborting: see message(s) above PHPlist - Error sending message 107 (1/30) to somebodyATsomesite.net (somebodyATsomesite.net) [1.2096590000] (165) PHPlist - sent 0 ETA Unknown sending 0 msg/hr

This might be the same error source as the 'Could not instantiate mail function' I suppose.

My ISPs configuration data:
-----------------------------------
Apache version 2.2.23
PHP version 5.3.17
MySQL version 5.1.73-cll-lve
Architecture x86_64
Operating system linux
Shared IP Address 109.71.48.9
Path to sendmail /usr/sbin/sendmail
Kernel version 2.6.18-471.3.1.el5.lve0.8.72
gertve
phpLister
 
Posts: 7
Joined: 10:32am, Mon 04 Oct, 2010
Location: Germany

Re: Migrating 2 to 3.0.6: Could not instantiate mail functio

Postby duncanc » 8:05am, Thu 31 Jul, 2014

The various exim messages indicate a problem with your mail server
exim: could not open panic log - aborting:

You will need to raise the problem with your hosting company.
duncanc
Moderator
 
Posts: 2440
Joined: 6:34am, Sat 08 May, 2010
Location: London

Re: Migrating 2 to 3.0.6: Could not instantiate mail functio

Postby gertve » 8:33am, Fri 01 Aug, 2014

I checked this with my ISP.
They tell me that PHP-List ist trying to access the file /var/log/exim_mainlog itself, to which it has no rights.

I cannot judge this for myself. So my questions are at this point:

1. Is it true that php-list is trying to access the file /var/log/exim_mainlog ? If not how can we prove otherwise?

2. Has the method of sending e-mails changed since 2.10.18? because that always worked.

3. Is the method of sending e-mails a configurable option? If so where and how.

Thanks for any help.
gertve
phpLister
 
Posts: 7
Joined: 10:32am, Mon 04 Oct, 2010
Location: Germany

Re: Migrating 2 to 3.0.6: Could not instantiate mail functio

Postby duncanc » 9:00am, Fri 01 Aug, 2014

The method of sending email is controlled by this setting in your config.php file
Code: Select all
# if you have an SMTP server, set it here. Otherwise it will use the normal php mail() function
## if your SMTP server is called "smtp.mydomain.com" you enter this below like this:
##
##     define("PHPMAILERHOST",'smtp.mydomain.com');

define("PHPMAILERHOST",'');

If you copied the file from your 2.10.x version to the latest then that should not have changed.

Possibly you have switched from using an SMTP server to using the php mail() function. But even so, the exim errors suggest that php, not phplist, has not been configured correctly for sending email.
duncanc
Moderator
 
Posts: 2440
Joined: 6:34am, Sat 08 May, 2010
Location: London

Re: Migrating 2 to 3.0.6: Could not instantiate mail functio

Postby gertve » 11:23am, Fri 01 Aug, 2014

Thank you for replying duncanc

I checked my lists/config/config.php files in the backup of 2.10.18 as well as in 3.0.6

Bothe have left PHPMAILERHOST blank and both phpmailer_ variables undefined.
So the default PHP mail() function was used in 2.10.18 as well as in 3.0.6

Last mailing sent with 2.10.18 was on 2014-05-31 22:05:26
So according to your answer the configuration of PHP must have been altered since then.

I will check with my ISP again an see what they have to bring forward.

Regards Gert
gertve
phpLister
 
Posts: 7
Joined: 10:32am, Mon 04 Oct, 2010
Location: Germany


Return to Installing and Upgrading

Who is online

Users browsing this forum: No registered users and 1 guest