Statistics.php not defining DRUPAL_ROOT, php error

Created on 25 March 2014, over 10 years ago
Updated 30 March 2024, 9 months ago

On Windows Server 2008 R2, IIS 7.5:
Line 11 of statistics.php is expecting $_SERVER['SCRIPT_FILENAME'] to have forward slashes "/" in the path.

On Windows, it is instead a backslash,i.e. 'x:\Drupal\modules\statistics.php', which results in DRUPAL_ROOT being empty.

When line 13 is called, 'chdir(DRUPAL_ROOT)' a php error is logged.

πŸ› Bug report
Status

Closed: duplicate

Version

7.0 ⚰️

Component
StatisticsΒ  β†’

Last updated 4 days ago

No maintainer
Created by

πŸ‡ΊπŸ‡ΈUnited States etvprog

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