PHPfox-Official / phpfox-v4-issues

phpFox Public Bug Tracker
https://phpfox.com
30 stars 21 forks source link

Newsletter cron error #3015

Closed kibcode closed 3 years ago

kibcode commented 3 years ago

What's happened?

I added a newsletter and after saving the progress shows 0/0 and status "sending". No mails are sent at all.

Cron is set up and notifications and testmails are sending. the cron log shows following error: cron.log.DEBUG: job not found {"job":"core_newsletter_send_email_users"}

Steps to reproduce:

Add new Newsletter with text and all usergroups Start sending

What's expected?

The table should show the amount of newsletters and send them to the users

Server information

Linux Debian 10

phpFox version

phpFox 4.8.4 Latest Newsletter app

harrison05 commented 3 years ago

Related to #3012

harrison05 commented 3 years ago

I guess it has an issue with Data Cache on your site so it can't detect cronjob handling of Newsletter App.

kibcode commented 3 years ago

the sites using filesystem cache. i have also deacitvated opcache to see if there are issues with that but it does not work. any ideas what else i can check?

harrison05 commented 3 years ago

As I know, log "job not found" only shows if the system executes a job without a handler. If you're a developer, you can debug in function \Core\Queue\Manager::loadHandlers and figure out why plugin "job_queue_init" of Newsletter doesn't run? (We cache all hooks before running it, so without cache > hooks won't run).

P/s: I recommend you submit a ticket, our support team with help you with this bug.

Regards.

Elshara commented 3 years ago

I had the same issue literally for years. To solve it I had to install SocialEngine and import my entire community to use their CURL implementation to get around it because the newsletters just couldn't send otherwise. Not on their own, or even with me manually processing the pages in a browser. Cron in PHPFox has always ran fine like any other command I ran through the job queue. The implementation of the Newsletter app has always never worked even after multiple fresh installs with just me as a member. It's actually one of the primary reasons why I had to revert to SocialEngine because of a working newsletter system and mail queue in that platform.

On 30/05/2021, harrison05 @.***> wrote:

Closed #3015.

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/PHPfox-Official/phpfox-v4-issues/issues/3015#event-4818017725