Closed (fixed)
Project:
Simplenews Digest
Version:
5.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Sep 2008 at 20:17 UTC
Updated:
4 Jan 2009 at 00:24 UTC
Hi
I'm using D5. Simplenews 1.4 and installed this module.
At the page admin/content/newsletters/settings/digest_settings a have got an error:
Fatal error: Call to undefined function _simplenews_get_vid() in /www/vhosts/notheft.ru/html/sites/all/modules/simplenews_digest/simplenews_digest.module on line 52
Comments
Comment #1
vladsavitsky commentedОк. I have found solution here:
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/simplenews/...
So, find:
and replace with:
Comment #2
maui1 commentedHI, I ran into this same error, and discovered your proposed solution. I tried the substitution you recommend ( at line 52 in the simplenews_digest.module file), but now come up with the following error:
warning: Missing argument 2 for variable_get(), called in /home/mpcollab/public_html/MPbeta1/sites/all/modules/simplenews_digest/simplenews_digest.module on line 52 and defined in /home/mpcollab/public_html/MPbeta1/includes/bootstrap.inc on line 412
Are there any other settings that the digest module is expecting such as taxonomy?? or could there be a typo in the code substitution you recommend?
I installed this on drupal 5.10 php5 with simplenews v1.5, could this be a problem with the v1.5 instead of v1.4 you responded to above??
Comment #3
vinayras commentedReplace
with
variable_get('simplenews_vid', '') requires 2 parameters to be passed - first variable name, second default value. In our case we will pass null for default value.
This works.
Vinay
eDrupal.com - Indian Drupal Community
Comment #4
maui1 commentedHi Vinray, thanks so much, that fixed it.
Comment #5
andrewlevine commenteddupe of #294298
Comment #6
Steve Dondley commented