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

3.0.10

Title A 'news' award can cause the Admin Zone front page to malfunction
Description An error, Fatal error: Cannot redeclare class hook_news, may be produced when viewing the front page.
Affects All users with a news award
Fix The fix requires changes to around 20 files, so will be released as a part of the next patch release.

Back to the top

Comments / View


Title Attachments won't preview
Description If validation is enabled for a preview, then attachments will not function properly in the preview.
Affects All users
Fix Change line 53 of sources/misc_scripts.php from:

Code

            $valt=comcode_to_tempcode($val);
to:

Code

            $temp=$_FILES;
            $_FILES=array();
            $valt=comcode_to_tempcode($val);
            $_FILES=$temp;

Back to the top

Comments / View


Title Calendar 'mktime' error
Description An error is given on some systems:
mktime() expects parameter 4 to be long, string given
Affects Certain PHP versions
Fix Change line 271 of site/pages/modules/calendar.php from:

Code

            $timestamp=mktime(0,0,0,$explode[1],$explode[2],$explode[0]);
to:

Code

            $timestamp=mktime(0,0,0,intval($explode[1]),intval($explode[2]),intval($explode[0]));

Back to the top

Comments / View


Title Can't view a newsletter from the newsletter archive
Description An error message about a missing lang string is given.
Affects All users
Fix Add:

Code

SUBSCRIPTION_LEVEL=Subscription level
to lang/EN/newsletter.ini

Back to the top

Comments / View


Title CEDI tree-management problem
Description The 'ID assistance tool' on the CEDI tree-management screen doesn't work.
Affects All users
Fix Change line 16 of CEDI_MANAGE_TREE_PAGE.tpl from:

Code

      <input type="button" value="{!ADD}" onclick="Javascript: document.getElementById('childlinks').value+=this.form.tree.value+'\n'" />
to:

Code

      <input type="button" value="{!ADD}" onclick="Javascript: document.getElementById('children').value+=this.form.tree.value+'\n'" />

Back to the top

Comments / View


Title Deleting a catalogue leaves behind orphaned catalogue entries
Description This bug was introduced in version 3 when the method for handling deletions of categories was changed. Prior to version 3, deleting the categories would delete the entries, and thus the catalogue deletion code only needed to delete the categories and catalogue.
Affects All users
Fix Change line 265 of sources/catalogues2.php from:

Code

   // Delete anything involved (ha ha destruction!)
to:

Code

   // Delete anything involved (ha ha destruction!)
   $entries=collapse_1d_complexity('id',$GLOBALS['SITE_DB']->query_select('catalogue_entries',array('id'),array('c_name'=>$name)));
   foreach ($entries as $entry)
   {
      actual_delete_catalogue_entry($entry);
   }

Back to the top

Comments / View


Title Error when going back to edit a newsletter after deciding against a preview
Description A bugfix for 3.0.9 introduced a new bug which causes an error when re-editing a previewed newsletter.
Affects All users
Fix Change line 221 of adminzone/pages/modules/admin_newsletter.php from:

Code

         $existing=$_existing;
to:

Code

         $existing=make_string_tempcode($_existing);

Back to the top

Comments / View


Title If orphaned catalogue entries exist, a search will produce a stack dump
Description This is not a bug in itself, but it is caused by a corruption caused by this bug.
Affects Users who have deleted non-empty catalogues
Fix Change line 301 of sources/hooks/modules/search/catalogue_entries.php from:

Code

      global $SEARCH_CATALOGUE_ENTRIES_CATALOGUES;
to:

Code

      global $SEARCH_CATALOGUE_ENTRIES_CATALOGUES;
      if (!array_key_exists($catalogue_name,$SEARCH_CATALOGUE_ENTRIES_CATALOGUES)) return new ocp_tempcode();

Back to the top

Comments / View


Title Importing gallery images from a zip doesn't work
Description Trying to import gallery images from a zip archive will result in the browser endlessly trying to load the page.
Affects People importing gallery images from zip archives
Fix Change line 303 of /cms/pages/modules/cms_galleries.php from:

Code

while (false!==($more=zip_entry_read($entry))) $in.=$more;
To:

