HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Catalogue is causing lots of problems with RC2

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#54297 (In Topic #11842)
Avatar

Well-settled

I had my catalogues as a Tabular listings, with the 'More' button taking you to more details.

When I moved to RC1 the table disappeared, and the formatting went wired. I've just upgraded to RC2, and the formatting was still wierd, so I thought I'd try changing the catalogue view to Title lists, then back to tabular, to see if that helped.

Anyway, I can't - I get this Stack Trace. Can anyone help?

PHP NOTICE [8] Undefined index: order in /home/bristolo/public_html/ocportal/cms/pages/modules/cms_catalogues.php on line 1232 (version: 4-2.0 RC2, PHP version: 5.2.9, URL: /ocportal/cms/index.php?page=cms_catalogues&type=__ev&id=bocsightings)

Here is the stack trace:

Below is a stack trace revealing the state the software was in when the error occurred. If this represents a bug in the unmodified software, you may want to check Bristol Ornithological Club website for a fix, and if there isn't one, report this as a bug. Please note that merely posting a stack trace is not sufficient for us to solve your problem; the stack trace is just an aid that presents us with additional information. We still need to know the error message, what you tried to do, how you tried to do it, version numbers, and any other appropriate information.
We apologise for this problem and if it's a bug we hope you will work with us so that we can fix it for you promptly.

File'/home/bristolo/public_html/ocportal/sources/failure.php'
Line'508'
Function'get_html_trace'
Args



File'/home/bristolo/public_html/ocportal/sources/global2.php'
Line'742'
Function'_fatal_exit'
Args'PHP NOTICE [8] Undefined index: order in /home/bristolo/public_html/ocportal/cms/pages/modules/cms_catalogues.php on line 1232'




File'/home/bristolo/public_html/ocportal/sources/failure.php'
Line'138'
Function'fatal_exit'
Args'PHP NOTICE [8] Undefined index: order in /home/bristolo/public_html/ocportal/cms/pages/modules/cms_catalogues.php on line 1232'




File'/home/bristolo/public_html/ocportal/sources/global2.php'
Line'640'
Function'_ocportal_error_handler'
Args'notice'

8

'Undefined index: order'

'/home/bristolo/public_html/ocportal/cms/pages/modules/cms_catalogues.php'

1232




File'/home/bristolo/public_html/ocportal/cms/pages/modules/cms_catalogues.php'
Line'1,232'
Function'ocportal_error_handler'
Args8

'Undefined index: order'

'/home/bristolo/public_html/ocportal/cms/pages/modules/cms_catalogues.php'

1232

array ( 'old_name' => 'bocsightings', 'name' => 'bocsightings', 'title' => 'Sightings within the BOC Area', 'description' => '', 'display_type' => 1, 'notes' => '', 'submit_points' => 0, 'ecommerce' => 0, 'send_view_reports' => 'never', 'is_tree' => 1, 'old' => array ( 40 => array ( 'visible' => '1', 'required' => '1', 'name' => 'Date', 'description' => '', 'default' => '', 'type' => 'date', 'order' => '0', 'defines_order' => '0', 'searchable' => '1', 'put_in_category' => '1', 'put_in_search' => '1', ), 41 => array ( 'name' => 'Family', 'description' => '', 'default' => 'Accentors|Auks|Bitterns and herons|Boobies and gannets|Buntings|Chats and thrushes|Cormorants and shags|Cranes|Crows and allies|Cuckoos|Dippers|Divers|Falcons and allies|Finches|Flycatchers|Grebes|Grouse|Gulls|Hawks, vultures and eagles|Hoopoe|Ibises|Kingfishers|Larks|Long-tailed tits|Nightjars|Nuthatches|Orioles|Osprey|Owls|Oystercatchers|Parrots|Partridges, quails and pheasants|Petrels and shearwaters|Pigeons and doves|Pipits and wagtails|Plovers and lapwings|Rails|Sandpipers and allies|Shrikes|Skuas|Sparrows|Starlings|Stilts and avocets|Stone-curlews|Swallows and martins|Swans, ducks and geese|Swifts|Terns|Tits|Treecreepers|Warblers and allies|Waxwings|Wrens|Wrynecks and woodpeckers', 'type' => 'list', 'order' => '1', 'defines_order' => '0', 'visible' => '1', 'required' => '1', 'searchable' => '1', 'put_in_category' => '1', 'put_in_search' => '1', ), 42 => array ( 'name' => 'Species', 'description' => '', 'default' => '', 'type' => 'short_text', 'order' => '2', 'defines_order' => '0', 'visible' => '1', 'required' => '1', 'searchable' => '1', 'put_in_category' => '1', 'put_in_search' => '1', ), 44 => array ( 'name' => 'Location', 'description' => '', 'default' => '', 'type' => 'short_text', 'order' => '3', 'defines_order' => '0', 'visible' => '1', 'required' => '1', 'searchable' => '1', 'put_in_search' => '1', ), 43 => array ( 'name' => 'Number', 'description' => '', 'default' => '', ), ), 'new' => array ( ), 'val' => '', 'key' => 'existing_field_43_default', 'matches' => array ( 0 => 'existing_field_43_default', 1 => '43', 2 => 'default', ), 'num_fields' => 5, 'field' => array ( 'name' => 'Number', 'description' => '', 'default' => '', ), 'o' => 4, 'orderings' => array ( 'old_0' => '0', 'old_1' => '1', 'old_2' => '2', 'old_3' => '3', ), 'current' => array ( 'name' => 'Number', 'description' => '', 'default' => '', ), )




