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.


[v4.3.2] Forums Permissions ??

Login / Search

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

Community saint

When I create a forum within a category and set the permissions as desired I will get the error below. The forums is actually created, but the permissions are not set to what I wanted. However, when I go "edit" the forum and fix the permissions again, everything is fine. I get no errors. Only when I originally create the forum.

Any ideas?

An error has occurred

PHP NOTICE [8] Undefined variable: access in /home/pkvncyuj/public_html/adminzone/pages/modules/admin_ocf_forums.php on line 446 (version: 4.3.2, PHP version: 5.2.9, URL: /adminzone/index.php?page=admin_ocf_forums&type=_ad)

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'557'
Function'get_html_trace'
Args

File'/home/pkvncyuj/public_html/sources/global2.php'
Line'862'
Function'_fatal_exit'
Args'PHP NOTICE [8] Undefined variable: access in /home/pkvncyuj/public_html/adminzone/pages/modules/admin_ocf_forums.php on line 446'


File'/home/pkvncyuj/public_html/sources/failure.php'
Line'156'
Function'fatal_exit'
Args'PHP NOTICE [8] Undefined variable: access in /home/pkvncyuj/public_html/adminzone/pages/modules/admin_ocf_forums.php on line 446'

false


File'/home/pkvncyuj/public_html/sources/global2.php'
Line'725'
Function'_ocportal_error_handler'
Args'notice'

8

'Undefined variable: access'

'/home/pkvncyuj/public_html/adminzone/pages/modules/admin_ocf_forums.php'

446


File'/home/pkvncyuj/public_html/adminzone/pages/modules/admin_ocf_forums.php'
Line'446'
Function'ocportal_error_handler'
Args8

'Undefined variable: access'

'/home/pkvncyuj/public_html/adminzone/pages/modules/admin_ocf_forums.php'

446

array ( 'parent_forum' => 11, 'id' => 1, 'admin_groups' => array ( 0 => 2, 1 => 15, ), 'groups' => array ( 1 => 'Guests', 9 => 'Fan in training', 2 => 'Administrators', 3 => 'Super-moderators', 11 => 'Fan in action', 12 => 'Well-settled', 13 => 'Honoured member', 14 => 'Community saint', 10 => 'Probation', 15 => 'Web Host', ), 'full_access' => true, 'parent_has_full_access' => true, 'access_rows' => array ( ), )


File'/home/pkvncyuj/public_html/sources/aed_module.php'
Line'549'
Function'add_actualisation'
Class'Module_admin_ocf_forums'
Type'->'
ObjectModule_admin_ocf_forums::__set_state(array( 'lang_type' => 'FORUM', 'select_name' => 'NAME', 'protect_first' => 1, 'archive_entry_point' => '_SEARCH:forumview', 'archive_label' => 'SECTION_FORUMS', 'view_entry_point' => '_SEARCH:forumview:id=_ID', 'special_edit_frontend' => true, 'permission_page' => 'topics', 'permission_module' => 'forums', 'award_type' => 'forum', 'javascript' => 'if (document.getElementById(\'delete\')) { var form=document.getElementById(\'delete\').form; var crf=function() { form.elements[\'target_forum\'].disabled=(!form.elements[\'delete\'].checked); form.elements[\'delete_topics\'].disabled=(!form.elements[\'delete\'].checked); }; crf(); form.elements[\'delete\'].onchange=crf; }', 'menu_label' => 'SECTION_FORUMS', 'do_preview' => NULL, 'module_type' => 'f_forums', '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, '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, '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, '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, 'new_id' => NULL, 'no_blank_ids' => true, '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'189'
Function'_ad'
Class'standard_aed_module'
Type'->'
ObjectModule_admin_ocf_forums::__set_state(array( 'lang_type' => 'FORUM', 'select_name' => 'NAME', 'protect_first' => 1, 'archive_entry_point' => '_SEARCH:forumview', 'archive_label' => 'SECTION_FORUMS', 'view_entry_point' => '_SEARCH:forumview:id=_ID', 'special_edit_frontend' => true, 'permission_page' => 'topics', 'permission_module' => 'forums', 'award_type' => 'forum', 'javascript' => 'if (document.getElementById(\'delete\')) { var form=document.getElementById(\'delete\').form; var crf=function() { form.elements[\'target_forum\'].disabled=(!form.elements[\'delete\'].checked); form.elements[\'delete_topics\'].disabled=(!form.elements[\'delete\'].checked); }; crf(); form.elements[\'delete\'].onchange=crf; }', 'menu_label' => 'SECTION_FORUMS', 'do_preview' => NULL, 'module_type' => 'f_forums', '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, '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, '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, '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, 'new_id' => NULL, 'no_blank_ids' => true, 'table_prefix' => '', 'array_key' => 'id', 'title_is_multi_lang' => true, 'orderer' => NULL, 'table' => NULL, ))
Args

File'/home/pkvncyuj/public_html/sources/zones.php'
Line'330'
Function'run'
Class'standard_aed_module'
Type'->'
ObjectModule_admin_ocf_forums::__set_state(array( 'lang_type' => 'FORUM', 'select_name' => 'NAME', 'protect_first' => 1, 'archive_entry_point' => '_SEARCH:forumview', 'archive_label' => 'SECTION_FORUMS', 'view_entry_point' => '_SEARCH:forumview:id=_ID', 'special_edit_frontend' => true, 'permission_page' => 'topics', 'permission_module' => 'forums', 'award_type' => 'forum', 'javascript' => 'if (document.getElementById(\'delete\')) { var form=document.getElementById(\'delete\').form; var crf=function() { form.elements[\'target_forum\'].disabled=(!form.elements[\'delete\'].checked); form.elements[\'delete_topics\'].disabled=(!form.elements[\'delete\'].checked); }; crf(); form.elements[\'delete\'].onchange=crf; }', 'menu_label' => 'SECTION_FORUMS', 'do_preview' => NULL, 'module_type' => 'f_forums', '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, '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, '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, '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, 'new_id' => NULL, 'no_blank_ids' => true, 'table_prefix' => '', 'array_key' => 'id', 'title_is_multi_lang' => true, 'orderer' => NULL, 'table' => NULL, ))
Args

File'/home/pkvncyuj/public_html/sources/site.php'
Line'935'
Function'load_module_page'
Args'adminzone/pages/modules/admin_ocf_forums.php'

'admin_ocf_forums'


File'/home/pkvncyuj/public_html/sources/site.php'
Line'727'
Function'request_page'
Args'admin_ocf_forums'

true


File'/home/pkvncyuj/public_html/adminzone/index.php'
Line'51'
Function'do_site'
Args


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

Hi,

I think this will fix your problem…

Attachment
adminzone/pages/modules/admin_ocf_forums.php
» Download: admin_ocf_forums.php (20 Kb, 151 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:
#59219
Avatar

Community saint

Thanks Chris.

I'll create a test forum since all the ones needed for now have been set up. Will edit this accordingly after testing with a "yay" or "nay".

Eric DeMars . com
My electronic portfolio and personal site. Uses ocPortal!
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: