Closed (duplicate)
Project:
CDN
Version:
7.x-2.x-dev
Component:
Origin Pull mode
Priority:
Minor
Category:
Bug report
Assigned:
Reporter:
Created:
2 Feb 2012 at 21:34 UTC
Updated:
4 Feb 2012 at 14:18 UTC
I was testing CDN on a bare-bones D7 install and got a WSOD every time I tried to visit the "Other"-tab on the CDN configuration pages.
PHP Fatal error: Call to undefined function ctools_dependent_process() in includes/form.inc on line 1766
It seems that CDN currently expects ctools to be enabled:
if (variable_get(CDN_MODE_VARIABLE, CDN_MODE_BASIC) == CDN_MODE_BASIC) {
$form['https'][CDN_BASIC_MAPPING_HTTPS_VARIABLE] = array(
'#type' => 'textarea',
'#title' => t('CDN mapping for HTTPS'),
'#description' => t('If your CDN supports HTTPS, but requires you to
use different URLs, then you can define an
alternative CDN mapping here. This overrides the
"regular" CDN mapping completely, when using
HTTPS.'),
'#size' => 35,
'#default_value' => variable_get(CDN_BASIC_MAPPING_HTTPS_VARIABLE, ''),
'#process' => array('ctools_dependent_process'),
'#dependency' => array('edit-cdn-https-support' => array('1')),
);
}
So it seems we should either set ctools as a dependency (patch attached), or replace the ctools_dependent_process()-functionality with standard Drupal-ajax.
| Comment | File | Size | Author |
|---|---|---|---|
| cdn-wsod-ctools.patch | 306 bytes | mr.baileys |
Comments
Comment #1
wim leersOh, no, that's something that must've been carried over accidentally! (This functionality was originally written for D6.) It probably doesn't fail on my set-up because I do have ctools. The #process callback should simply be removed.
Comment #2
wim leersWorse, I apparently forgot to port it from ctools to Drupal 7's #states at all.
Comment #3
wim leersNow merged into #1267902-28: Allow different CDN domain when using HTTPS.