Code

do
{
   $more=zip_entry_read($entry);
   $in.=$more;
}
while (($more!==false) && ($more!=''));

Back to the top

Comments / View


Title OcCLE 'edit' command problem
Description Backslashes may be lost from edited text.
Affects All users
Fix Change line 37 of sources/hooks/modules/admin_occle_commands/edit.php from:

Code

         return array('',do_template('OCCLE_EDIT',array('_GUID'=>'8bbf2f9ef545a92b6865c35ed27cd6d4','FILE'=>$parameters[0],'SUBMIT_URL'=>build_url(array('page'=>'admin_occle','command'=>'write "'.$parameters[0].'" "{0}" < :echo get_param(\'edit_content\');'),get_module_zone('admin_occle')),'FILE_CONTENTS'=>$file_contents)),'','');
to:

Code

         return array('',do_template('OCCLE_EDIT',array('_GUID'=>'8bbf2f9ef545a92b6865c35ed27cd6d4','FILE'=>$parameters[0],'SUBMIT_URL'=>build_url(array('page'=>'admin_occle','command'=>'write "'.$parameters[0].'" "{0}" < :echo addslashes(get_param(\'edit_content\'));'),get_module_zone('admin_occle')),'FILE_CONTENTS'=>$file_contents)),'','');

Back to the top

Comments / View


Title Post awards may cause the Admin Zone front page to malfunction.
Description A post award may cause the Admin Zone front page to display an error about a missing language string, FORUM_POSTS.
Affects OCF users (only OCF users may use this kind of award)
Fix Change line 35 of sources/hooks/systems/awards/post.php from:

Code

   $info['title']=do_lang('FORUM_POSTS');
to:

Code

    require_lang('ocf');
   $info['title']=do_lang('FORUM_POSTS');

(in other words add a new line before it)

Back to the top

Comments / View


Title Spaces may be lost between words in the WYSIWYG editor
Description Single spaces may be lost between words in the WYSIWYG editor, at around every 20th character. In other words, words get pushed together.
Affects Users on certain web browsers (known to include Firefox 2)
Fix Change line 1242 of sources/global2.php from:

Code

         $a=semihtml_to_comcode(str_replace(chr(10),'',$a));
to:

Code

         $a=semihtml_to_comcode(preg_replace('#\s+#',' ',$a));

Back to the top

Comments / View


Title Specific permissions screen problem
Description The specific permissions screen will claim positive global permissions exist if a permission is positively overrided anywhere in the system.
Affects All users
Fix Change line 707 of adminzone/pages/modules/admin_permissions.php from:

Code

      $access_rows=$GLOBALS['SITE_DB']->query_select('gsp',array('specific_permission','group_id'));
to:

Code

      $access_rows=$GLOBALS['SITE_DB']->query_select('gsp',array('specific_permission','group_id'),array('the_page'=>'','module_the_name'=>'','category_name'=>''));

Back to the top

Comments / View


Title Translation interface rendering problem
Description The translation interface does not have enough space for the input fields on 1024x768.
On higher resolutions, or when the help panel is closed off, the translation interface does not use the extra space effectively.
Affects All users
Fix This is a simple template glitch.

In the TRANSLATE_LINE template, change:

Code

size="60"
to:

Code

class="wide_field" size="60"

Back to the top

Comments / View


Title Video CMS do-next error
Description Gallery video content-management do-next links link to image-viewing/editing instead of video viewing/editing.
Affects All users
Fix Change line 1143 of cms/pages/modules/cms_galleries.php from:

Code

      return $this->parent->cat_aed_module->_do_next_manager($title,$description,$this->donext_type,is_null($id)?NULL:intval($id));
to:

Code

      return $this->parent->cat_aed_module->_do_next_manager($title,$description,$this->donext_type,is_null($id)?NULL:intval($id),true);

Back to the top

Comments / View


Title Viewing an archived newsletter fails
Description An error is given about a missing lang string.
Affects All users
Fix Add:

Code

SUBSCRIPTION_LEVEL=Subscription level
to lang/EN/newsletter.ini

Back to the top

Comments / View