Bleeding Edge!

For those of you who like to be at the bleeding edge of WordPress development I guess now is an exciting time with the imminent release of WordPress 2.3.

If you also use Subscribe2 you’ll need to update the plugin to Version 4.0. I’ll post a more complete release in a few days tme, in the meantime consider this my release candidate for the plugin. Post any problems below.


49 thoughts on “Bleeding Edge!

  1. I have upgraded to WP 2.3, and the plugin manager told me upgrade Subscribe 2, but that was not the version 4. Since the S2 button didn’t load in the visual editor, I went here to discover that there is a version 4.
    I’ll upgrade. Thanks.

  2. Chris,

    This is because Version 4 isn’t official as yet – it’s up on the SVN server but since WordPress 2.3 is just 8 hours old I am doing a bit more testing before going official!

  3. Hi! I upgraded to wordress 2.3, and when I went to edit a post that had already been published, Subscribe2 re-sent the post when I clicked “save”. So, I upgraded to your version 4, edited another post, and when I saved it, the new version also treated the post as if it was published for the first time. I never had this problem with WP2.2 using S2 version 3. But, S2 versions 3+4 do this with WP2.3 .

    Hope this helps!

  4. When I upgraded to S2 4.0 (WP 2.3) I started getting these errors:

    “open_basedir restriction in effect”
    “wp-config.php is not within allowed paths”

    I deactivated S2 and they went away.

  5. Pizzaman,

    It’s possible that your server is running PHP in safe_mode or that the file permissions are not allowing some PHP files as executable. You need to check out both of these but basically there is an issue on your server.

  6. I get the same erros as Pizzaman. It shows up on Plugins page and Users>Subscribers page. Safe Mode is on…. but on an other homepage I manage I dont have any errors though Safe mode is on too.

    Warning: main() [function.main]: open_basedir restriction in effect. File(../wp-config.php) is not within the allowed path(s): (/usr/local/www/ocdforeningejynj:/usr/local/lib/php) in /usr/local/www/XXX/www/wp-admin/install-helper.php on line 2

    Warning: main(../wp-config.php) [function.main]: failed to open stream: Operation not permitted in /usr/local/www/XXX/wp-admin/install-helper.php on line 2

    Fatal error: main() [function.require]: Failed opening required ‘../wp-config.php’ (include_path=’.:/usr/local/lib/php’) in /usr/local/www/XXX/www/wp-admin/install-helper.php on line 2

  7. Mads / Pizzaman,

    As an update I’ve done some more digging. One of the discussions behind WordPress 2.3 was supressing fewer errors within the WordPress code to ‘hide’ poorly configred servers. This may be one side effect.

    open_basedir is a restriction within php.ini that limits the folders you can execute php scripts from. Your host should be able to edit (or maybe you can) the php.ini file to allow execution of script files from within your hosting folder area with compromising the server security (which is the intended purpose of open_basedir)

    This post may help.

  8. I asked my host about safe mode and I’m not running php in safe mode.
    Now I need to ask about the open_basedir thing.

    I’m confused a bit here. I was running s2 3.8 and it’s a script being run from a directory so why is s2 4.0 not able to run from the same directory?

    I’m sure we’ll all get to the bottom of this eventually…

  9. Pizzaman,

    I think the reason this message is now appearing is that a function I call (maybe_create_table) in my script has moved between 2 core WordPress files.

    This function used to be in upgrade_functions.php but this files is now deprecated and the function is contained in install_helper.php As this latter file makes a call on config.php without fully defining the path this may be the cause.

    Try this: in the file /wp-admin/install-helper.php line 2 needs updating from:



    require_once(ABSPATH . ‘wp-config.php’);

    I’ve logged this as a WordPress bug too.

  10. Laundro,

    Try downloading a fresh copy – I’ve checked in some changes since CJ Connor reported the issue and I think I’ve fixed it. The version numbers will be the same but this will be my second (and hopefully final) release candidate.

  11. I posted a new article and S2 worked fine. I edited the post and resaved it and S2 sent another batch of emails. I hit “save and continue editing” and S2 sent ANOTHER batch of emails.

    Is this a bug? I don’t recall that the previous version did this.

  12. I am having the same problem as CJ and Laundro, and will do as you suggested to Laundro, but in addition, e-mails are also being sent when I create pages, even though I don’t have that option selected.

  13. Elizabeth,

    Thanks for following up – I’ve tracked down another glitch in the code and will update the code with a fix before release. To implement it now try the following:

    Search the Subscribe2.php file for 2 instances of the following function:

    wp_get_post_cats(‘1’, $id)

    and replace this with:


    Note the latter of the 2 instances passes $post->ID – this should be left the same.

  14. Elizabeth,

    Does your blog allow registered users to subscribe to excluded categories? If you have this box checked in Options->Subscribe2 an email notification will still be sent for ‘excluded’ posts but it should only go to registered users who have subscribed to that category. None of your public subscribers should get the notification though.

    This is working for me on my sandbaox setup, I can’t re-produce what you are seeing, but then it’s a very simple setup with few subscribers and no other plugins.

  15. No, registered users are not allowed to subscribe to excluded categories. I have also confirmed that there are 0 registered users subscribed to the particular category I posted to by going to the Manage > Subscribers page.

    This worked perfectly prior to my wp upgrade and the only other change I have been forced to make due to the upgrade is to change my permalinks from my custom format to one of the default format. I don’t believe the permalink structure has anything to do with it, but figured it wouldn’t hurt to mention it.

  16. Elizabeth,

    Figured out why I couldn’t reproduce the error – I was working with an older version of the plugin!

    I think I’ve fixed this now and have just checked in some changes to the code. (too many to post here) Try downloading a fresh copy.

  17. I just installed the most recent download you have linked in the above entry, and it caused too many errors on my blog to ennumerate here. I had upgraded before from the version at WordPress’s plugin directory, and that was working fine, aside from the fact that it was treating every edited post as a new post and sending out an email to all subscribers, as others have described.

    Some errors:

    Warning: main() [function.main]: open_basedir restriction in effect. File(../wp-config.php) is not within the allowed path(s): (/home/vallaria:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/vallaria/public_html/wp-admin/install-helper.php on line 2

    Warning: main(../wp-config.php) [function.main]: failed to open stream: Operation not permitted in /home/vallaria/public_html/wp-admin/install-helper.php on line 2

    Fatal error: main() [function.require]: Failed opening required ‘../wp-config.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/vallaria/public_html/wp-admin/install-helper.php on line 2

  18. Audrey / Jason,

    This error is down to an issue in the core WordPress files. I’ve submitted a bug report about it.

    You can fix it yourself by applying the patch or editing the install-helper.php file in wp-includes as per the bug report.

  19. I’ve installed Version 4.0 on WP2.3 with no other plugins activated. I haven’t made any changes to Subscribe2 code.

    No error messages visible, subscription process works properly, 2 confirmation emails send OK

    Problem is that only Admin ever gets email, whether as a result of new post or via “Send email to all subscribers”. Only have 2 public subscribers & 3 registered, so not a BCC limit issue.

    It’s not a production site, so I can allow access if it will help de-bugging.

  20. After updating my Dreamhost WP install to v2.3, I grabbed the “alpha” copy v4.0 of the Subscribe2 plugin. Truth be told, I haven’t yet done any testing but I do immediately notice the disappearance of all categories on the Subscribe2 options page under the heading, “Excluded Categories”.

    Checkboxes are there and checked, but no categories beside them. And trying to toggle and submit all the boxes has no effect either. I saw this was an old issue for some — perhaps a peculiarity in my configuration? Any tips appreciated.

  21. Ugh — please scratch the previous post. My WP upgrade had not actually been done. After *successful* upgrade to v2.3, the new Subscribe2 looks good. Thanks for your work. And apologies for taking up this space!

  22. My server email log shows each event in pretty much the format below. receives an email, do not.

    Public subscriber emails don’t appear in the log associated with blog postings at all as far as I can see.

    What should I be looking at?

    2007-10-01 21:32:07 cwd=/home/username/public_html/blog/wp-admin 3 args: /usr/sbin/sendmail -t -i

    2007-10-01 21:32:07 1IcXYN-0003Sc-NT <= U=username P=local S=515 T="A message from My Development Blog" from for

    2007-10-01 21:32:07 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1IcXYN-0003Sc-NT

  23. JohnP,

    That second entry you posted looks to me like an email was sent from your domain to the 3 email addresses you have listed above. You’ll need to look further through the log to ensure there were no errors for those addresses but it is working up until the email is passed to sendmail.

    It may be worth looking in the error log as well as you mail log.

  24. After extensive testing I discovered that Subscribe2 is indeed performing flawlessly and a problem is occurring further down the track. I now suspect my Gmail filters may be the culprit, although nothing appeared in the spam.

    I have now set up a few email boxes completely divorced from my current system that I’ll use exclusively for testing. My shamefaced apologies for wasting your time.

  25. In my options panel, under Excluded Categories I see check boxes but no category names. Any ideas? Here’s a screenshot:

  26. Hi! Thanks for all the wonderful work.

    I’m afraid I’ll be reporting some problems previously handled here. I haven’t been able to find a solution for either of them despite the wonderful feedback given, so I do apologize in advance…

    A. When I edit a previously published post, an email is sent to all my subscribers. I’ve downloaded the latest WordPress version, as well as the latest plugin version… but no way!

    B. When I activate the plugin, the following error appears at the bottom of every page:

    Warning: main(): open_basedir restriction in effect. File(../wp-config.php) is not within the allowed path(s): (/var/www/vhosts/ in /var/www/vhosts/ on line 2

    Warning: main(../wp-config.php): failed to open stream: Operation not permitted in /var/www/vhosts/ on line 2

    Fatal error: main(): Failed opening required ‘../wp-config.php’ (include_path=’.:’) in /var/www/vhosts/ on line 2

    If I change line 2 to ‘require_once(ABSPATH . ‘wp-config.php’);’, the warning changes and becomes…

    Warning: main(0php�): failed to open stream: No such file or directory in /var/www/vhosts/ on line 2

    Fatal error: main(): Failed opening required ‘0php�’ (include_path=’.:’) in /var/www/vhosts/ on line 2

    But I can’t eliminate it!

    Thanks in advance and sorry for the inconvenience!

  27. Alex,

    A/ Have you got other email plugins active? There is a conflict with the Related Posts plugin – which alters the status of a post.

    B/ Please read this article for an explanation and solution.

  28. A/ I have other plugins active, but not the Related Posts one. I do have the CountPosts one.

    B/ Fixed! Thanks for the useful info! I promise to check better next time! 😉

Comments are closed.