windows root dir detection problem

morningtime - October 4, 2009 - 10:25
Project:Advertisement
Version:6.x-2.1
Component:adserve.php
Category:bug report
Priority:normal
Assigned:Unassigned
Status:fixed
Description

adserve_variable('root_dir') is empty on my windows vista + iis7 + drupal 6.19 installation. So it wants to look for /includes/bootstrap.inc instead of c:\inetpub\www\drupal\includes\bootstrap.inc

require_once adserve_variable('root_dir') .'/includes/bootstrap.inc'; fails.

But if I add the right path manually, then bootstrap cant find cache.inc suddenly. Etc. etc. Seems to be a problem for windows people.

#1

Jeremy - October 8, 2009 - 13:15
Status:active» postponed (maintainer needs more info)

If you enter a correct root_dir, then the ad module shouldn't have any trouble finding adcache.inc. Please follow the directions in documentation/DEBUG.txt and provide the output here.

#2

attiks - November 5, 2009 - 14:54

change line 262 to $path = explode('/', str_replace('\\', '/', adserve_variable('ad_dir')));

#3

Jeremy - November 23, 2009 - 19:39
Status:postponed (maintainer needs more info)» fixed

Thanks, fix committed:
http://drupal.org/cvs?commit=293126

 
 

Drupal is a registered trademark of Dries Buytaert.