By danny_joris on
I'm not sure if i can post this here, but because the modules section is highly visited, and i guessed that alot of you have read the Pro Drupal Development book, i thought i might post it here. I followed the exact instructions and code that given till then. At page 19 you should be able to access the admin/settings/annotate menu-page. But i dont see 'annotate' anywhere in the 'site configuration' list and when i go there directly by url it says:
Access denied
You are not authorized to access this page.
Anyone encountered the same problem? Or is it just a typo? I'm pretty much stuck at this point. Very frustrating.
Thanks in advance,
Danny
Comments
Maybe post your code, so we
Maybe post your code, so we can see what you got...
annotate.module <?php//
I forgot to say that the book is the second edition (6.x).
annotate.module
annotate.admin.inc
Check the following
1. Make sure you have the 'administer site configuration' permission.
2. Clear the cache. (Administer >> Performance > 'Clear Cache Data')
Have a look at this
Have a look at this function:
Looking closely, I see that this:
'access' => user_access('administer site configuration')should be:
'access arguments' => user_access('administer site configuration')The rest of it looks ok, so I bet that is the problem. Can you tell us if that error is present in the book too?
EDITED (to add):
I just tried this out, and while the annotate admin settings page now shows, I'm getting some php errors so I'm not exactly sure what's wrong...
Yes, this modification gives
Yes, this modification gives errors.
Thanks for your help, but i figured it out. I'm not going to type from the book anymore. I found the right files that comes with the book at http://www.drupalbook.com/node/2 . I guess i didnt have enough sleep yesterday because i downloaded the first edititon files instead of the second edition. It all works now.
Cheers,
Danny