I just updated to 7.12 from 7.10 without any problems other than the following. I am using the webform module for a contact page with a link in the main menu along with a survey page. I don't have a problem with the survey page, but the contact page displays the following error. "Directory has no index file."
If I edit either the contact page (through the admin panel) or the survey, both webform content types display the following error in the red box. "Notice: Use of undefined constant DRUPAL_WEIGHT_SELECT_MAX - assumed 'DRUPAL_WEIGHT_SELECT_MAX' in form_process_weight() (line 3801 of /../includes/form.inc)."

CommentFileSizeAuthor
#1 form.patch756 bytesjmaties

Comments

jmaties’s picture

StatusFileSize
new756 bytes

A good solution

felix2468’s picture

Works perfectly for me - thanks. I jumped from 7.9 to 7.12 last night, I disabled WebForms module after the upgrade but it seems it left some code behind.

valthebald’s picture

Status: Active » Needs work

The patch is hiding problem instead of solving it.
In

$max_elements = variable_get('drupal_weight_select_max', DRUPAL_WEIGHT_SELECT_MAX);

$max_elements is expected to be integer (constant DRUPAL_WEIGHT_SELECT_MAX = 100),
converting it to string 'DRUPAL_WEIGHT_SELECT_MAX' make $max_elements evaluate to 0, which, I think, was not an intent

Version: 7.12 » 7.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.

Status: Needs work » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.