Posted by clashar on March 24, 2010 at 4:07pm
4 followers
Jump to:
| Project: | Content Complete |
| Version: | 6.x-1.2 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
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
#1
still no answer?
#2
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 {
#3
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?
#4
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).
#5
tedfordgif, thank you!!
#6
Thanks for the patch in #2, I've committed this to the CSV.
#7
Automatically closed -- issue fixed for 2 weeks with no activity.