Buglog -2.2.17 and no Ending mail_digests.php message - phpBB Digests
Re: Buglog -2.2.17 and no Ending mail_digests.php message
- luv
- Registered User
- Posts: 37
- Joined: Sat Jun 17, 2006 4:12 pm
Re: Buglog -2.2.17 and no Ending mail_digests.php message
- MarkDHamill
- Registered User
- Posts: 2117
- Joined: Fri Aug 02, 2002 12:36 am
- Location: Oak Hill, Virginia USA
Re: Buglog -2.2.17 and no Ending mail_digests.php message
- luv
- Registered User
- Posts: 37
- Joined: Sat Jun 17, 2006 4:12 pm
Re: Buglog -2.2.17 and no Ending mail_digests.php message
Line 255 did read:
- Code: Select all
function send($method = NOTIFY_EMAIL, $break = false)
Now Reads:
- Code: Select all
function send($method = NOTIFY_EMAIL, $break = false, $is_html = false, $is_digest = false)
Line 291 did read:
- Code: Select all
if (preg_match('#^(Subject:(.*?))$#m', $this->msg, $match))
Now Reads:
- Code: Select all
if (!$is_digest && preg_match('#^(Subject:(.*?))$#m', $this->msg, $match))
Line 314 did read:
- Code: Select all
$result = $this->msg_email();
Now REads:
- Code: Select all
$result = $this->msg_email($is_html);
Line 322 did read:
- Code: Select all
$result = $this->msg_email();
Now REads:
- Code: Select all
$result = $this->msg_email($is_html);
Line 379 did read:
- Code: Select all
function build_header($to, $cc, $bcc)
Now Reads:
- Code: Select all
function build_header($to, $cc, $bcc, $is_html = false)
Line 404 did read:
- Code: Select all
$headers[] = 'Content-Type: text/plain; charset=UTF-8'; // format=flowed
Now Reads:
- Code: Select all
$headers[] = ($is_html) ? 'Content-Type: text/html; charset=UTF-8' : 'Content-Type: text/plain; charset=UTF-8';
LIne 424 did read:
- Code: Select all
function msg_email()
Now Reads:
- Code: Select all
function msg_email($is_html=false)
Line 479 did read:
- Code: Select all
$headers = $this->build_header($to, $cc, $bcc);
Now reads:
- Code: Select all
$headers = $this->build_header($to, $cc, $bcc, $is_html);
Line 696 did read:
- Code: Select all
function process()
Now Reads:
- Code: Select all
function process($process_all=false)
Line 704> did read:
- Code: Select all
if (!$process_all)
{
if (!file_exists($this->cache_file) || filemtime($this->cache_file) > time() - $config['queue_interval'])
{
$this->unlock($lock_fp);
return;
}
}
Now Reads:
- Code: Select all
if (!$process_all)
{
if (!file_exists($this->cache_file) || filemtime($this->cache_file) > time() - $config['queue_interval'])
{
$this->unlock($lock_fp);
return;
}
}
Line 722 did read:
- Code: Select all
$num_items = (!$package_size || sizeof($data_ary['data']) < $package_size) ? sizeof($data_ary['data']) : $package_size;
Now reads (line 725):
- Code: Select all
$num_items = (!$package_size || sizeof($data_ary['data']) < $package_size || $process_all) ? sizeof($data_ary['data']) : $package_size;
Those are the only parts of the 3.0.9 clean/orig file and the current one that differ.
- luv
- Registered User
- Posts: 37
- Joined: Sat Jun 17, 2006 4:12 pm
Re: Buglog -2.2.17 and no Ending mail_digests.php message
- MarkDHamill
- Registered User
- Posts: 2117
- Joined: Fri Aug 02, 2002 12:36 am
- Location: Oak Hill, Virginia USA
Re: Buglog -2.2.17 and no Ending mail_digests.php message
I know it is beta and bugs are to be expected. Right now there's really no functionality though, for us on our board.
Do you have any suggestions on what I should do next? Uninstall the whole thing and go back to 2.2.16 from scratch?
Thanks for your help.
-Christi
- luv
- Registered User
- Posts: 37
- Joined: Sat Jun 17, 2006 4:12 pm
Re: Buglog -2.2.17 and no Ending mail_digests.php message
What is your email package size? I think the default is 20, which means that if 30 should go out the first 20 will and the next 10 will go into the queue, and that seems to be the problem (saving to the queue). I have to think the root of the problem is permissions for the cache, but if other cache files are in your cache directory I doubt that's the problem.
Changing line 149 to:
- Code: Select all
$messenger = new messenger(false);
will at least turn off the queue and make one digest go out at a time. If you do this comment the lines that save to the queue and process the queue.
- MarkDHamill
- Registered User
- Posts: 2117
- Joined: Fri Aug 02, 2002 12:36 am
- Location: Oak Hill, Virginia USA
Re: Buglog -2.2.17 and no Ending mail_digests.php message
Linux, GoDaddy Shared Hosting.
I'm afraid my noob is showing here but I'll do my best to answer the rest of your questions.
Using Sendmail. SMTP is not currentlly configured in my installation of phpBB3.
No idea how to find out my email package size. Suggestions on where to look?
I changed 149 to include the (false). I get no error when there is no digest to send and the same error when there is one to send. The digest seems to send but then errors and I never get the 'ending mail digests' message.
This is the chron report I get via email after the last send. One email was sent (this was proper) then it errored and did not end.
Hide<strong>Starting mail_digests.php</strong><br /><strong>A digest was sent to admin (removed) containing 15 posts and 0 private messages</strong><br /><br /> <b>Fatal error</b>: Call to a member function save() on a non-object in <b>/home/-snip-/html/phpBB3/mail_digests.php</b> on line <b>654</b><br />
- luv
- Registered User
- Posts: 37
- Joined: Sat Jun 17, 2006 4:12 pm
Re: Buglog -2.2.17 and no Ending mail_digests.php message
- MarkDHamill
- Registered User
- Posts: 2117
- Joined: Fri Aug 02, 2002 12:36 am
- Location: Oak Hill, Virginia USA
Re: Buglog -2.2.17 and no Ending mail_digests.php message
- Code: Select all
/*
if (sizeof($rowset) > 0)
{
$messenger->queue->save(); // Writes the queue to disk. Seems to be necessary
$messenger->queue->process(true); // Send everything in the queue, even if it is over the limit.
}
*/
AND line 149 should read
- Code: Select all
$messenger = new messenger(false);
- luv
- Registered User
- Posts: 37
- Joined: Sat Jun 17, 2006 4:12 pm
Re: Buglog -2.2.17 and no Ending mail_digests.php message
- MarkDHamill
- Registered User
- Posts: 2117
- Joined: Fri Aug 02, 2002 12:36 am
- Location: Oak Hill, Virginia USA
Re: Buglog -2.2.17 and no Ending mail_digests.php message
- luv
- Registered User
- Posts: 37
- Joined: Sat Jun 17, 2006 4:12 pm
Re: Buglog -2.2.17 and no Ending mail_digests.php message
- MarkDHamill
- Registered User
- Posts: 2117
- Joined: Fri Aug 02, 2002 12:36 am
- Location: Oak Hill, Virginia USA
Re: Buglog -2.2.17 and no Ending mail_digests.php message
STRIKE THAT- I just got a cron report that 94 digests went out. I'll go quiz those people and see if they actually got them!
Thank you for your help!
-Christi
- luv
- Registered User
- Posts: 37
- Joined: Sat Jun 17, 2006 4:12 pm