Closed (fixed)
Project:
Content Profile
Version:
6.x-1.x-dev
Component:
Base module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Nov 2008 at 22:13 UTC
Updated:
9 Dec 2008 at 15:42 UTC
Steps to reproduce:
- Create a CCK Text Field
- Widget Type: Text Field
- Global Settings: Number of Values: Unlimited
- Edit a profile which has this field, click the Save button.
- This results in a white screen, and the data is not saved.
In my php error log, I get this:
PHP Fatal error: Call to undefined function node_form_submit_build_node() in /Users/david/localplay2/sites/all/modules/cck/includes/content.node_form.inc on line 263
PHP Stack trace:
PHP 1. {main}() /Users/david/localplay2/index.php:0
PHP 2. menu_execute_active_handler() /Users/david/localplay2/index.php:18
PHP 3. call_user_func_array() /Users/david/localplay2/includes/menu.inc:348
PHP 4. user_edit() /Users/david/localplay2/includes/menu.inc:0
PHP 5. drupal_get_form() /Users/david/localplay2/modules/user/user.pages.inc:235
PHP 6. drupal_process_form() /Users/david/localplay2/includes/form.inc:119
PHP 7. form_execute_handlers() /Users/david/localplay2/includes/form.inc:409
PHP 8. content_add_more_submit_proxy() /Users/david/localplay2/includes/form.inc:767
PHP 9. content_add_more_submit() /Users/david/localplay2/sites/all/modules/cck/content.module:463
Editing the node directly, instead of on the user profile page, works as expected. The data is saved correctly.
Comments
Comment #1
nadavoid commentedI think that there is some weirdness with the form building that might be causing this issue. Currently, the form output looks something like this...
Or, more condensed...
So.. it's like the user profile form is getting mixed with the node edit form. Any thoughts on how we get better control of this? Also, do you think this would be causing the problem with repeating fields?
Comment #2
fagoyes, read http://drupal.org/node/332998#comment-1117734 and in particular http://drupal.org/node/293836.
Comment #3
fagothis should be fixed with the fix of this issue: http://drupal.org/node/332998#comment-1123924
So please test the next generated development snapshot and make sure to have your menu cache cleared when testing, e.g. hit submit at the admin modules page after updating the module.
Comment #4
nadavoid commentedYes, it is fixed for me. Thanks fago!