Not installed in modules/system folder.<br>Dir structure as follows:<br>sites/all/modules/annotate/<br><ul><li>annotate.admin.inc</li><li>annotate.install</li></ul>sites/all/modules/custom/annotate/<br><ul><li><a href="http://annotate.info">annotate.info</a></li>
<li>annotate.module</li></ul>The book was a bit confusing as to where the files should go. Should they all be in one or the other of these dirs and not split between the 2?<br><br>Thanks ... yes near the mark.<br>Tony<br>
<br><br><br><div class="gmail_quote">On Fri, Jun 10, 2011 at 9:05 AM, Metzler, David <span dir="ltr">&lt;<a href="mailto:metzlerd@evergreen.edu">metzlerd@evergreen.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">













<div link="blue" vlink="blue" lang="EN-US">

<div>

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

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

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"> </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  you implemented a
menu_hook that references an include file (annotate.adin.inc ).  </span></font></p>

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

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

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

<div>

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

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

</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">
<a href="mailto:support-bounces@drupal.org" target="_blank">support-bounces@drupal.org</a> [mailto:<a href="mailto:support-bounces@drupal.org" target="_blank">support-bounces@drupal.org</a>] <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> <a href="mailto:support@drupal.org" target="_blank">support@drupal.org</a><br>
<b><span style="font-weight:bold">Subject:</span></b> [support] Writing a
module and get an error</span></font></p>

</div><div><div></div><div class="h5">

<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"> </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&#39;s et al book about Pro Drupal 7 Development.<br>
Get the following error upon completion of the code:<br>
<i><i><font face="Times New Roman">Warning</font></i></i>:
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" target="_blank">function.require-once</a>]:
failed to open stream: No such file or directory in <i><i><font face="Times New Roman">menu_execute_active_handler()</font></i></i> (line <i><i><font face="Times New Roman">499</font></i></i> of <i><i><font face="Times New Roman">/home3/tonymacc/public_html/drupal-7.0/includes/menu.inc</font></i></i>).<br>

<br>
Grateful for any pointers.<br>
<br>
Thanks <br>
Tony<br clear="all">
<br>
-- </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> <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></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: 323.***.5137
| Cell: 323.***.6206 | Germany:
49-30-76764897 </span></font></p>

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

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

</div></div></div>

</div>


<br>--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div><br><br clear="all"><br>-- <br><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><span> </span><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></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: 323.463.5137 | Cell: 323.899.6206 | Germany: 49-30-76764897 </span></font></p>


<p><font size="2" color="black" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:black"><span> </span></span></font></p><br>