code using the drupal systems outside of the drupal root

Created on 8 March 2017, almost 8 years ago
Updated 10 January 2025, 9 days ago

Hello. I had a issue using your module when a custom code using the drupal systems outside of the drupal root installation. To resolve this issue i change the file vat_number.module in the line 3 (require_once(drupal_get_path ('module', 'vat_number') . '/vat_number.inc');) for

$vat_path = drupal_get_path('module', 'vat_number');
require_once DRUPAL_ROOT . '/' . $vat_path . '/vat_number.inc';

I hope this can help some body else

🐛 Bug report
Status

Closed: won't fix

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom Sebastian_Campanella

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024