I'm in the process of upgrading my Drupal 7.18 site to 7.23. I read the Drupal release notes for 7.19-7.23 and noticed that 7.20 changes to the image module requires me to upgrade the CDN module. After upgrading the CDN module, I have not been able to set the status to enabled. I'm not sure if this is a bug or the symptom of another error. The module's Enabled checkbox is checked on the Drupal Admin Modules Screen (/admin/modules).

Here are the steps to recreate the issue.
1. Enable CDN module (/admin/modules)
2. Go to CDN module configuration (/admin/config/development/cdn)
3. Click the "Enabled" radio button
4. Click the "Display statistics" checkbox
5. Click the "Save configuration" button

Expected Result:
Page is reloaded and the "Enabled" radio button is checked

Actual Result.
Page is reloaded and the "Disabled" radio button is checked

Any help is greatly appreciated.

Thanks,
Jason

Comments

jsouthern’s picture

I will also note that on the Details tab, I specified a CDN mapping to a CDN URL that is configured to do an origin pull from the hostname of the Drupal site I was administering. When I did this, I received a Drupal warning message titled "Potentially problematic domains:" with a that said the CDN URL "uses the same web server as this Drupal site.". This other issue didn't reveal much: https://drupal.org/node/1886484.

I changed the CDN mapping to a different URL that did not have an origin of this server, and I still was unable to change the Status radio button selection from "Disabled" to "Enabled".

So, I'm concluding this issue has nothing to do with my CDN mapping values.

jsouthern’s picture

One more thing. This Drupal error message also appears after following in my initial post:

The CDN module has detected the following potential problems in its configuration:
* CDN integration is disabled for all users.

Interestingly, the value of the cdn_status variable in the Drupal variables table is
s:1:"2";

It appears to be saved as enabled in the table, but that's not what I'm seeing on the screen and URLs are not being rewritten with the CDN host or far-future info.

Wim Leers’s picture

Assigned: Unassigned » Wim Leers
Issue summary: View changes
Status: Active » Postponed (maintainer needs more info)

Are you using variable system-overriding modules like Strongarm perhaps?

IIRC, the CDN module has no such magic as is being described here.

Wim Leers’s picture

Status: Postponed (maintainer needs more info) » Fixed

.

Status: Fixed » Closed (fixed)

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

paolo.nappini’s picture

Component: Module » Code

I had the same problem on my drupal version 7.61 and CDN module cdn-7.x-2.10

I had set everything but when I check enable and the save configuration after reload module go to disabled