I get the a message from cron containing this ...

Fatal error: Call to undefined function simplenews_switch_user() in /home/bbuckley/public_html/a4admin/sites/all/modules/simplenews_scheduler/simplenews_scheduler.module on line 254

Comments

sgabe’s picture

Title: undefined function simplenews_switch_user() » undefined function simplenews_switch_user()

About that there is a note on the project page:

ccprog's patch is committed in the dev release so you need to apply patch from #256795: Allow simplenews cron to send nodes that anonymous users cannot access to Simplenews to make this work. Otherwise you will got an error about the undefined simplenews_switch_user() function.

If you don't want to apply the mentioned patch to Simplenews you can simply remove the simplenews_switch_user() lines from the simplenews_scheduler_new_edition() function. Anyway, I think we will create a stable release soon that will not contain this if Simplenews doesn't have a stable release for it.

sgabe’s picture

Status: Active » Fixed

This feature will be available only in the 2.x branch of Simplenews.
Until that this has been commented out from the dev release so it won't cause any problem.
I change this to fixed.

Cheers,
sgabe

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.