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.
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
Comment #1
reswild commentedThis 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.
Comment #2
stenjo commentedthanks reswild, for pointing this out.
Recent changes should fix this now.
Comment #3
stenjo commentedAlso, in the latest dev there should be a test verifying that the cron runs as it should.
Comment #4
jlea9378 commentedNo 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.
Comment #5
stenjo commentedDid 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
Comment #6
jlea9378 commentedLooks to me like this is fixed.
Comment #7
stenjo commentedClosing the issue then.