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.
In libraries 7.x-2.x-dev the libraries_get_path method return FALSE if the library wasn't found so the FirePHPCore is installed in DRUPAL_ROOT instead of sites/all/libraries path.
Attached a patch.
Comment | File | Size | Author |
---|---|---|---|
#11 | devel-1179094.patch | 2.43 KB | jonhattan |
#9 | devel-1179094.patch | 1.02 KB | jonhattan |
#7 | devel-1179094.patch | 2.67 KB | jonhattan |
#4 | devel-1179094.patch | 2.67 KB | jonhattan |
devel.drush_.inc_.patch | 606 bytes | lucor | |
Comments
Comment #1
pcambraLet's try to check this problem in the sprint
Comment #2
jonhattanComment #3
jonhattanSame problem with Drupal 8 - libraries 8.x-3.x
Comment #4
jonhattanSince Drupal 8, the default path for contrib libraries is in the root folder (same for modules and themes), so the default location for FirePHP should be DRUPAL_ROOT/libraries instead of the devel folder. To this extent libraries module has nothing to do.
OTOH, libraries comes to the party if you want to place FirePHP at legacy sites/all/libraries, at sites/default/libraries or your profile's libraries folder. So libraries integration is only wanted if you are using one of those locations.
The fix for D7 is quite different, so if this patch gets accepted, it would need to be ported.
Comment #5
juampynr CreditAttribution: juampynr commentedCommitted. Thanks!
Comment #6
jonhattanFor drupal 7, the code must behave different depending on libraries.module version
Comment #7
jonhattanWhile working in the d7 version I realized the above patch has a flaw. We really need libraries module to check if FirePHP is already downloaded to any of the supported libraries locations!
Comment #9
jonhattanWrong patch file in #7
Comment #10
juampynr CreditAttribution: juampynr commentedCommitted. Thanks!
Changed version to 7.x-1.x
Comment #11
jonhattanHere we go.
In Drupal 7 we still support FirePHP inside devel folder and also need to manage the API change between libraries 1.x and 2.x.
Comment #12
juampynr CreditAttribution: juampynr commentedCommitted to 7.x-1.x. Thanks!