- π«π·France vanessakovalsky
Need to check and use constant DIRECTORY_SEPARATOR in statistics.php file
- π«π·France vanessakovalsky
Still need to fix on D10 on statistics.php line "chdir("../../..")
I have encountered a new issue in statistics.php file.
My statistics counters do not increment. I am running on IIS and the define at the top
define('DRUPAL_ROOT', substr($_SERVER['SCRIPT_FILENAME'], 0, strpos($_SERVER['SCRIPT_FILENAME'], '/modules/statistics/statistics.php')));
is not platform directory separator aware.
It should be something like:
PHP_OS == "Windows" || PHP_OS == "WINNT" ?
define('DRUPAL_ROOT', substr($_SERVER['SCRIPT_FILENAME'], 0, strpos($_SERVER['SCRIPT_FILENAME'], '\\modules\\statistics\\statistics.php'))) :
define('DRUPAL_ROOT', substr($_SERVER['SCRIPT_FILENAME'], 0, strpos($_SERVER['SCRIPT_FILENAME'], '/modules/statistics/statistics.php')))
Needs work
10.3 β¨
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Need to check and use constant DIRECTORY_SEPARATOR in statistics.php file
Still need to fix on D10 on statistics.php line "chdir("../../..")