bret.miller
Forum Replies Created
-
I find that I rarely get a response here from the developer. You might try asking the question on his contact page:
Forum: Developing with WordPress
In reply to: wp_nav_menu crashing in PHP 8.2 with custom taxomyOK… I found an odd taxonomy/term filter in the functions.php for the theme. Based on other code by the developer, my guess is he copied it from another project without any understanding of why it was there or what it did. But removing it did fix the problem so you were correct. It was not WordPress.
Thank you for your pointers for tracking down the issue.
Forum: Plugins
In reply to: [Email posts to subscribers] Post notification emails stuck in queueSure. We run our own server, so I use native cron to do this. Assuming you are hosted somewhere, your webhost may or may not allow you to schedule cron jobs. Of course, it doesn’t need to happen on the same machine as the server–just somewhere that will be able to repeatedly fetch a web page.
Since I use cron, I created a bash script that runs something like this:
curl -H 'Cache-Control: no-cache, no-store' -H 'User-Agent: cron-email-posts-script-1.0' https://site-url/?elp=cron&guid=xxxxxxxxxxxxxx
You can find the URL part on the end in your WordPress control panel under Email Posts / Options on the Cron Details tab. I tell it not to cache so I’m sure it will look at the server every time, and use a custom user agent so I can see it in the access log. You can, of course, do less and just use curl followed by the URL. There is no output, so no reason to save it anywhere.
I run mine every 15 minutes so there isn’t a long delay between when a post gets published and when the emails start to go out.
Also, on that Cron Details tab, is a link or more information on how to set it up in common control panels and if you need to install something to schedule jobs yourself. I am personally fluent enough in Linux systems not to need the instructions, but if you’re not, you might find them helpful.
Forum: Plugins
In reply to: [Email posts to subscribers] Vulnerability?If you have a specific issue you need resolved, you might want to use his direct contact form as he is more likely to respond to that.
Forum: Plugins
In reply to: [Email posts to subscribers] No longer able to send mailI can’t help you with rollback as that’s a developer issue.
Please try to deactivate, then activate the plugin again. This causes it to re-register the cron tasks, which should get it working again.
Alternatively, you can disable wp-cron and use the link provided to schedule your own cron task. This works far more reliably than wp-cron as it does not depend on site activity to trigger the tasks.
Forum: Plugins
In reply to: [Email posts to subscribers] Post notification emails stuck in queueYou might want to check under Options / Cron Details to see if the tasks are actually being triggered. Note the times there are in GMT and not local time. There are, as I recall, 2 methods of possible correction:
- Deactivate the plugin and activate it again to re-create the cron tasks.
- Don’t use WP-CRON, but create a separate cron task to fetch the URL listed on that page.
I use the second option because it’s simply more reliable.
Forum: Plugins
In reply to: [Email posts to subscribers] Plugin Still SupportedI would say it’s got “limited” support.
I am guessing you upgraded to PHP 8.0? I have the same issue–getting “no post” in the sent mail log and am having to manually send my post alerts. I did contact the author directly (https://www.gopiplus.com/work/contact/). He said he would look at it, but so far there has been no further reply.
Maybe if more of us contact him, he will get to updating the plugin for PHP 8.0 and 8.1.
Forum: Plugins
In reply to: [Email posts to subscribers] Plugin stopped working on PHP8Indeed. While this stopped the plugin from producing errors, it’s not sending out post notifications anymore. No idea if gopiplus will fix this anytime soon. I have just been manually sending them when I know one should happen. It’s frustrating.
Forum: Plugins
In reply to: [Email posts to subscribers] Plugin stopped working on PHP8I reported the error already, but here’s the fix:
in
wp-content/plugins/email-posts-to-subscribers/query/dbquery-notification.php
change
if( count($post) == 0 ) {
to
if( $post ) {
Forum: Plugins
In reply to: [Email posts to subscribers] Delete Post NotificationYou apparently can’t delete one. BUT, if you edit it, you can set the notification status to disabled to stop it from running
Forum: Plugins
In reply to: [Email posts to subscribers] Post Notifications Stopped workingTry deactivating and then activating the plugin. I have had it lose its scheduled tasks, which are what are responsible for actually sending the emails. The tasks are created during plugin activation, so deactivating and reactivating should cause the tasks to get re-created without losing any of your settings.
Forum: Plugins
In reply to: [Spam protection, Anti-Spam, FireWall by CleanTalk] Contact Form 7 BrokenNo. After complete deactivation then activating it again and applying the settings, I still get the “There was an error trying to send your message. Please try again later.” message when I try to submit a contact form.
My guess based on past experience is that it lost its cron schedule. As a first possible solution, please deactivate the plugin and activate it again. Doing so resets the cron schedule without losing any of your settings.
I had this happen to me multiple times and I finally gave up on WP_CRON and set up my own cron task on the server using the settings provided in the plugin. That has solved it longer-term for me.
Forum: Plugins
In reply to: [Email posts to subscribers] Notification Sitting In QueueYeah… the author isn’t very responsive here. You might try his contact form:
https://www.gopiplus.com/work/contact/Forum: Plugins
In reply to: [Email posts to subscribers] Post Notification not workingI use the “Send mail within 30 minutes when any post is published” option and it seems to work fine for me. I have not tried the “add to cron” option as I don’t have a need to expedite post notification.
My elp cron job runs every 15 minutes, so I suppose it’s possible if it missed the 30 minute timer by a second or two, it could be 45 minutes before it was triggered. At some point I learned by experience that using WP Cron for this just wasn’t reliable enough so I scheduled a separate job just for elp cron.
wget –no-cache –save-headers –user-agent=cron-email-posts-script-1.0 –output-file=_cron/$logname.log –output-document=_cron/$logname.html https://$site/?elp=cron&guid=$2