Not logged in. · Lost password · Registration disabled
Forum: Overview Bugs / Fehler RSS
email not being sent when new post is created - fixed
jotrys #1
Member since Jun 2007 · 18 posts
Group memberships: Mitglieder
Show profile · Link to this post
Subject: email not being sent when new post is created - fixed
Hi there,

An email is not being sent when a new post is created.

Actions:
I have subsribed an email address successfully (and email address has status 'Accepted').
Then made a new post.
Everything is listed correctly in the PN Info screen.

But the email is not snet.

The following is the error given on the lower part of the PN sceens:

WordPress database error: [Unknown column 'el.date_saved' in 'where clause']
SELECT * FROM wp_posts p, wp_post_notification_posts el WHERE( el.notification_sent >= 0 AND p.id = el.post_id AND p.post_status IN('publish', 'private', 'future') AND GREATEST(p.post_date_gmt, el.date_saved) < '2007-06-26 22:56:00' )


Cheers,
jotrys
This post was edited on 2007-07-13, 00:25 by Morty.
Morty (Administrator) #2
User title: Author
Member since Jun 2007 · 928 posts
Group memberships: Administratoren, Mitglieder
Show profile · Link to this post
Ow shit. Backporting sucks.... Gona fix that one and then fall asleep.

post_notification.php:65 must be:
$add_where = "AND p.post_date_gmt < '" .  gmdate('Y-m-d H:i:s', (time() - get_option('post_notification_nervous'))) . "' ";
This post was edited on 2007-06-27, 01:46 by Morty.
Morty (Administrator) #3
User title: Author
Member since Jun 2007 · 928 posts
Group memberships: Administratoren, Mitglieder
Show profile · Link to this post
The 1.1.4 should be downloadable in a few min:

http://downloads.wordpress.org/plugin/post-notification.1.…

Or use the attached file
The author has attached one file to this post:
1.1.4.zip | Save   105.9 kBytes, downloaded 487 times
jotrys #4
Member since Jun 2007 · 18 posts
Group memberships: Mitglieder
Show profile · Link to this post
Good Morning Morty,

Installed version 1.1.4 from the link you gave.
Made a post, but it still is not sent out.

No DB errors displayed this time, but there are errors in the site error log.

Error Log (following errors are repeated about 20 times):

[client xyz] PHP Warning: post_notification_send() [<a href='function.post-notification-send'>function.post-notification-send</a>]: open_basedir restriction in effect. File(./class.html2text.php) is not within the allowed path(s): (/var/www/vhosts/bestaandewoningbouw.nl/httpdocs:/tmp) in /var/www/vhosts/bestaandewoningbouw.nl/httpdocs/joe/wp-content/plugins/post_notification/post_notification.php on line 358

[client xyz] PHP Warning: post_notification_send(class.html2text.php) [<a href='function.post-notification-send'>function.post-notification-send</a>]: failed to open stream: Operation not permitted in /var/www/vhosts/bestaandewoningbouw.nl/httpdocs/joe/wp-content/plugins/post_notification/post_notification.php on line 358

[client xyz] PHP Fatal error: post_notification_send() [<a href='function.require'>function.require</a>]: Failed opening required 'class.html2text.php' (include_path='.:') in /var/www/vhosts/bestaandewoningbouw.nl/httpdocs/joe/wp-content/plugins/post_notification/post_notification.php on line 358


Cheers,
jotrys
Morty (Administrator) #5
User title: Author
Member since Jun 2007 · 928 posts
Group memberships: Administratoren, Mitglieder
Show profile · Link to this post
Most Severs don't seem to complain about this, but I must admit, it was bad coding. I hope it works now. :-)

http://downloads.wordpress.org/plugin/post-notification.1.…
jotrys #6
Member since Jun 2007 · 18 posts
Group memberships: Mitglieder
Show profile · Link to this post
Great!

Installed version 1.1.5.
Made a post, and emails are sent out correctly.

You can mark this bug as SOLVED!

Thanks Morty,
cheers,
jotrys
Morty (Administrator) #7
User title: Author
Member since Jun 2007 · 928 posts
Group memberships: Administratoren, Mitglieder
Show profile · Link to this post
And thanks for reporting. I have only my server for testing, and christian who does a lot of testing. But a lot of people just see that it does not work and delete it again.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum