I installed the module on my personal drupal site running on Windows XP (Apache 2.2.3, PHP 5.2.0), but all I get, after I enabled the module, is to see all the pages blanked. I don't even see the drupal navigation menu, and if I check the HTML source of the page, it is empty.
~Kiam

Comments

lapurd’s picture

That's really strange. I would suspect this is related to your server setup at the moment. It could be your Drupal install has run out of memory. Now this module actually consumes very little memory, but it could be that your php memory setup just is too restrictive.

You could try this; edit the .htaccess in your site's root directory and change or add the following line:
php_value memory_limit 8M

If that's not working try increasing the memory_limit from there.

Now if that does not help, could you check your apache log for any hints about the cause of this error?

avpaderno’s picture

The error reported by Apache is the following:
PHP Fatal error: Cannot redeclare http_get() in C:\\Programmi\\Apache Software Foundation\\Apache2.2\\htdocs\\drupal\\modules\\donations\\donations.module on line 872.

I checked, and it comes out that http_get() is already a function defined in the standard PHP 5 extension "http". So the problem is the name conflict that is in donations module.

avpaderno’s picture

It should be suggested to prefix all the module functions with the module name, to avoid conflicts with any function defined by PHP or by other modules. That is valid for pubblic, and private functions (the Drupal core follows this line too).

lapurd’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Project: » Lost & found issues

This issue’s project has disappeared. Most likely, it was a sandbox project, which can be deleted by its maintainer. See the Lost & found issues project page for more details. (The missing project ID was 16484)