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.
I am getting following error -
PHP Fatal error: require_once(): Failed opening required 'sites/all/modules/contrib/google_appliance/google_appliance.helpers.inc' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/html/somesite/sites/all/modules/contrib/google_appliance/google_appliance.module on line 9
I am loading Drupal in external PHP script -
define('DRUPAL_ROOT', '/var/www/html/somesite');
require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
Comment | File | Size | Author |
---|---|---|---|
#3 | php-fatal-error-on-drupal-bootstrap-2705339-11081721.patch | 693 bytes | jadhavdevendra |
Comments
Comment #2
jadhavdevendra CreditAttribution: jadhavdevendra as a volunteer commentedProblem is in the module file where helpers and default theme implementations are loaded using require_once
Current implementation -
It should be as follows as per documentation at https://api.drupal.org/api/drupal/includes!module.inc/function/module_lo...
Comment #3
jadhavdevendra CreditAttribution: jadhavdevendra as a volunteer commentedComment #4
jadhavdevendra CreditAttribution: jadhavdevendra as a volunteer commentedPlease incorporate this patch in the subsequent release.