Closed (fixed)
Project:
MySite
Version:
5.x-2.16
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Jan 2008 at 22:42 UTC
Updated:
20 Jan 2008 at 18:14 UTC
When I deployed the module to a server running PHP 4.x, I found that the $key variable was getting reinitialized on line 2990
$includes[$mykey] = file_scan_directory($dir, $mask, $nomask = array('.', '..', 'CVS'), $callback = 0, $recurse = FALSE, $key = 'name', $min_depth = 0, $depth = 0);. The same code worked fine in my dev environment, where I'm running PHP 5.2. Not a PHP expert, so I don't know what's causing the issue on the server.
This caused mysite_plugin_failure() to keep getting triggered, even though the plugin existed. The patch I applied was simply to rename the $key variable to something else, say $mykey, and the problem was resolved.
Comments
Comment #1
agentrickardInteresting. This was also reported at http://drupal.org/node/208276.
I run 5.1.6 on my dev machine and 4.4.7 on the demo site without an issue.
I suspect this is a PHP configuration issue.
Let's move the discussion to the other thread and compare notes to see what the common issue is.
Comment #2
agentrickardPlease test the patch at http://drupal.org/node/208933
Comment #3
agentrickardComment #4
agentrickardAddressed in 5.x.2.17.
I am quite disappointed that the patch received no reviews.