Joomla RubberDoc 0.9.4 simple bug patches

July 9th 2008: The html list of links generated by the RubberDoc plugin does not close properly . To fix this issue:

  1. go to plugins/content/rubberdoc.php line 111
  2. replace <ul> with </ul>

July 8th 2008: there is a bug which results into downloaded files with corrupted data. To fix this issue:

  1. go to the components/com_rubberdoc/views/doc/view.raw.php
  2. replace the line 57 to 59 with the following code

$doc =& JFactory::getDocument();
$doc->setMimeEncoding( $mime );
$doc->setModifiedDate( $data->get(‘modified’) );
$doc->render();

header(‘Content-Disposition: attachment; filename=”‘.$fileName.'” ‘);
header(‘Content-Length: ‘. $fileSize);

July 3rd 2008: There is a bug which prevents {docs}doc-alias{/docs} tags to work properly within a Joomla article. This only happens when there is only one alias within the tags.

To fix this bug:

  1. go to the plugins/content/rubberdoc.php
  2. on line 149 replace all the instances of $doc[0]->id with $docs[0]->id and $doc[0]->title with $docs[0]->title
  3. save the file

[tags]rubberdoc, bug, patch, joomla, document manager, extension, plugin[/tags]

7 thoughts on “Joomla RubberDoc 0.9.4 simple bug patches”

  1. Still the download pages are not working.
    I patched both of bugs but still the download pages are not showing.

    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /home/.powderpuff/coasweb/coastemp.dreamhosters.com/arotc/administrator/components/com_rubberdoc/controllers/doc.php on line 19

    is the errow message.

    Thank you for your pluging and hard work.

  2. A great extension, had it running in development on Joomla 1.5.3
    Patched installation to 1.5.4 and now receive the following error when clicking Components>Documents
    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /home/sites/public_html/administrator/components/com_rubberdoc/controllers/doc.php on line 19

    And the following when clicking Components>Documents>Multiple File Upload

    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /home/sites/aek-bocofc.com/public_html/administrator/components/com_rubberdoc/controllers/upload.php on line 20

  3. Ignore my last post! The backup box used to test the 1.5.3-1.5.4 Joomla patch was running PHP 4.4.8! Doh

  4. Hi ,

    re…

    1. go to plugins/content/rubberdoc.php line 111
    2. replace with

    Also in LINE 159 there is the same error I think.

    rgds
    Mark

  5. correction..

    Hi ,

    re…

    1. go to plugins/content/rubberdoc.php line 111
    2. replace with

    Also in LINE 159 there is the same error I think.

    rgds
    Mark

Comments are closed.