Closed (cannot reproduce)
Project:
Modal Frames from Menu Items
Version:
6.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
23 May 2011 at 07:16 UTC
Updated:
29 Aug 2011 at 10:35 UTC
Hi,
tried to test it and got:
"Call to undefined function modalframe_parent_js() in [...]\sites\all\modules\modalframe_menu\modalframe_menu.module on line 28"
where it reads
modalframe_parent_js();
Thanks
Comments
Comment #1
angelmax commentedI found that "http://drupal.org/project/modalframe"
is defined in:
http://drupal.org/project/modalframe
which is required but I have it installed and active and getting the error reported.
Comment #2
angelmax commentedThere were missing dependencies in my installation.
I fixed by following this tutorial
http://drupal.org/node/1078080
I was able to successfully install and test this module.
It would be useful to specify in the docs the dependencies.
Thanks.
Comment #3
angelmax commentedComment #4
angelmax commentedComment #5
OliverColeman commentedHi angelmax,
How did you manage to enable modalframe_menu when modalframe wasn't enabled? And if modalframe was enabled, I'm not sure how you got the "Call to undefined function modalframe_parent_js()" error since that function is defined by modalframe (and not jquery UI etc)? modalframe is already specified as a dependency (in the .info file), and is listed under the requirements in the docs.
I wonder if perhaps you enabled them at the same time and hook_init was called on modalframe_menu before modalframe was included? This doesn't sound likely (you'd think Drupal core would include the dependencies first, and I wouldn't think hook_init would get called before all newly enabled modules were included.
In any case, I don't think I should include jquery* as dependencies as jquery is provided by core (so always included), and jquery_ui is just required by modalframe and not directly by modalframe_menu. However unlikely it is, strictly speaking modalframe might decide to drop it and use something else and modalframe_menu would still work as it just uses the modalframe API (and not the jquery_ui API).
Cheers,
Oliver
Comment #7
OliverColeman commented