XHTML 1.0 Transitional. Click to learn more about our commitment to accessibility and standards.
 
A parameter, EDIT_CATALOGUE_URL, is referenced in the template, CATALOGUE_DEFAULT_CATEGORY_SCREEN, but not passed
 

Skip navigation

Category: 3.1.5

Title Blocks, galleries, downloads
Description A number of gallery blocks will show the "hidden" download galleries. In addition these galleries may show up in the what's-new newsletters, and search.
Affects All users of both downloads and galleries together
Fix Attached are new versions of various files that need to be replaced to fix the problem.
Fix files 3sources.zip

Back to the top

Comments / View


Title Bug on some servers
Description There seems to be a bug in some PHP versions that prevents parts of ocPortal running:
  • anything that tries to create zip files (for servers without the PHP zip extension)
  • anything that has to load all code (site imports, mainly)

The code that triggers this bug is in a sense wrong, but it shouldn't fail. Our code quality checker has now been improved to capture future occurrences.
Affects Some PHP versions, unknown which
Fix Change line 82 of sources/zip.php from:

Code

      $out.=&$file['data'];
to:

Code

      $out.=$file['data'];

Back to the top

Comments / View


Title Editing members
Description An error may be shown when editing a member profile.
Affects Sites with numeric custom profile fields and mySQL 5 strict mode
Fix Change lines 129-137 (approximately) of personalzone/pages/modules/editprofile.php from:

Code

         $actual_custom_fields[$custom_field['id']]=post_param('custom_'.$custom_field['id'].'_value');
to:

Code

         if (($custom_field['cf_type']=='integer') || ($custom_field['cf_type']=='tick'))
         {
            $actual_custom_fields[$custom_field['id']]=post_param_integer('custom_'.$custom_field['id'].'_value');
         } else
         {
            $actual_custom_fields[$custom_field['id']]=post_param('custom_'.$custom_field['id'].'_value');
         }

Back to the top

Comments / View


Title Flood control irritation
Description If you make some kind of post, then get an error message due to some kind of safe error (for instance, the CAPTCHA value was entered wrong), flood control makes you wait before you may continue.
Affects OCF users
Fix Change lines 766-774 of sources/global2.php from:

Code

   if ((array_key_exists('MSN_DB',$GLOBALS)) && (!is_null($GLOBALS['MSN_DB'])))
   {
      $GLOBALS['FORUM_DB']=$GLOBALS['MSN_DB'];
      $GLOBALS['MSN_DB']=NULL;
   }

   global $EXITING;
   if ((!function_exists('do_header')) || ($EXITING==1)) critical_error('EMERGENCY',is_object($text)?$text->evaluate():$text);
   $EXITING=1;
to:

Code

   if ((array_key_exists('MSN_DB',$GLOBALS)) && (!is_null($GLOBALS['MSN_DB'])))
   {
      $GLOBALS['FORUM_DB']=$GLOBALS['MSN_DB'];
      $GLOBALS['MSN_DB']=NULL;
   }

   if (get_forum_type()=='ocf')
   {
      $restrict_answer=ocf_get_best_group_property($GLOBALS['FORUM_DRIVER']->get_members_groups(get_member()),'flood_control_submit_secs');
      $GLOBALS['SITE_DB']->query_update('f_members',array('m_last_submit_time'=>time()-$restrict_answer-1),array('id'=>get_member()),'',1);
   }

   global $EXITING;
   if ((!function_exists('do_header')) || ($EXITING==1)) critical_error('EMERGENCY',is_object($text)?$text->evaluate():$text);
   $EXITING=1;

Back to the top

Comments / View


Title FTP extension assumed on
Description ocPortal assumes the PHP FTP extension/functionality is on, even though it is not in the minimum requirements.
It usually is, but in some rare cases server's do not have it.
Affects Users without the PHP FTP extension
Fix If you get a white screen almost instantly after clicking the proceed button after giving FTP details then you are affected. For the time being, tell ocPortal that you do not need to connect via FTP, which is fine for most Windows servers, or special configurations of Linux servers.

The FTP settings screen will not be shown in future versions of ocPortal, if the FTP extension is not installed.

Back to the top

Comments / View


Title Help Wizard with short-URLs
Description A link in the Help Wizard does not work if short-URLs are enabled.
Affects Users with short-URLs enabled.
Fix This is a very minor bug - if a user has enabled short URLs, the associated help page is going to be too novice anyway. A fix will be in the next patch release.

Back to the top

Comments / View


Title Quiz winner calculation issue
Description There is a rare bug calculating the winners of a quiz. A PHP error is given if the quiz has one less entrants than the number of possible winners.
Affects All users
Fix Change line 149 of adminzone/pages/modules/admin_quiz.php from:

Code

         if ($num_winners>count($entries)) $num_winners=count($entries)-1;
to:

Code

         if ($num_winners>=count($entries)) $num_winners=count($entries)-1;

Back to the top

Comments / View


Title Recent catalogues entry block bug
Description This block does not work currently, producing a PHP error.
Affects All users
Fix A zipped replacement for sources/catalogues.php is attached.
Fix files catalogues.zip

Back to the top

Comments / View


Title The quick reply 'more options'
Description This is not a bug, but the 'Quick reply' 'more options' button will not work if the text is left blank. Instead the separate 'reply' icon would need to be clicked.
Affects OCF users
Fix To make it so the 'more options' button will always work, change line 3 of the 'COMMENTS' template to:

Code

<form id="comments_form" onsubmit="Javascript: if ({+START,IF_PASSED,MORE_URL}(this.getAttribute('action')!='{MORE_URL*}') &amp;&amp; {+END}(!checkFieldForBlankness(this.elements['post']))) return false; document.getElementById('form_submit').disabled=true; return true;" action="{COMMENT_URL*}#last_comment" method="post" enctype="multipart/form-data">

Back to the top

Comments / View