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

3.0.0

Title Award editing broken
Description Editing an award adds a new one instead, and associates its language strings with the old one (i.e. they become entangled).
Affects All users editing awards.
Fix Change line 143 of sources/awards.php from:

Code

   $GLOBALS['SITE_DB']->query_insert('award_types',array('a_title'=>lang_remap_comcode($_title,$title),'a_description'=>lang_remap($_description,$description),'a_points'=>$points,'a_content_type'=>filter_naughty_harsh($content_type),'a_hide_awardee'=>$hide_awardee,'a_update_time_hours'=>$update_time_hours));
to:

Code

   $GLOBALS['SITE_DB']->query_update('award_types',array('a_title'=>lang_remap_comcode($_title,$title),'a_description'=>lang_remap($_description,$description),'a_points'=>$points,'a_content_type'=>filter_naughty_harsh($content_type),'a_hide_awardee'=>$hide_awardee,'a_update_time_hours'=>$update_time_hours),array('id'=>$id));

Back to the top

Comments / View


Title Catalogue permission problems
Description Catalogue category access is not properly settable, resulting in access denied messages for ordinary members.
Affects All users
Fix Change line 557 of cms/pages/modules/cms_catalogues.php from:

Code

   var $permission_module='catalogue_category';
to:

Code

   var $permission_module='catalogues_category';

Back to the top

Comments / View


Title Editing catalogue category failure
Description An error about 'category_id' is shown after choosing a category to edit.
Affects All users
Fix Remove line 631 of cms/pages/modules/cms_catalogues.php which is:

Code

      $category_id=either_param_integer('category_id');

Back to the top

Comments / View


Title Error in purchase wizard, when there's a licence step
Description An error is given about a missing lang string, 'LICENCE'.
Affects Those programming custom purchase hooks
Fix Add the lang string to lang/EN/ecommerce.ini:

Code

LICENCE=Licence
Fix files !--:)abcUNLIKELY

Back to the top

Comments / View


Title Error when editing template
Description An unfortunate bug seems to have crept into template editing since later beta releases. An error message is shown about a non-existant variable, 'codename'.
Affects All template editors UNLESS the editing screen was reached by searching
Fix Change line 950 of adminzone/pages/modules/admin_themes.php from:

Code

         }
to:

Code

         } else $codename=basename($file);

Back to the top

Comments / View


Title Error when editing topic
Description When staff try to edit an OCF topic, this message is given:
"Numbers may no longer be passed to templates. Put it through number_format(). Parameter involved: CHECKED"
Affects OCF users, when ocPortal running in debug mode
Fix Changes lines 1623-1628 of forum/pages/modules/topics.php from:

Code

         $options=array(
                        array(do_lang('VALIDATED'),'validated',$topic_info[0]['t_validated'],do_lang('DESCRIPTION_VALIDATED')),
                        array(do_lang('OPEN'),'open',$topic_info[0]['t_is_open'],do_lang('DESCRIPTION_OPEN')),
                        array(do_lang('PINNED'),'pinned',$topic_info[0]['t_pinned'],do_lang('DESCRIPTION_PINNED'))
                  );
         if (!$personal_topic) $options[]=array(do_lang('CASCADING'),'cascading',$topic_info[0]['t_cascading'],do_lang('DESCRIPTION_CASCADING'));
to:

Code

         $options=array(
                        array(do_lang('VALIDATED'),'validated',$topic_info[0]['t_validated']==1,do_lang('DESCRIPTION_VALIDATED')),
                        array(do_lang('OPEN'),'open',$topic_info[0]['t_is_open']==1,do_lang('DESCRIPTION_OPEN')),
                        array(do_lang('PINNED'),'pinned',$topic_info[0]['t_pinned']==1,do_lang('DESCRIPTION_PINNED'))
                  );
         if (!$personal_topic) $options[]=array(do_lang('CASCADING'),'cascading',$topic_info[0]['t_cascading']==1,do_lang('DESCRIPTION_CASCADING'));

Back to the top

Comments / View


Title Error when viewing member page with certain CPF types
Description When viewing a member on a site with a custom profile field value that is internally rendered as HTML, an error is shown (Object of class ocp_tempcode could not be converted to int).

It is believe this error only occurs on PHP 5.1, or possible certain configurations.
Affects OCF users with certain kinds of custom profile fields, on certain PHP setups
Fix Change line 243 of site/pages/modules/members.php from:

Code

         if ($value!='')) $custom_fields[]=array('NAME'=>$name,'VALUE'=>$value);
to:

Code

         if (((!is_object($value)) && ($value!='')) || ((is_object($value)) && (!$value->is_blank())))
            $custom_fields[]=array('NAME'=>$name,'VALUE'=>$value);

Back to the top

Comments / View


Title Failure when choosing an image to edit
Description An error, 'Undefined index: id' is shown.

