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.
Generally when we have the require_once , it returns sites/all/modules/encrypt/,
In case, if we have the Docker/VM setup in the project environment, the Drupal codebase will reside inside the sub directory..
At this point of time..
If i run drush command with some operation on encrypt module, it would throw an warning message like Path not Found.
So, it better to have DRUPAL_ROOT included here..
- require_once $info['file'];
+ require_once DRUPAL_ROOT . '/' . $info['file'];
Comment | File | Size | Author |
---|---|---|---|
#2 | 2831658-2.patch | 574 bytes | heykarthikwithu |
Comments
Comment #2
heykarthikwithuadded a patch for this
Comment #3
heykarthikwithuwas able to reproduce this warning is been thrown when the module folder is been placed in the
sites/all/modules
orsites/all/modules/contrib
Comment #4
rlhawkCan you switch to using Encrypt 7.x-2.3? The 1.x branch has not been supported for quite some time.
Comment #5
heykarthikwithuyup sure.. but their were some reasons, where we are still using 1.x..
any how, their is no reason to get this minor improvement in the unsupported branch..
we can ignore this :)