File'/home/bristolo/public_html/ocportal/sources/aed_module.php'
Line'994'
Function'edit_actualisation'
Class'Module_cms_catalogues_alt'
Type'->'
ObjectModule_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' => true, 'menu_label' => 'CATALOGUES', '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, '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' => 'v', '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, 'do_next_description' => NULL, 'appended_actions_already' => false, 'care_please' => true, 'table_prefix' => '', 'array_key' => 'id', 'title_is_multi_lang' => true, 'orderer' => NULL, 'table' => NULL, ))
Args'bocsightings'




File'/home/bristolo/public_html/ocportal/sources/aed_module.php'
Line'201'
Function'__ed'
Class'standard_aed_module'
Type'->'
ObjectModule_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' => true, 'menu_label' => 'CATALOGUES', '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, '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' => 'v', '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, 'do_next_description' => NULL, 'appended_actions_already' => false, 'care_please' => true, 'table_prefix' => '', 'array_key' => 'id', 'title_is_multi_lang' => true, 'orderer' => NULL, 'table' => NULL, ))
Args



File'/home/bristolo/public_html/ocportal/sources/zones.php'
Line'320'
Function'run'
Class'standard_aed_module'
Type'->'
ObjectModule_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', '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, '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', 'seo_type' => 'catalogue_category', 'catalogue' => true, 'award_type' => 'catalogue_category', 'upload' => 'image', 'javascript' => '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', '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, '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, '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, 'do_next_description' => NULL, 'appended_actions_already' => false, 'select_name_description' => NULL, 'care_please' => true, 'table_prefix' => '', 'array_key' => 'id', 'title_is_multi_lang' => true, 'orderer' => NULL, 'table' => NULL, )), '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' => true, 'menu_label' => 'CATALOGUES', '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, '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' => 'v', '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, 'do_next_description' => NULL, 'appended_actions_already' => false, 'care_please' => true, 'table_prefix' => '', 'array_key' => 'id', 'title_is_multi_lang' => true, 'orderer' => NULL, 'table' => 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, 'do_next_description' => NULL, 'appended_actions_already' => false, 'select_name_description' => NULL, 'care_please' => true, 'table_prefix' => '', 'array_key' => 'id', 'title_is_multi_lang' => true, 'orderer' => NULL, 'table' => NULL, ))
Args



File'/home/bristolo/public_html/ocportal/sources/site.php'
Line'839'
Function'load_module_page'
Args'cms/pages/modules/cms_catalogues.php'

'cms_catalogues'




File'/home/bristolo/public_html/ocportal/sources/site.php'
Line'672'
Function'request_page'
Args'cms_catalogues'

true




File'/home/bristolo/public_html/ocportal/cms/index.php'
Line'50'
Function'do_site'
Args



Back to the top
 
Posted
Rating:
#54300
Avatar

Does this file fix the problem?

(Sorry the styles aren't right yet)

Attachment
cms/pages/modules/cms_catalogues.php
» Download: cms_catalogues.php (57 Kb, 159 downloads so far)


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#54310
Avatar

Well-settled

That's fixed it.  Thanks.  (Just so you know, it seems quite slow now to change the look for tabular to list.  I don't knwo if it was laways like that.)

Will the styles be fixed as part of 4.2?
Back to the top
 
Posted
Rating:
#54312
Avatar

Yes


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#54358
Avatar

Hi,

If you're hosted on Elief, this problem was actually due to a server change they recently made, not a bug in ocPortal. Some of the fields from the edit form were getting ignored on the server. I have communicated what they need to change to fix this.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: