Function adserve_cache_display($ids) uses header() instead of drupal_set_header() which makes it conflict with any modules registering shutdown functions and relying on checking headers like Devel module.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

OnkelTem’s picture

Priority: Major » Normal
Status: Active » Needs review
FileSize
4.94 KB
OnkelTem’s picture

FileSize
64 bytes

Using drupal_set_header() raises PHP Fatal error when File cache is ON, since common.inc is not included.
Fixing.

OnkelTem’s picture

FileSize
5.29 KB

Ops. Wrong export. Retrying.

The new part is:

diff --git a/adserve.inc b/adserve.inc
index c504855..0bf1112 100644
--- a/adserve.inc
+++ b/adserve.inc
@@ -286,6 +286,7 @@ function adserve_include_drupal() {
     }
   }
   require_once adserve_variable('root_dir') .'/includes/bootstrap.inc';
+  require_once adserve_variable('root_dir') .'/includes/common.inc';
 }
 
 /**
OnkelTem’s picture

Issue summary: View changes

Updated issue summary.