Get this error after enabling module. Thoughts?

Comments

markus_petrux’s picture

Status: Active » Postponed (maintainer needs more info)

1) Please, use the text area of the comment to copy the error message.

2) The modalframe_blocks module requires the modalframe module (see dependencies in .info file), so the function modalframe_parent_js() should be there when the former is enabled. This leads to the question: how have you managed to install modalframe_blocks module with modalframe module not being enabled?

pixelsweatshop’s picture

I wish I could give you that answer. The Modalframe module was installed. I would assume that I could not enable it otherwise as modalframe_blocks specifies modalframe as a dependency.

queryblitz’s picture

I tried to install this module without jQuery 1.7 and got some nasty errors. Ran emergency.php and here's what it said:

array(4) { ["type"]=> int(1) ["message"]=> string(50) "Call to undefined function modalframe_parent_js()" ["file"]=> string(116) ".../sites/all/modules/modalframe_contrib/modalframe_blocks/modalframe_blocks.module" ["line"]=> int(125) } Rebuild system table.
\nForce to load all enabled module files.
\nEnabled potential dependency module: $module_name.
\nPlease refresh the page if problem has been fixed.
\nERROR: Script execution halted with error: Call to undefined function modalframe_parent_js()
Backtrace: wsod_sess_close(:);session_write_close(:);

array(4) { ["type"]=> int(1) ["message"]=> string(50) "Call to undefined function modalframe_parent_js()" ["file"]=> string(116) ".../sites/all/modules/modalframe_contrib/modalframe_blocks/modalframe_blocks.module" ["line"]=> int(125) } n/a

I don't know, but I'm going to attempt to install jQuery 1.7.

queryblitz’s picture

Status: Postponed (maintainer needs more info) » Active

I'm not sure if this is the same, by the way.

markus_petrux’s picture

Status: Active » Closed (cannot reproduce)

Ok, I'm afraid I still do not understand this issue.

1) modalframe blocks module requires modalframe module. So it should not be possible to install the former until the later is installed.

2) modalframe module requires jquery_ui module in the .info file. Again, it should not be possible to install the former until the later is installed.

3) modalframe_requirements() in modalframe.install prevents from installing the module if the version of the jQuery UY library is not 1.7 or higher.

As I can see this, Drupal should only allow you to install modalframe blocks module when all requirements are properly installed. That's how these modules have been coded to work.

Please, re-open if there's a method to reproduce this issue. At this moment, I cannot reproduce. It works for me as described above.

socialnicheguru’s picture

Status: Closed (cannot reproduce) » Active

I just got this.

install automodal, modalframe, and modal_contrib modules all at the same time.
don't upgrade jquery or update it incorrectly
if jquery is not 1.7 or above you should get an error.
Instead you get the fatal error above. I think it is because modalframe does not get installed but somehow modules dependent on it does.

Edit:
I downloaded the wrong jquey library.
I had to remove modalframe_contrib module
I was able to get back to my modules page
I noticed that modalframe api box was greyed out and no check box
But the automodal module was enabled.

markus_petrux’s picture

Status: Active » Postponed (maintainer needs more info)

The problem described in #6 could be perfectly caused by the way automodal is implemented.

mokaspar’s picture

Status: Postponed (maintainer needs more info) » Active

actually, i just had the same problem.

what i did:
i downloaded modalframe, modalframe contrib and jQuery Update and then selected all the modalframe contrib-modules. on the next page, i got this error:

Fatal error: Call to undefined function modalframe_parent_js() in /home/sites/tools.elearning.zhdk.ch.local/Documents/sites/all/modules/modalframe_contrib/modalframe_blocks/modalframe_blocks.module on line 125