Coming up empty
| Project: | CCK Copy Body |
| Version: | 5.x-1.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
This module strikes me as a good idea, which I'd like to share with others. However, I haven't been successful in getting it to work.
I added a field named description, of type Text - Text field
I tried both Plain text and "Filtered text (user selects input format)"
I set the php_value memory_limit 28M in .htaccess.
I turned off a number of modules.
I selected CCK Node Type of Swim Group
The Copy to Field is field_description (there seemed to be an extraneous option named field_select, as well, perhaps coming from an integer field...)
I'm using the latest version of cck for d5.
Instead of returning to the page, I get a screen like this:
(Also, when I check the swim_group content type, the Description field is empty.)
Executed 29 queries in 39.61 milliseconds. Queries taking longer than 5 ms and queries executed more than once, are highlighted.
ms # where query
0.18 1 drupal_lookup_path SELECT COUNT(pid) FROM url_alias
0.21 1 drupal_lookup_path SELECT src FROM url_alias WHERE dst = 'admin/settings/cck_copy_body'
0.9 1 module_list SELECT name, filename, throttle FROM system WHERE type = 'module' AND status = 1 ORDER BY weight ASC, filename ASC
0.83 1 cache_get SELECT data, created, headers, expire FROM cache_menu WHERE cid = '1:en'
0.48 2 cache_get SELECT data, created, headers, expire FROM cache_views WHERE cid = 'views_urls'
0.23 2 cache_get SELECT data, created, headers, expire FROM cache_views WHERE cid = 'views_urls'
0.28 1 cck_copy_body_settings SELECT `node_type`.`type`, `node_type`.`name` FROM `node_type` WHERE `node_type`.`orig_type` = ''
0.18 1 cck_copy_body_settings SELECT `field_name` FROM `node_field` WHERE type = 'text'
1.22 1 cck_copy_body_settings_validate DESCRIBE content_type_swim_group
0.23 1 cck_copy_body_settings_submit select nid from content_type_swim_group

#1
Now I upped the memory to 128M. Also, turned off the Devel module. I just get a blank screen now, upon trying to perform the copy at admin/settings/cck_copy_body
#2
Sorry, I hadn't touched this since drupal 5.4
I pushed a bug fix, so grab the latest version or checkout from cvs and it should work now.
One thing to consider is that it will only copy the body to another field in the came content type.
Also, it is using [0]['value'] so it would only work with txt fields.
Let me know if this fixes the problem. I tested and it worked for me.
Also let me know if you have a different use case requiring additional functionality.