If hacked is run from drush (in my case using the --lock-modified switch), the following errors occur:

Error: Call to undefined function file_prepare_directory() in /var/aegir/platforms/mailflow2/sites/all/modules/hacked/includes/hacked_project.inc, line 352
Invalid argument supplied for foreach() in /var/aegir/platforms/mailflow2/sites/all/modules/hacked/hacked.drush.inc on line 201.

If run from the web interface, the "Invalid argument" error occurs and shows up in the dblog. I have tried clearing all caches.

Comments

steven jones’s picture

Status: Active » Fixed

So, so sorry for these errors, a git cherry-pick went very wrong and a lot of D7 code ended up in the D6 branch.

This should now be fixed in the dev branch.

danepowell’s picture

Version: 6.x-2.0-beta4 » 6.x-2.x-dev
Status: Fixed » Active

Nope, not fixed unfortunately.

adamdicarlo’s picture

I just reopened #1096936: Wrong core version: file_prepare_directory() with this same error (didn't see this issue). I'll let the maintainer decide which to mark duplicate and whatnot.

steven jones’s picture

Status: Active » Fixed

This should also now be fixed in beta5, thanks for your patience.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.