<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="country-region"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Guessing &#8220;annotate&#8221; is the
name of your module.&nbsp; Is it installed in the modules/system folder?&nbsp; &nbsp;&nbsp;Should really
be in sites/all/modules/myprojectname.&nbsp; <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>One common mistake is when moving files
around when you&#8217;re first learning how to develop is to leave a copy of
your module in another folder.&nbsp; When you do this, drupal might find that old
copy first.&nbsp; If it does that it will be looking for annotate.admin.inc in the
wrong location. <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>My guess here is that&nbsp; you implemented a
menu_hook that references an include file (annotate.adin.inc ).&nbsp; <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>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. <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Am I near the mark? <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><br>
Dave<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
support-bounces@drupal.org [mailto:support-bounces@drupal.org] <b><span
style='font-weight:bold'>On Behalf Of </span></b>tony maciejowski<br>
<b><span style='font-weight:bold'>Sent:</span></b> Thursday, June 09, 2011
11:04 PM<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">support@drupal.org</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> [support] Writing a
module and get an error</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Hi All,<br>
I am in Chapter 2 of Tomlinson's et al book about Pro Drupal 7 Development.<br>
Get the following error upon completion of the code:<br>
<em><i><font face="Times New Roman">Warning</font></i></em>:
require_once(/home3/tonymacc/public_html/drupal-7.0/modules/system/annotate.admin.inc)
[<a href="http://tony-mac.com/drupal-7.0/admin/function.require-once">function.require-once</a>]:
failed to open stream: No such file or directory in <em><i><font
face="Times New Roman">menu_execute_active_handler()</font></i></em> (line <em><i><font
face="Times New Roman">499</font></i></em> of <em><i><font
face="Times New Roman">/home3/tonymacc/public_html/drupal-7.0/includes/menu.inc</font></i></em>).<br>
<br>
Grateful for any pointers.<br>
<br>
Thanks <br>
Tony<br clear=all>
<br>
-- <o:p></o:p></span></font></p>

<p><b><font size=2 color="#333399" face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:#333399;font-weight:bold'>tony maciejowski</span></font></b><b><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial;font-weight:
bold'> <font color=black><span style='color:black'>|</span></font> <font
color="#d1a73d"><span style='color:#D1A73D'>analyst/programmer </span></font>&nbsp;<font
color=black><span style='color:black'>|</span></font> <font color="#00cc00"><span
style='color:#00CC00'>websites</span></font> <font color=black><span
style='color:black'>|</span></font> <font color="#ca00ca"><span
style='color:#CA00CA'><a href="mailto:t_maciejowski@hotmail.com" target="_blank">tony@tony-mac.com</a></span></font>
</span></font></b><o:p></o:p></p>

<p><b><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial;
font-weight:bold'>O</span></font></b><font size=2 color=black face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:black'>ffice:&nbsp;323.***.5137
| Cell: 323.***.6206 | <st1:country-region w:st="on"><st1:place w:st="on">Germany</st1:place></st1:country-region>:
49-30-76764897&nbsp;</span></font><o:p></o:p></p>

<p><font size=2 color=black face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:black'>&nbsp;</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>