undefined function simplenews_switch_user()

bux - October 26, 2009 - 22:57
Project:Simplenews Scheduler
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

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

#1

sgabe - October 27, 2009 - 08:22
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.

 
 

Drupal is a registered trademark of Dries Buytaert.