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

inspiredearth - August 18, 2008 - 15:02

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

curtis - October 3, 2008 - 10:09

I got this same error when trying to install the API and all the other Amazon modules at the same time.

#3

curtis - October 3, 2008 - 10:25

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.

AttachmentSize
asin.info_.diff 346 bytes

#4

curtis - April 15, 2009 - 20:33

Bump.

Seriously, this is still open after six months? It's a 10-second fix. See the diff in my previous comment.

#5

greggles - April 22, 2009 - 01:20
Status:active» needs review

Proper status can help.

#6

eaton - May 27, 2009 - 17:07
Status:needs review» fixed

Committed. Thanks for the catch.

#7

System Message - June 10, 2009 - 17:10
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.