Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When I use /getdirections or any other getdirections functionality, I'm getting a message in the log that the theme key is not found.
I get this on the latest dev and on 7.x-2.3
I'm puzzled as GetDirections was previously working fine for me.
Any ideas? / could it be a clash with a module I've subsequently installed?
Thanks.
Comments
Comment #1
hutch CreditAttribution: hutch commentedFlush the cache
Comment #2
adamjw CreditAttribution: adamjw commentedI've flushed the cache; I've also uninstalled and reinstalled... the same blank page except for the title 'Get directions'.
Comment #3
hutch CreditAttribution: hutch commentedI have seen similar problems in another module, the problem seems to be that Drupal does not always run hook_init()
I have moved the theming functions into the main module file, available in dev shortly
Comment #4
adamjw CreditAttribution: adamjw commentedThat's fixed it. Thanks, and thanks for a really useful module!
Comment #5
hutch CreditAttribution: hutch commentedComment #7
AnybodyWe've got the same problem, using the latest .dev.
Flushing etc. as described above does not help.
Moving theme-functions into the .module file helped, but will be gone with the next update. Is this work in progress for the next .dev release?
Do we exactly know, why the .theme file is not included properly?
Comment #8
AnybodySolution that worked for me:
Add the following lines to the getdirections.info file:
files[] = getdirections.theme.inc
files[] = getdirections.api.inc
Everything works fine now without any other "hacks".
Could you please test it and add this to the next .dev?
THANKS FOR THIS GREAT MODULE!!
Comment #9
hutch CreditAttribution: hutch commentedThe problem is explained in #3
getdirections.theme.inc no longer exists and has been incorporated into getdirections.module
I have just released a stable version 7.x-2.4
files[] in the .info file is for classes, eg style plugins for Views etc, interesting though that it worked ;-)
Comment #10
Anybody