Home
Author:

I have just recently installed docman 1.5.7 and when I go into the administrator page, I try to upload some documents and when I click on New Docs I get an error "string(2) "23" array(1) { [0]=> string(12) "filename.ext" }".

The author has mentioned that this is a bug and it will be fix in the next release of 1.5.8.

In the mean time you can get around this issue by updating a few line of codes and update the changes to your web server.

Follow these to fix the error:

1. FTP to your web server and locate the file files.php. Open the file administrator/components/com_docman/includes/files.php.

2. In the file (around line 23) replace the following line of code:

     var_dump(__METHOD__.__LINE__, $cid );die;

WITH

     if(!$cid[0]) {
JFactory::getApplication()
->redirect("index.php?option=com_docman&section=files", 
_DML_MAKE_SELECTION);
}

3. Now save the file and upload it back to the web server. The issue should be solve now.



Comments (2)
  • Dom
    I tried to replace with :
    f(!$cid[0]) {
    JFactory::getApplication()
    ->redirect("index.php?option=com_docman §ion=files",
    _DML_MAKE_SELECTION);
    }

    ... all is right now ! Thanks a lot !
    (sorry for my bad english, i'm french)
  • Dom
    Hum we must read:

    docman"&sec"tion=files

Write comment
Your Contact Details:
Comment:
Security
Please input the anti-spam code that you can read in the image.

"