As an alternative to applying this bug fix, you can get to the correct image edit screen directly (bypassing the list screen) from the image view page itself.
Affects All those choosing an image to edit using the list screen.
Fix Change line 606 of sources/galleries.php from:

Code

   $rows=$GLOBALS['SITE_DB']->query_select('galleries',array('name','fullname'),array('parent_id'=>$gallery));
to:

Code

   $rows=$GLOBALS['SITE_DB']->query_select('galleries',array('name','fullname','id'),array('parent_id'=>$gallery));
Fix files !--:)abcUNLIKELY

Back to the top

Comments / View


Title Forum News block broken
Description A stack dump error is shown when using the main_forum_news block.
Affects All users.
Fix Change line 119 of sources/blocks/main_forum_news.php from:

Code

         $news_text->attach(do_template('NEWS_PIECE_SUMMARY',array('_GUID'=>'2edf18daf5510495fd588cad062aec4e','FULL_URL'=>$full_url,'SUBMITTER'=>'','DATE'=>$date,'DATE_RAW'=>strval($myrow['date_and_time']),'NEWS_TITLE'=>$news_title,'CATEGORY'=>'','IMG'=>'','AUTHOR'=>$author,'AUTHOR_URL'=>$author_url,'NEWS'=>$news)));

to:

Code

         $news_text->attach(do_template('NEWS_PIECE_SUMMARY',array('_GUID'=>'2edf18daf5510495fd588cad062aec4e','FULL_URL'=>$full_url,'SUBMITTER'=>'','DATE'=>$date,'DATE_RAW'=>strval($myrow[$date_key]),'NEWS_TITLE'=>$news_title,'CATEGORY'=>'','IMG'=>'','AUTHOR'=>$author,'AUTHOR_URL'=>$author_url,'NEWS'=>$news)));

Back to the top

Comments / View


Title Incorrect vBulletin group-membership import
Description Secondary Group IDs are not correctly remapped during vBulletin import
Affects vBulletin importers
Fix Change line 377 of sources/hooks/modules/admin_import/vb3.php from:

Code

               ocf_add_member_to_group($id_new,$group['usergroupid'],1);
to:

Code

               $group=import_id_remap_get('group',strval($group['usergroupid']));
               ocf_add_member_to_group($id_new,$group,1);

There may be a second bug (unconfirmed at this time), incorrectly detecting admin users. For extra safety, change line 365 from:

Code

            if (($row['adminpermissions']&256)!=0) $secondary_groups[]=array('usergroupid'=>db_get_first_id()+1);
to:

Code

            //if (($row['adminpermissions']&256)!=0) $secondary_groups[]=array('usergroupid'=>db_get_first_id()+1);
This will reduce the scope for admin-detection, however primary usergroup membership will continue to perform this same service.

Back to the top

Comments / View


Title Missing lang string when deleting gallery.
Description An error about a missing lang string is given when deleting a gallery. The gallery was deleted succesfully however.
Affects Those deleting galleries
Fix Add the missing lang strings to lang/EN/galleries.ini:

Code

DO_NEXT_add_one_video=Add one video
DO_NEXT_add_one_image=Add one image
Fix files !--:)abcUNLIKELY

Back to the top

Comments / View


Title Page-level permission overriding broken
Description If the permission-tree editor is used to override permissions on the page level, it does not function correctly. The settings appear to have saved, but they are saved and loaded from the view-module when they should have been to the content-management-module.
Category-level overriding and the global-level settings are unaffected.
Affects All users
Fix Extract the two php files to your sources folder.

Back to the top

Comments / View


Title Points incorrectly detected
Description A change was made during beta testing that unfortunately led to a new bug, whereby points were not correctly detected in ocPortal.
Affects All OCF users
Fix Change line 126 of sources/ocf_members.php from:

Code

         if ($row['cf_locked']==1)
to:

Code

         if (($row['cf_locked']==1) && (!$special_start))

Back to the top

Comments / View


Title Unspecified fields in catalogue entries are displayed oddly
Description If a catalogue contains a non-required field and when adding an entry for that catalogue the field was left blank, it will be shown with a non-sense value.
Affects Catalogue users, where catalogues have non-required fields
Fix Change line 501 of sources/catalogues2.php from:

Code

   foreach ($map as $field_id=>$val)
   {
to:

Code

   foreach ($map as $field_id=>$val)
   {
      if ($val==STRING_MAGIC_NULL) $val='';
Fix files !--:)abcUNLIKELY

Back to the top

Comments / View


Title WYSIWYG Spellchecker error
Description An error about 'mixed' is shown when using the Spell checker.
Affects All users
Fix In data/areaedit/plugins/SpellChecker/spell-check-logic.php change line 96 from:

Code

   $aspellcommand=mixed();
to:

Code

   $aspellcommand=NULL; // mixed()

Back to the top

Comments / View