file_get_contents error after activation

Bug #540603 reported by Robert Grønning
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
UD Countdown
Fix Released
Undecided
Unassigned

Bug Description

Immediately after activating the module, i get this error message in the webpage:

warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /nfs/www/no/www.ubuntu.no/htdocs/modules/ubuntu-drupal-countdown/udcountdown_cron.inc on line 16.
warning: file_get_contents(http://edge.launchpad.net/ubuntu-drupal-countdown/misc/release-version/+download/pointer) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /nfs/www/no/www.ubuntu.no/htdocs/modules/ubuntu-drupal-countdown/udcountdown_cron.inc on line 16.
The installed version of at least one of your modules or themes is no longer supported. Upgrading or disabling is strongly recommended! Please see the project homepage for more details. See the available updates page for more information.

This module is lp:ubuntu-drupal-countdown rev. 44

Also when entering /admin/settings/udcountdown , I get the following error:

warning: fopen(sites/default/files/countdown/data/desc.csv) [function.fopen]: failed to open stream: No such file or directory in /nfs/www/no/www.ubuntu.no/htdocs/modules/ubuntu-drupal-countdown/udcountdown_settings.inc on line 65.

Related branches

Revision history for this message
Robert Grønning (slimg) wrote :

Forgot to mention: Using a fresh Drupal 6.16 install

Revision history for this message
Michael Lustfield (michaellustfield) wrote :

Do you have php5-curl installed? It is required to perform the get operations.

The failed to open stream error sounds like your system is not getting out to launchpad.net or is not following the redirect.

As per your question on IRC, (you should wait around so we can actually answer your question):
lp:ubuntu-drupal-theme is the latest development
lp:ubuntu-drupal-theme/6.x-old is the latest version that is currently stable

If you want production level versions, please see drupal.org. You can also see the projects I manage on drupal.org at the bottom of this page. http://drupal.org/user/302171 Those are production level version. Launchpad is for development of the modules and should not be used in a production level environment.

Changed in ubuntu-drupal-countdown:
status: New → Incomplete
Revision history for this message
Robert Grønning (slimg) wrote :

Ah, would it be okay of I push the following udcountdown_cron.inc patch to remove the curl dependency?

26,32c26
< $cur = curl_init();
< curl_setopt($cur, CURLOPT_URL, $pointer . '/+download/rv');
< curl_setopt($cur, CURLOPT_RETURNTRANSFER, TRUE);
< curl_setopt($cur, CURLOPT_FOLLOWLOCATION, TRUE);
< $curval = curl_exec($cur);
< curl_close($cur);
< $curval = trim($curval);
---
> $curval = file_get_contents("$pointer/+download/rv");

file_get_contents seems to do the same job as curl in this case.

Now I don't receive any error-messages anywhere except for the following in admin/settings/udcountdown :

warning: fopen(sites/default/files/countdown/data/desc.csv) [function.fopen]: failed to open stream: No such file or directory in /nfs/www/no/www.ubuntu.no/htdocs/modules/ubuntu-drupal-countdown/udcountdown_settings.inc on line 65.

Ps. I use IRC for quick questions, if I don't get an answer there I use bugtrackers like this one instead, I don't expect you to answer me immediately on IRC, I'm just trying my luck :)

Revision history for this message
Robert Grønning (slimg) wrote :
Changed in ubuntu-drupal-countdown:
status: Incomplete → Fix Committed
Revision history for this message
Michael Lustfield (michaellustfield) wrote :

Pushed to Drupal

Changed in ubuntu-drupal-countdown:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.