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

agentrickard’s picture

Status: Active » Closed (duplicate)

Interesting. 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.

agentrickard’s picture

Please test the patch at http://drupal.org/node/208933

agentrickard’s picture

Status: Closed (duplicate) » Needs review
agentrickard’s picture

Status: Needs review » Closed (fixed)

Addressed in 5.x.2.17.

I am quite disappointed that the patch received no reviews.