Closed (fixed)
Project:
Video
Version:
7.x-2.x-dev
Component:
General
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Oct 2013 at 13:15 UTC
Updated:
17 Oct 2013 at 16:20 UTC
I started getting the following error when editing video content types:
Division by zero
LINE: 910
FUNCTION: _video_dimensions_options()
FILE: sites/all/modules/contrib/video/video.field.inc
I traced the cause to the fact that I had an empty line after the last Available dimensions setting. This was causing an empty option to be added to the array returned by video_utility::getDimensions();
Removing the blank line fixed this... but the settings code probably should trim any blank lines.
Here's the stacktrace from the error.
STACKTRACE:
Index Function called Caller line Caller file
12 menu_execute_active_handler 21 index.php
11 call_user_func_array 517 includes/menu.inc
10 node_page_edit
9 drupal_get_form 14 modules/node/node.pages.inc
8 drupal_build_form 131 includes/form.inc
7 drupal_process_form 374 includes/form.inc
6 form_builder 842 includes/form.inc
5 form_builder 1857 includes/form.inc
4 form_builder 1857 includes/form.inc
3 form_builder 1857 includes/form.inc
2 video_field_widget_process 1801 includes/form.inc
1 _video_dimensions_options 743 sites/all/modules/contrib/video/video.field.inc
0 _drupal_error_handler 910 sites/all/modules/contrib/video/video.field.inc
Comments
Comment #1
Jorrit commentedFixed in 7.x-2.x-dev.