Getting this fatal error when running cron:
Fatal error: Call to undefined function user_load_by_email() in /var/www/html/drupal_test/sites/all/modules/faq_ask/faq_ask.module on line 493

Using latest dev, version dated May 4th.

Comments

reswild’s picture

This function should be "user_load_by_mail()" not "user_load_by_email()"

There are however a number of other issues related to sending out email notifications, so I think you will just have to disable the cron option until these are fixed.

stenjo’s picture

Assigned: Unassigned » stenjo
Status: Active » Needs review

thanks reswild, for pointing this out.
Recent changes should fix this now.

stenjo’s picture

Also, in the latest dev there should be a test verifying that the cron runs as it should.

jlea9378’s picture

Priority: Critical » Normal
Status: Needs review » Active

No more fatal error on the 5/9 dev release, but getting some notices in the logs:
Notice: Trying to get property of non-object in user_pass_reset_url() (line 2287 of /var/www/html/drupal_test/modules/user/user.module).
Notice: Trying to get property of non-object in user_cancel_url() (line 2309 of /var/www/html/drupal_test/modules/user/user.module).
Notice: Undefined index: category in faq_ask_mail() (line 751 of /var/www/html/drupal_test/sites/all/modules/faq_ask/faq_ask.module).
Notice: Undefined index: !username in faq_ask_mail() (line 756 of /var/www/html/drupal_test/sites/all/modules/faq_ask/faq_ask.module).

These notices only appeared after I answered a bunch of questions and ran cron. They didn't appear on other cron runs.

stenjo’s picture

Status: Active » Needs review

Did a major brush-up of the e-mailing and the templates a little - including adding tests that verifies sending on Cron runs and that links in the e-mails actually works.
Commited in latest dev-release

jlea9378’s picture

Status: Needs review » Reviewed & tested by the community

Looks to me like this is fixed.

stenjo’s picture

Status: Reviewed & tested by the community » Fixed

Closing the issue then.

Status: Fixed » Closed (fixed)

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