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.


Clubs

Login / Search

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

Community saint

Get an error when trying to add one!

Was attempting to add a "test" Club, so I know other members could do it.
I went to Content Management > Clubs > Add club

Tried to create a Club and got this:




An error has occurred

A query that had to return something returned nothing: SELECT id FROM ocp4_f_categories WHERE (c_title='General') (version: 4.1.10, PHP version: 5.2.9, URL: /cms/index.php?page=cms_ocf_groups&type=_ad&uploading=1)

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 ocPortal 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/pkvncyuj/public_html/sources/failure.php'
Line'311'
Function'get_html_trace'
Args

File'/home/pkvncyuj/public_html/sources/global2.php'
Line'839'
Function'_fatal_exit'
Argsobject


File'/home/pkvncyuj/public_html/sources/database.php'
Line'425'
Function'fatal_exit'
Argsobject


File'/home/pkvncyuj/public_html/cms/pages/modules/cms_ocf_groups.php'
Line'170'
Function'query_value'
Class'database_driver'
Type'->'
Objectdatabase_driver::__set_state(array( 'table_prefix' => 'ocp4_', 'connection_read' => array ( 0 => NULL, 1 => 'pkvncyuj_ocportal', ), 'connection_write' => array ( 0 => NULL, 1 => 'pkvncyuj_ocportal', ), ))
Args'f_categories'

'id'

array ( 'c_title' => 'General', )


File'/home/pkvncyuj/public_html/sources/aed_module.php'
Line'531'
Function'add_actualisation'
Class'Module_cms_ocf_groups'
Type'->'
ObjectModule_cms_ocf_groups::__set_state(array( 'lang_type' => 'CLUB', 'select_name' => 'NAME', 'award_type' => 'group', 'possibly_some_kind_of_upload' => true, 'output_of_action_is_confirmation' => true, 'menu_label' => 'CLUBS', 'do_preview' => NULL, 'module_type' => 'f_groups', 'redirect_type' => NULL, 'code_require' => NULL, 'javascript_require' => NULL, 'skip_validation' => false, 'default_type' => 'misc', '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, 'permission_module' => NULL, 'permissions_require' => 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, 'cat_aed_module' => NULL, 'alt_aed_module' => NULL, 'seo_type' => NULL, 'posting_form_title' => NULL, 'posting_form_text' => '', 'posting_form_text_parsed' => NULL, 'javascript' => NULL, 'type_code' => 'd', 'catalogue' => false, 'non_integer_id' => 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, 'table_prefix' => '', 'array_key' => 'id', 'title_is_multi_lang' => true, 'orderer' => NULL, 'table' => NULL, ))
Args

File'/home/pkvncyuj/public_html/sources/aed_module.php'
Line'175'
Function'_ad'
Class'standard_aed_module'
Type'->'
ObjectModule_cms_ocf_groups::__set_state(array( 'lang_type' => 'CLUB', 'select_name' => 'NAME', 'award_type' => 'group', 'possibly_some_kind_of_upload' => true, 'output_of_action_is_confirmation' => true, 'menu_label' => 'CLUBS', 'do_preview' => NULL, 'module_type' => 'f_groups', 'redirect_type' => NULL, 'code_require' => NULL, 'javascript_require' => NULL, 'skip_validation' => false, 'default_type' => 'misc', '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, 'permission_module' => NULL, 'permissions_require' => 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, 'cat_aed_module' => NULL, 'alt_aed_module' => NULL, 'seo_type' => NULL, 'posting_form_title' => NULL, 'posting_form_text' => '', 'posting_form_text_parsed' => NULL, 'javascript' => NULL, 'type_code' => 'd', 'catalogue' => false, 'non_integer_id' => 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, 'table_prefix' => '', 'array_key' => 'id', 'title_is_multi_lang' => true, 'orderer' => NULL, 'table' => NULL, ))
Args

File'/home/pkvncyuj/public_html/sources/zones.php'
Line'312'
Function'run'
Class'standard_aed_module'
Type'->'
ObjectModule_cms_ocf_groups::__set_state(array( 'lang_type' => 'CLUB', 'select_name' => 'NAME', 'award_type' => 'group', 'possibly_some_kind_of_upload' => true, 'output_of_action_is_confirmation' => true, 'menu_label' => 'CLUBS', 'do_preview' => NULL, 'module_type' => 'f_groups', 'redirect_type' => NULL, 'code_require' => NULL, 'javascript_require' => NULL, 'skip_validation' => false, 'default_type' => 'misc', '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, 'permission_module' => NULL, 'permissions_require' => 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, 'cat_aed_module' => NULL, 'alt_aed_module' => NULL, 'seo_type' => NULL, 'posting_form_title' => NULL, 'posting_form_text' => '', 'posting_form_text_parsed' => NULL, 'javascript' => NULL, 'type_code' => 'd', 'catalogue' => false, 'non_integer_id' => 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, 'table_prefix' => '', 'array_key' => 'id', 'title_is_multi_lang' => true, 'orderer' => NULL, 'table' => NULL, ))
Args

File'/home/pkvncyuj/public_html/sources/site.php'
Line'807'
Function'load_module_page'
Args'cms/pages/modules/cms_ocf_groups.php'

'cms_ocf_groups'


File'/home/pkvncyuj/public_html/sources/site.php'
Line'639'
Function'request_page'
Args'cms_ocf_groups'

true


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



Eric DeMars . com
My electronic portfolio and personal site. Uses ocPortal!
Back to the top
 
Posted
Rating:
#52817
Avatar

Hi,

2 issues:
  • If you rename the forum group that is set for club forums to be made in, the association is lost
  • If the association is lost, you see this error

The attached files make it so the association will now be maintained across renames, and if the association does get lost (e.g. group deleted), it'll pick the first group for use.

Attachment
cms/pages/modules/cms_ocf_groups.php
» Download: cms_ocf_groups.php (9 Kb, 166 downloads so far)

Attachment
sources/ocf_forums_action2.php
» Download: ocf_forums_action2.php (8 Kb, 169 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:
#52822
Avatar

Community saint

Oh, I get it. Because it was changed from the default "General", it changed everything else too. Thanks for the updated files.

Eric DeMars . com
My electronic portfolio and personal site. Uses ocPortal!
Back to the top
 
Posted
Rating:
#53100
Avatar

Well-settled

Thank you for that also this helped us out also.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: