When Teleport is active, the update.php page doesn't show anymore the list of the installed modules because the fieldset Select versions is not collapsible and cannot be expanded anymore.
I checked the HTML code produced by the PHP, and it's all correct (the fieldset is marked with the classes collapsible and collapsed; the rest of the page is correct apart the fact that teleport.js is included in the page).
I would guess the problem in in the code of teleport.js, but I am not able to understand what is wrong, or why teleport.js is the only third party JavaScript file included in the HTML code generated from update.php.
Comments
Comment #1
incidentist commentedComment #2
avpadernoChecking better at the module, I noticed the following definition for the init hook:
This function causes the
teleport.jsto be included in theupdate.php(which is not the desired thing).I would rather put the code in the menu hook, where such code is usually put.
The use of hook_init() is different between the versions of Drupal. In Drupal 5.x, it's called in all the pages served by Drupal (including such pages like update.php), and it would be used to
include()PHP code files basing on the active modules. It seems thatteleport.modulehas been written for Drupal 6.x, and then ported back for Drupal 5.x.It's not still clear why
teleport.jscreates some conflicts with others JavaScript files, and that is something that needs to be investigated more.Comment #3
avpadernoThe issue is still valid with the version 5.x-1.0 dated May 16th.
Comment #4
avpadernoI reinstalled the module, and I don't see the issue anymore. Maybe it was some conflict with another module.
Still, I would move the code from
hook_init()tohook_menu()(that is the way it should be done with Drupal 5.x).Comment #5
avpadernoComment #6
stevethewebguy commentedThis fix worked in Drupal 6.16 (with Jquery 1.3 & UI 1.7):
You can add the ampersand to the matches var this line (in modules/teleport/teleport.module) to make it into a reference for use on PHP 5. So replace this line:
$matches = call_user_func('_teleport_matches_'. $type, $query, $matches, $aliases);With this:
$matches = call_user_func('_teleport_matches_'. $type, $query, &$matches, $aliases);And that should make work, it did the trick for me.
Love the module dude, thanks.
Comment #7
avpadernoI am closing this issue, which is for a not supported Drupal version.