Hello

it seems like there was a mix of code between 7.x and 6.x because the 6.x-2.0-beta3 is using drupal_static() which is a D7 function.

Module not working

Federico

Comments

steven jones’s picture

Status: Active » Fixed

Doh! Sorry about that. New release coming...

adamdicarlo’s picture

Title: Wrong core version » Wrong core version: file_prepare_directory()
Version: 6.x-2.0-beta3 » 6.x-2.0-beta4
Status: Fixed » Active

Looks like there's still some D7 code in 6.x-2.0-beta4:

Fatal error: Call to undefined function file_prepare_directory() in /home/.../.../drupal/sites/all/modules/hacked/includes/hacked_project.inc on line 352

steven jones’s picture

Sorry guys, I'm going to write some simpletests, which should help with these silly issues that crop up because I'm not testing correctly.

steven jones’s picture

Status: Active » Fixed

I botched the beta4 release, beta5 should have the fix in it.

adamdicarlo’s picture

I still wasn't able to get the report to generate with 6.x-2.0-beta6 so I just used beta1. It looked to me like whatever was in place of the file_prepare_directory() just wasn't creating the directory. I didn't save the output but I can try it again if you like.

steven jones’s picture

@adamdicarlo Yeah, just noticed this too, and fixed it in git.

Status: Fixed » Closed (fixed)

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