Closed (fixed)
Project:
Advertisement
Version:
6.x-2.2
Component:
ad_cache_file module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Feb 2010 at 18:43 UTC
Updated:
23 May 2014 at 21:50 UTC
Jump to comment: Most recent
Comments
Comment #1
grzegorz.bartman commentedI have this error too
warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/vhosts/................./httpdocs/../ad_/ad_cache_.inc) is not within the allowed path(s): (/var/www/vhosts/................/httpdocs:/tmp) in /var/www/vhosts/................/httpdocs/sites/all/modules/ad/adserve.inc on line 147.
Comment #2
grzegorz.bartman commentedi fixed it by changing line 144 (adserve.inc) to:
Comment #3
kingandyWorks for me...
Comment #4
istryker commentedThis error happen to me to, on my plesk parallel control panel server.
Can someone who knows the module better review this
Comment #5
kenorb commentedIt's because php is in safemode
http://php.net/manual/en/features.safe-mode.php
Comment #6
Anonymous (not verified) commentedSame here. So which is the correct solution? Disabling Safe Mode? Will this affect other modules or Drupal configurations?
What if Safe Mode can't be changed, is the patch mentioned by grzegorz.bartman a correct work-around ? Will it be commited to the next version?
Thank you
Comment #7
john franklin commentedSafe mode is deprecated in 5.3 and will be gone in 6.0. I would suggest marking this issue "won't fix."
Comment #8
Branndon commentedIn 6.2 of the admodule, mine was on line 188
So search for this line
if ($variables->adcache != 'none') {and replace it with :
if ($variables->adcache != 'none' && $variables->adcache != '' ) {Comment #9
StephanMoe commentedMay 2014 ... In Ad module 6.24, on a drupal 6.31 with php 5.3.28-1 and Safe mode off i too had the problem.
The fix from comment #02 worked for me too, but it was in line 154 of the adserve.inc file.
Comment #11
fizk commentedSeems like PHP 5.3 is still very popular, so I've committed #2.