[support] Writing a module and get an error

Metzler, David metzlerd at evergreen.edu
Fri Jun 10 16:05:56 UTC 2011


Guessing "annotate" is the name of your module.  Is it installed in the
modules/system folder?    Should really be in
sites/all/modules/myprojectname.  

 

One common mistake is when moving files around when you're first
learning how to develop is to leave a copy of your module in another
folder.  When you do this, drupal might find that old copy first.  If it
does that it will be looking for annotate.admin.inc in the wrong
location. 

 

My guess here is that  you implemented a menu_hook that references an
include file (annotate.adin.inc ).  

 

Make sure any duplicate/old module files are removed and then clear your
caches. You might also need to save changes to the module list to make
sure the system table (which keeps track of where modules are installed)
gets updated with the correct location of your module file. 

 

Am I near the mark? 


Dave

 

________________________________

From: support-bounces at drupal.org [mailto:support-bounces at drupal.org] On
Behalf Of tony maciejowski
Sent: Thursday, June 09, 2011 11:04 PM
To: support at drupal.org
Subject: [support] Writing a module and get an error

 

Hi All,
I am in Chapter 2 of Tomlinson's et al book about Pro Drupal 7
Development.
Get the following error upon completion of the code:
Warning:
require_once(/home3/tonymacc/public_html/drupal-7.0/modules/system/annot
ate.admin.inc) [function.require-once
<http://tony-mac.com/drupal-7.0/admin/function.require-once> ]: failed
to open stream: No such file or directory in
menu_execute_active_handler() (line 499 of
/home3/tonymacc/public_html/drupal-7.0/includes/menu.inc).

Grateful for any pointers.

Thanks 
Tony

-- 

tony maciejowski | analyst/programmer  | websites | tony at tony-mac.com
<mailto:t_maciejowski at hotmail.com>  

Office: 323.***.5137 | Cell: 323.***.6206 | Germany: 49-30-76764897 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20110610/ab7a9a11/attachment.html 


More information about the support mailing list