Fatal error: Call to undefined function content_notify() in ../modules/amazon/asin/asin.install on line 11
inspiredearth - August 18, 2008 - 14:58
| Project: | Amazon Module |
| Version: | 6.x-1.0-beta3 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
Hi folks,
I have just tried activating Amazon on Drupal 6.4
I get this error:
Fatal error: Call to undefined function content_notify() in /public_html/cms/modules/amazon/asin/asin.install on line 11
I see this error was logged for the previous beta of Amazon and then closed due to inactivity (I added a comment to that bug tread also). So I guess it's not that common, but is still occurring.
Any ideas?
Cheers,
Jonathan

#1
The previous error message was generated by the server (not displayed within Drupal).
I've now returned to listing modules and go these errors reported by Drupal:
* warning: include_once(.//content.module) [function.include-once]: failed to open stream: No such file or directory in /home/publish/public_html/cms/modules/amazon/asin/asin.install on line 5.
* warning: include_once() [function.include]: Failed opening './/content.module' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/publish/public_html/cms/modules/amazon/asin/asin.install on line 5.
* warning: include_once(.//content.module) [function.include-once]: failed to open stream: No such file or directory in /home/publish/public_html/cms/modules/amazon/asin/asin.install on line 5.
* warning: include_once() [function.include]: Failed opening './/content.module' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/publish/public_html/cms/modules/amazon/asin/asin.install on line 5.
When I refresh the modules list, the error messages have gone, but only the Amazon API is activated and the other part parts are not.
Cheers,
Jonathan
#2
I got this same error when trying to install the API and all the other Amazon modules at the same time.
#3
I just figured out what's going on here -- Amazon Field requires CCK, which I did not have installed. content_notify() is provided by CCK.
However, Amazon Field does not list any dependencies. The asin/asin.info file erroneously uses requirements[] instead of dependencies[]. I've attached a patch to correct this.
#4
Bump.
Seriously, this is still open after six months? It's a 10-second fix. See the diff in my previous comment.
#5
Proper status can help.
#6
Committed. Thanks for the catch.
#7
Automatically closed -- issue fixed for 2 weeks with no activity.