file_exists(): open_basedir restriction in effect. File(/srv/www/vhosts/funnydate.de/httpdocs/../ad_/ad_cache_.inc) is not within the allowed path(s): (/srv/www/vhosts/funnydate.de/httpdocs:/tmp) in /srv/www/vhosts/funnydate.de/httpdocs/sites/all/modules/ad/adserve.inc in Zeile 147.

I don't know unfortunately, when the error occures

Comments

grzegorz.bartman’s picture

I 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.

grzegorz.bartman’s picture

i fixed it by changing line 144 (adserve.inc) to:

if ($variables->adcache != 'none' && $variables->adcache != '' ) {
kingandy’s picture

Works for me...

istryker’s picture

Status: Active » Needs review

This error happen to me to, on my plesk parallel control panel server.

Can someone who knows the module better review this

kenorb’s picture

Status: Needs review » Active

It's because php is in safemode
http://php.net/manual/en/features.safe-mode.php

Anonymous’s picture

Same 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

john franklin’s picture

Safe mode is deprecated in 5.3 and will be gone in 6.0. I would suggest marking this issue "won't fix."

Branndon’s picture

In 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 != '' ) {

StephanMoe’s picture

Issue summary: View changes

May 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.

  • Commit 8193e8b on 6.x-2.x by fizk:
    #712848 grzegorz.bartman: Verify adcache filename is not empty.
    
fizk’s picture

Status: Active » Fixed

Seems like PHP 5.3 is still very popular, so I've committed #2.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.