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 uninstall JS injector 1.x-dev I get this message:
PHP Fatal error: Call to undefined function _js_injector_rule_path() in /Volumes/Daten HD/Daten/Webserver/Kunden/reventa.de/sites/all/modules/js_injector/js_injector.install on line 65
Comment | File | Size | Author |
---|---|---|---|
#7 | 1699768.js_injector_uninstallworkaround.patch | 1.17 KB | Wolfgang Reszel |
Comments
Comment #1
belekas CreditAttribution: belekas commentedSame problem happens for me.
Comment #2
wiifmDid you completely disable and uninstall 7.x-1.x, before upgrading to 7.x-2.x ?
Also be weary of any legacy files lingering in the module directory.
The safest way to upgrade this module is by using drush. Here are some sample commands - assuming you are starting from an existing 7.x-1.x install:
Hope this helps
Comment #3
Wolfgang Reszel CreditAttribution: Wolfgang Reszel commentedWell, 7.x-1.x can't be uninstalled, that's the problem.
Comment #4
Morten Nielsen CreditAttribution: Morten Nielsen commentedI’m also not able to uninstall version 7.x-1.x
Comment #5
wiifmCan I ask exactly what step fails? Is it the disabling of the module or the uninstalling of the module?
Comment #6
Wolfgang Reszel CreditAttribution: Wolfgang Reszel commentedDisabling works, the error appears when we uninstall the module. I can successfully uninstall the module when I copy the missing functions from js_injector.module to js_injector.install. I had to rename them as Drupal seems to load both files in some cases.
Comment #7
Wolfgang Reszel CreditAttribution: Wolfgang Reszel commentedMaybe my workaround is helpful for others. I've created a small patch. No guarantee that it works in your case.
Comment #8
Morten Nielsen CreditAttribution: Morten Nielsen commentedIt worked for me. Thank you so much, Wolfgang! :-)
For others doing their very first patch, the following guide was helpful to me:
http://drupal.org/node/620014