Trying to edit a profile field, I got a WSOD when I clicked "Save field". The error was:

PHP Fatal error: Call to undefined method UpdateQuery::exeucte() in /Applications/MAMP/htdocs/drupal/modules/profile/profile.admin.inc on line 370

CommentFileSizeAuthor
#1 profile_field_update_typo.patch818 byteszoen

Comments

zoen’s picture

Status: Active » Needs review
StatusFileSize
new818 bytes

Here's a patch which corrects the typo ("exeucte" to "execute") in profile.admin.inc. Should fix the WSOD badness.

zoen’s picture

Title: Typo in function call causes WSOD when editing profile field » WSOD when editing any profile field - typo in method call may be the cause
Status: Needs review » Needs work

Huh. My patch doesn't fix the WSOD after all. There's nothing in my PHP error log, but the following error is logged to watchdog:

PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'op' in 'field list': UPDATE {profile_field} SET fid=:db_update_placeholder_0, category=:db_update_placeholder_1, title=:db_update_placeholder_2, name=:db_update_placeholder_3, explanation=:db_update_placeholder_4, visibility=:db_update_placeholder_5, page=:db_update_placeholder_6, weight=:db_update_placeholder_7, autocomplete=:db_update_placeholder_8, required=:db_update_placeholder_9, register=:db_update_placeholder_10, op=:db_update_placeholder_11, submit=:db_update_placeholder_12, form_build_id=:db_update_placeholder_13, form_token=:db_update_placeholder_14, form_id=:db_update_placeholder_15, options=:db_update_placeholder_16 WHERE (fid = :db_condition_placeholder_21) ; Array ( [:db_update_placeholder_0] => 1 [:db_update_placeholder_1] => foo [:db_update_placeholder_2] => bar [:db_update_placeholder_3] => profile_bar [:db_update_placeholder_4] => [:db_update_placeholder_5] => 3 [:db_update_placeholder_6] => [:db_update_placeholder_7] => 0 [:db_update_placeholder_8] => 0 [:db_update_placeholder_9] => 1 [:db_update_placeholder_10] => 0 [:db_update_placeholder_11] => Save field [:db_update_placeholder_12] => Save field [:db_update_placeholder_13] => form-5d88ffe128f3f38bcfd0a5cae078c0cd [:db_update_placeholder_14] => a7fb2983b75d421543eec6115c013d18 [:db_update_placeholder_15] => profile_field_form [:db_update_placeholder_16] => [:db_condition_placeholder_21] => 1 ) in profile_field_form_submit() (line 370 of /Applications/MAMP/htdocs/d7/modules/profile/profile.admin.inc).

This is as far as I can go at my skill level - we need someone who can interpret the DB error above and find the true cause of the WSOD.

kjy07’s picture

Status: Needs work » Closed (duplicate)

This looks to be a duplicate of: #493520: Profile fields cannot be updated