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

hutch’s picture

Flush the cache

adamjw’s picture

I've flushed the cache; I've also uninstalled and reinstalled... the same blank page except for the title 'Get directions'.

hutch’s picture

I 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

adamjw’s picture

That's fixed it. Thanks, and thanks for a really useful module!

hutch’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anybody’s picture

Status: Closed (fixed) » Active

We'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?

Anybody’s picture

Status: Active » Needs work

Solution 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!!

hutch’s picture

The 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 ;-)

Anybody’s picture

Issue summary: View changes
Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.