#1592 - Trying to add a Products Category cause a Critical Error Bailing out

Identifier #1592
Issue type Major issue (breaks an entire feature)
Title Trying to add a Products Category cause a Critical Error Bailing out
Status Completed
Handling member Chris Graham
Addon General / Uncategorised
Description Stack trace…

File -> '/home/vwgolfm/public_html/sources/failure.php'
Line -> 792
Function -> 'die_html_trace'
Args -> array ( 0 => 'PHP NOTICE [8] Undefined variable: submitter in sources/catalogues2.php on line 457 (version: 9.0.5, PHP version: 5.3.20, URL: /cms/index.php?page=cms_catalogues&type=_ac&catalogue_name=products&uploading=1)', )
File -> '/home/vwgolfm/public_html/sources/global2.php'
Line -> 1012
Function -> '_fatal_exit'
Args -> array ( 0 => 'PHP NOTICE [8] Undefined variable: submitter in sources/catalogues2.php on line 457', )
File -> '/home/vwgolfm/public_html/sources/failure.php'
Line -> 224
Function -> 'fatal_exit'
Args -> array ( 0 => 'PHP NOTICE [8] Undefined variable: submitter in sources/catalogues2.php on line 457', )
File -> '/home/vwgolfm/public_html/sources/global2.php'
Line -> 875
Function -> '_Composr_error_handler'
Args -> array ( 0 => 'notice', 1 => 8, 2 => 'Undefined variable: submitter', 3 => 'sources/catalogues2.php', 4 => 457, )
File -> '/home/vwgolfm/public_html/sources/catalogues2.php'
Line -> 457
Function -> 'Composr_error_handler'
Args -> array
File -> '/home/vwgolfm/public_html/cms/pages/modules_custom/cms_catalogues.php'
Line -> 1581
Function -> 'actual_add_catalogue_category'
Args -> array ( 0 => 'products', 1 => 'Old Products', 2 => 'Somewhere to dump old products', 3 => '', 4 => 6, 5 => '', 6 => 30, 7 => 60, 8 => NULL, )
File -> '/home/vwgolfm/public_html/sources/aed_module.php'
Line -> 649
Function -> 'add_actualisation'
Class -> 'Module_cms_catalogues_cat'
Object -> Module_cms_catalogues_cat::__set_state(array( 'lang_type' => 'CATALOGUE_CATEGORY', 'select_name' => 'NAME', 'permissions_require' => 'cat_mid', 'permission_module' => 'catalogues_category', 'permissions_cat_require' => 'catalogues_catalogue', 'permissions_cat_name' => 'catalogue_name', 'seo_type' => 'catalogue_category', 'catalogue' => true, 'award_type' => 'catalogue_category', 'upload' => 'image', 'javascript' => 'if (document.getElementById(\'move_days_lower\')) { var mt=document.getElementById(\'move_target\'); var form=mt.form; var crf=function() { var s=mt.selectedIndex==0; form.elements[\'move_days_lower\'].disabled=s; form.elements[\'move_days_higher\'].disabled=s; }; crf(); mt.onclick=crf; }', 'menu_label' => 'CATALOGUES', 'table' => 'catalogue_categories', 'title_is_multi_lang' => false, 'orderer' => 'cc_title', 'donext_catalogue_name' => NULL, 'module_type' => NULL, 'redirect_type' => NULL, 'code_require' => NULL, 'javascript_require' => NULL, 'skip_validation' => false, 'default_type' => NULL, 'author' => 'Chris Graham', 'organisation' => 'ocProducts', 'user_facing' => false, 'send_validation_request' => true, 'check_validation' => true, 'archive_entry_point' => NULL, 'archive_label' => NULL, 'view_entry_point' => NULL, 'view_label' => NULL, 'protect_first' => 0, 'permission_page' => NULL, 'permissions_cat_require_b' => NULL, 'permissions_cat_name_b' => NULL, 'add_text' => '', 'edit_text' => '', 'extra_donext_entries' => NULL, 'extra_donext_categories' => NULL, 'extra_donext_whatever' => NULL, 'extra_donext_whatever_title' => NULL, 'do_next_editing_categories' => false, 'special_edit_frontend' => false, 'possibly_some_kind_of_upload' => false, 'cat_aed_module' => NULL, 'alt_aed_module' => NULL, 'posting_form_title' => NULL, 'posting_form_text' => '', 'posting_form_text_parsed' => NULL, 'type_code' => 'c', 'non_integer_id' => false, 'output_of_action_is_confirmation' => false, 'second_stage_preview' => false, 'add_submit_name' => NULL, 'edit_submit_name' => NULL, 'do_preview' => true, 'add_one_label' => NULL, 'add_one_cat_label' => NULL, 'edit_this_label' => NULL, 'edit_one_label' => NULL, 'edit_this_cat_label' => NULL, 'edit_one_cat_label' => NULL, 'entries_title' => NULL, 'categories_title' => NULL, 'do_next_description' => NULL, 'appended_actions_already' => false, 'select_name_description' => NULL, 'care_please' => true, 'new_id' => NULL, 'no_blank_ids' => true, 'posting_field_required' => true, 'donext_type' => NULL, 'donext_category_id' => NULL, 'cached_entry_rows' => NULL, 'cached_max_rows' => NULL, 'permission_page_name' => NULL, 'table_prefix' => '', 'array_key' => 'id', ))
Type -> '->'
Args -> array ( )
File -> '/home/vwgolfm/public_html/sources/aed_module.php'
Line -> 217
Function -> '_ad'
Class -> 'standard_aed_module'
Object -> Module_cms_catalogues_cat::__set_state(array( 'lang_type' => 'CATALOGUE_CATEGORY', 'select_name' => 'NAME', 'permissions_require' => 'cat_mid', 'permission_module' => 'catalogues_category', 'permissions_cat_require' => 'catalogues_catalogue', 'permissions_cat_name' => 'catalogue_name', 'seo_type' => 'catalogue_category', 'catalogue' => true, 'award_type' => 'catalogue_category', 'upload' => 'image', 'javascript' => 'if (document.getElementById(\'move_days_lower\')) { var mt=document.getElementById(\'move_target\'); var form=mt.form; var crf=function() { var s=mt.selectedIndex==0; form.elements[\'move_days_lower\'].disabled=s; form.elements[\'move_days_higher\'].disabled=s; }; crf(); mt.onclick=crf; }', 'menu_label' => 'CATALOGUES', 'table' => 'catalogue_categories', 'title_is_multi_lang' => false, 'orderer' => 'cc_title', 'donext_catalogue_name' => NULL, 'module_type' => NULL, 'redirect_type' => NULL, 'code_require' => NULL, 'javascript_require' => NULL, 'skip_validation' => false, 'default_type' => NULL, 'author' => 'Chris Graham', 'organisation' => 'ocProducts', 'user_facing' => false, 'send_validation_request' => true, 'check_validation' => true, 'archive_entry_point' => NULL, 'archive_label' => NULL, 'view_entry_point' => NULL, 'view_label' => NULL, 'protect_first' => 0, 'permission_page' => NULL, 'permissions_cat_require_b' => NULL, 'permissions_cat_name_b' => NULL, 'add_text' => '', 'edit_text' => '', 'extra_donext_entries' => NULL, 'extra_donext_categories' => NULL, 'extra_donext_whatever' => NULL, 'extra_donext_whatever_title' => NULL, 'do_next_editing_categories' => false, 'special_edit_frontend' => false, 'possibly_some_kind_of_upload' => false, 'cat_aed_module' => NULL, 'alt_aed_module' => NULL, 'posting_form_title' => NULL, 'posting_form_text' => '', 'posting_form_text_parsed' => NULL, 'type_code' => 'c', 'non_integer_id' => false, 'output_of_action_is_confirmation' => false, 'second_stage_preview' => false, 'add_submit_name' => NULL, 'edit_submit_name' => NULL, 'do_preview' => true, 'add_one_label' => NULL, 'add_one_cat_label' => NULL, 'edit_this_label' => NULL, 'edit_one_label' => NULL, 'edit_this_cat_label' => NULL, 'edit_one_cat_label' => NULL, 'entries_title' => NULL, 'categories_title' => NULL, 'do_next_description' => NULL, 'appended_actions_already' => false, 'select_name_description' => NULL, 'care_please' => true, 'new_id' => NULL, 'no_blank_ids' => true, 'posting_field_required' => true, 'donext_type' => NULL, 'donext_category_id' => NULL, 'cached_entry_rows' => NULL, 'cached_max_rows' => NULL, 'permission_page_name' => NULL, 'table_prefix' => '', 'array_key' => 'id', ))
Type -> '->'
Args -> array ( )
File -> '/home/vwgolfm/public_html/sources/zones.php'
Line -> 425
Function -> 'run'
Class -> 'standard_aed_module'
Object -> Module_cms_catalogues::__set_state(array( 'lang_type' => 'CATALOGUE_ENTRY', 'select_name' => 'ENTRY', 'permissions_require' => 'mid', 'permissions_cat_require' => 'catalogues_catalogue', 'permissions_cat_name' => 'catalogue_name', 'permissions_cat_require_b' => 'catalogues_category', 'permissions_cat_name_b' => 'category_id', 'user_facing' => true, 'seo_type' => 'catalogue_entry', 'catalogue' => true, 'award_type' => 'catalogue_entry', 'possibly_some_kind_of_upload' => true, 'do_preview' => NULL, 'menu_label' => 'CATALOGUES', 'orderer' => 'ce_add_date', 'table' => 'catalogue_entries', 'title_is_multi_lang' => false, 'donext_category_id' => NULL, 'donext_catalogue_name' => NULL, 'module_type' => 'catalogues', 'redirect_type' => NULL, 'code_require' => NULL, 'javascript_require' => NULL, 'skip_validation' => false, 'default_type' => 'misc', 'author' => 'Chris Graham', 'organisation' => 'ocProducts', 'send_validation_request' => true, 'check_validation' => true, 'archive_entry_point' => NULL, 'archive_label' => NULL, 'view_entry_point' => NULL, 'view_label' => NULL, 'protect_first' => 0, 'permission_page' => NULL, 'permission_module' => NULL, 'add_text' => '', 'edit_text' => '', 'extra_donext_entries' => NULL, 'extra_donext_categories' => NULL, 'extra_donext_whatever' => NULL, 'extra_donext_whatever_title' => NULL, 'do_next_editing_categories' => false, 'special_edit_frontend' => false, 'upload' => NULL, 'cat_aed_module' => Module_cms_catalogues_cat::__set_state(array( 'lang_type' => 'CATALOGUE_CATEGORY', 'select_name' => 'NAME', 'permissions_require' => 'cat_mid', 'permission_module' => 'catalogues_category', 'permissions_cat_require' => 'catalogues_catalogue', 'permissions_cat_name' => 'catalogue_name', 'seo_type' => 'catalogue_category', 'catalogue' => true, 'award_type' => 'catalogue_category', 'upload' => 'image', 'javascript' => 'if (document.getElementById(\'move_days_lower\')) { var mt=document.getElementById(\'move_target\'); var form=mt.form; var crf=function() { var s=mt.selectedIndex==0; form.elements[\'move_days_lower\'].disabled=s; form.elements[\'move_days_higher\'].disabled=s; }; crf(); mt.onclick=crf; }', 'menu_label' => 'CATALOGUES', 'table' => 'catalogue_categories', 'title_is_multi_lang' => false, 'orderer' => 'cc_title', 'donext_catalogue_name' => NULL, 'module_type' => NULL, 'redirect_type' => NULL, 'code_require' => NULL, 'javascript_require' => NULL, 'skip_validation' => false, 'default_type' => NULL, 'author' => 'Chris Graham', 'organisation' => 'ocProducts', 'user_facing' => false, 'send_validation_request' => true, 'check_validation' => true, 'archive_entry_point' => NULL, 'archive_label' => NULL, 'view_entry_point' => NULL, 'view_label' => NULL, 'protect_first' => 0, 'permission_page' => NULL, 'permissions_cat_require_b' => NULL, 'permissions_cat_name_b' => NULL, 'add_text' => '', 'edit_text' => '', 'extra_donext_entries' => NULL, 'extra_donext_categories' => NULL, 'extra_donext_whatever' => NULL, 'extra_donext_whatever_title' => NULL, 'do_next_editing_categories' => false, 'special_edit_frontend' => false, 'possibly_some_kind_of_upload' => false, 'cat_aed_module' => NULL, 'alt_aed_module' => NULL, 'posting_form_title' => NULL, 'posting_form_text' => '', 'posting_form_text_parsed' => NULL, 'type_code' => 'c', 'non_integer_id' => false, 'output_of_action_is_confirmation' => false, 'second_stage_preview' => false, 'add_submit_name' => NULL, 'edit_submit_name' => NULL, 'do_preview' => true, 'add_one_label' => NULL, 'add_one_cat_label' => NULL, 'edit_this_label' => NULL, 'edit_one_label' => NULL, 'edit_this_cat_label' => NULL, 'edit_one_cat_label' => NULL, 'entries_title' => NULL, 'categories_title' => NULL, 'do_next_description' => NULL, 'appended_actions_already' => false, 'select_name_description' => NULL, 'care_please' => true, 'new_id' => NULL, 'no_blank_ids' => true, 'posting_field_required' => true, 'donext_type' => NULL, 'donext_category_id' => NULL, 'cached_entry_rows' => NULL, 'cached_max_rows' => NULL, 'permission_page_name' => NULL, 'table_prefix' => '', 'array_key' => 'id', )), 'alt_aed_module' => Module_cms_catalogues_alt::__set_state(array( 'lang_type' => 'CATALOGUE', 'select_name' => 'CATALOGUE', 'select_name_description' => 'DESCRIPTION_CATALOGUE', 'permissions_require' => 'cat_high', 'permission_module' => 'catalogues_catalogue', 'non_integer_id' => true, 'award_type' => 'catalogue', 'is_tree_catalogue' => false, 'menu_label' => 'CATALOGUES', 'table' => 'catalogue_entries', 'javascript' => 'var fn=document.getElementById(\'title\'); if (fn) { var form=fn.form; fn.onchange=function() { if ((form.elements[\'name\']) && (form.elements[\'name\'].value==\'\')) form.elements[\'name\'].value=fn.value.toLowerCase().replace(/[^\\w\\d\\.\\-]/g,\'_\').replace(/\\_+$/,\'\'); }; }', 'module_type' => NULL, 'redirect_type' => NULL, 'code_require' => NULL, 'javascript_require' => NULL, 'skip_validation' => false, 'default_type' => NULL, 'author' => 'Chris Graham', 'organisation' => 'ocProducts', 'user_facing' => false, 'send_validation_request' => true, 'check_validation' => true, 'archive_entry_point' => NULL, 'archive_label' => NULL, 'view_entry_point' => NULL, 'view_label' => NULL, 'protect_first' => 0, 'permission_page' => NULL, 'permissions_cat_require' => NULL, 'permissions_cat_name' => NULL, 'permissions_cat_require_b' => NULL, 'permissions_cat_name_b' => NULL, 'add_text' => '', 'edit_text' => '', 'extra_donext_entries' => NULL, 'extra_donext_categories' => NULL, 'extra_donext_whatever' => NULL, 'extra_donext_whatever_title' => NULL, 'do_next_editing_categories' => false, 'special_edit_frontend' => false, 'upload' => NULL, 'possibly_some_kind_of_upload' => false, 'cat_aed_module' => NULL, 'alt_aed_module' => NULL, 'seo_type' => NULL, 'posting_form_title' => NULL, 'posting_form_text' => '', 'posting_form_text_parsed' => NULL, 'type_code' => 'd', 'catalogue' => false, 'output_of_action_is_confirmation' => false, 'second_stage_preview' => false, 'add_submit_name' => NULL, 'edit_submit_name' => NULL, 'do_preview' => true, 'add_one_label' => NULL, 'add_one_cat_label' => NULL, 'edit_this_label' => NULL, 'edit_one_label' => NULL, 'edit_this_cat_label' => NULL, 'edit_one_cat_label' => NULL, 'entries_title' => NULL, 'categories_title' => NULL, 'do_next_description' => NULL, 'appended_actions_already' => false, 'care_please' => true, 'new_id' => NULL, 'no_blank_ids' => true, 'posting_field_required' => true, 'donext_type' => NULL, 'donext_category_id' => NULL, 'cached_entry_rows' => NULL, 'cached_max_rows' => NULL, 'permission_page_name' => NULL, 'table_prefix' => '', 'array_key' => 'id', 'title_is_multi_lang' => true, 'orderer' => NULL, )), 'posting_form_title' => NULL, 'posting_form_text' => '', 'posting_form_text_parsed' => NULL, 'javascript' => NULL, 'type_code' => 'd', 'non_integer_id' => false, 'output_of_action_is_confirmation' => false, 'second_stage_preview' => false, 'add_submit_name' => NULL, 'edit_submit_name' => NULL, 'add_one_label' => NULL, 'add_one_cat_label' => NULL, 'edit_this_label' => NULL, 'edit_one_label' => NULL, 'edit_this_cat_label' => NULL, 'edit_one_cat_label' => NULL, 'entries_title' => NULL, 'categories_title' => NULL, 'do_next_description' => NULL, 'appended_actions_already' => false, 'select_name_description' => NULL, 'care_please' => true, 'new_id' => NULL, 'no_blank_ids' => true, 'posting_field_required' => true, 'donext_type' => NULL, 'cached_entry_rows' => NULL, 'cached_max_rows' => NULL, 'permission_page_name' => NULL, 'table_prefix' => '', 'array_key' => 'id', 'cutdown_catalogue_name' => 'AG2013ss', ))
Type -> '->'
Args -> array ( )
File -> '/home/vwgolfm/public_html/sources/site.php'
Line -> 856
Function -> 'load_module_page'
Args -> array ( 0 => 'cms/pages/modules_custom/cms_catalogues.php', 1 => 'cms_catalogues', )
File -> '/home/vwgolfm/public_html/sources/site.php'
Line -> 649
Function -> 'request_page'
Args -> array ( 0 => 'cms_catalogues', 1 => true, )
File -> '/home/vwgolfm/public_html/cms/index.php'
Line -> 38
Function -> 'do_site'
Args -> array ( )
Steps to reproduce

I have a Category called "Annual Gathering 2014 Tickets", inside of which I have 4 entries, two of them I want to remove, but I cannot see anyway to do that. So I thought that I would just create a category for products that I do not need any more. When I try to create a new category I get the bailout described above.

Funded? No
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated