I tried to "rebuild cache" within Content Complete module ant I got an error:

warning: array_keys() [function.array-keys]: The first argument should be an array in ..../emploi/sites/all/modules/addresses/addresses_cck/addresses_cck.module on line 15.

seems to have incompatibility with addresses CCK?

no problem with other CCK.

Comments

clashar’s picture

still no answer?

tedfordgif’s picture

Status: Active » Reviewed & tested by the community

This is a bug with the way content_complete is calling hook_content_is_empty(). Patch:

--- content_complete/content_complete.module    2010-03-30 16:05:29.000000000 -0400
+++ content_complete/content_complete.module    2010-03-30 16:08:46.000000000 -0400
@@ -447,7 +447,7 @@
         if (!isset($raw[0])) {
           $value = '';
         }
-        elseif (!$function($raw[0], $field_name)) {
+        elseif (!$function($raw[0], $field_data)) {
           $value = 'cck'; // A dummy value to flag this field has been set
         } 
         else {
clashar’s picture

thank you!

I can't create patches directly on server, I do it on my local machine and then upload to sever.

1) Could you please if I should firstly uninstall the module before copying applied patch to server. Or I could just replace the file by FTP.

2) And another question: will be that patch included to future versions of the Content Complete module or I should apply it every time to each version?

tedfordgif’s picture

1) You can just update the file, then upload it again via FTP. That should always work for one-line changes (barring typos).

2) One of the module maintainers will have to commit this patch (pvhee, hunvreus).

clashar’s picture

tedfordgif, thank you!!

pvhee’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for the patch in #2, I've committed this to the CSV.

Status: Fixed » Closed (fixed)

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