Closed (fixed)
Project:
Lost & found issues
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
29 Aug 2005 at 10:45 UTC
Updated:
5 Nov 2005 at 15:00 UTC
Jump to comment: Most recent, Most recent file
Installing the donations.module file in the modules directory in drupal causes the admin modules page to return blank. Deleting the donations.module file from the directory fixes the problem.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | donations.module | 38.43 KB | rgladwell |
Comments
Comment #1
lapurd commentedHi, I just tried to reproduce the bug, but I cannot seem to be able to reproduce it. I am using a fresh Drupal 4.6.0. When the module is disabled, I can access all pages fine. When it's enabled, I can access all pages fine as well.
Perhaps I need to activate another module for it to break first? Maybe I am looking at the wrong pages??
See the following screenshots:
http://donorge.org/graphics/mod_enabled_1.png
http://donorge.org/graphics/mod_enabled_2.png
http://donorge.org/graphics/mod_enabled_3.png
http://donorge.org/graphics/modules.png
http://donorge.org/graphics/modules.png
Comment #2
lapurd commentedlast link has typos;
http://donorge.org/graphics/modules_1.png
http://donorge.org/graphics/modules_2.png
Comment #3
rgladwell commentedThank for the detailed follow-up. Apologies if I didn't make this clear in the original issue post, but I'm using the bug-fix release, Drupal 4.6.3.
Comment #4
lapurd commentedSame story for 4.6.3 so far (fresh tried). It loads http://localhost/d/?q=admin/modules just fine, all other pages as well. Are you perhaps using a 4.5.0 version of the donations module? I have put the latest version of the module here, try that one out. http://donorge.org/donations.module.zip
Comment #5
rgladwell commentedI'm getting the same behaviour for http://localhost/admin/modules (I have clean URLs enabled).
Examining my Apache error log I can see the following error message:
[client 127.0.0.1] PHP Fatal error: Cannot redeclare d_xml_parser::$inside_item_don_latest in /var/www/html/modules/donations.module on line 581, referer: http://localhost/adminComment #6
lapurd commentedThat was just the info I needed ;) Try this one, it should work now: http://donorge.org/donations.module.zip Thanks for the reporting.
Comment #7
rgladwell commentedDeleting duplicate lins 581, and 617 - 628 seems to fix this problem, but now when I attempt to access the modules admin page I get:
Comment #8
lapurd commentedTry the fixed http://donorge.org/donations.module.zip version, that one should work fine.
Comment #9
rgladwell commentedSorry, that version still comes back with an error message:
[client 127.0.0.1] PHP Fatal error: Cannot redeclare d_xml_parser::$show_donation_link in /var/www/html/modules/donations.module on line 620I have created a new donations.module (see attached) without the offending lines but this seems to be causing some sort of infinite loop on my machine as per my last follow-up to this bug.
Comment #10
lapurd commentedCould you try the new http://donorge.org/donations.module.zip ?
Comment #11
rgladwell commentedStill getting an error message:
[client 127.0.0.1] PHP Fatal error: Cannot redeclare d_xml_parser::$date in /var/www/html/modules/donations.module on line 621, referer: http://localhost/adminThe d_xml_parser class has several duplicate lines, please see the donations.module file I attached to my last follow-up. This removes all duplicate class variable declarations but now causes an infinite loop.
Comment #12
rgladwell commentedNote I am using PHP 5.0.4 on Fedora Core 4, using Apache 2.0.54.
Comment #13
lapurd commentedI suspect this could be related to your system or host using a php5 version. I am debuging on a php4 box here. I see if I can get php5 running, i
... just received your reply. Yes, php5 is the difference here. I'll see if I can get a php5 running. I'm on Kubuntu Linux here.
Comment #14
rgladwell commentedThanks for your time and patience here. Let me know if you need anymore help locating the bug.
Comment #15
lapurd commentedI got php5 working, but I tried this on Apache 1 only. Can you try out the new http://donorge.org/donations.module.zip and see if it makes any difference for you? If not, I'll have to get Apache2 going as well. I should note that now it does work for me using php5 and Apache1 currently.
In case it's still not working, could you try this one as well? http://donorge.org/nohooks_donations.module.zip If that one works the bug is most likely in one hook of the module.
Comment #16
rgladwell commentedI still get memory allocation errors for both:
Comment #17
lapurd commentedI'm not sure at this point if this related to the module, or any code at all anymore.
Could this be due to a memory limit setting in your php/apache configuration? You could try adding 'php_value memory_limit 10M' to your .htaccess file (where Drupal is located off-coarse) and see if at some point it works. php_value memory_limit 12M etc. It works fine at php_value memory_limit 8M here, but it's using only the default modules on this configuration. It's seems from the error log you show that this seems simply a 8M memory limit problem by now.
Hope this helps.
Comment #18
lapurd commentedCould you indicate if the memory limit (see previous post) was the problem? Then the bug can be closed.
Comment #19
jhutchins commentedI had a similar problem moving to FC4/PHP5, the new module worked. Could it please be comited to the Drupal site?
Comment #20
lapurd commentedSure jhutchins, good to see it is working for you, it will done tommorow. The original bug reporter never got back to reporting if it worked for him.
Comment #21
lapurd commentedComment #22
(not verified) commented