Author Topic: can't download documents after update to 1.6.1  (Read 4101 times)

henrik

  • Newbie
  • *
  • Posts: 12
    • View Profile
can't download documents after update to 1.6.1
« on: January 02, 2010, 02:09:15 pm »
Hey Guys,
I need some help. I updated my old 1.3.1 to the new fengoffice 1.6.1. Everything looks fine, all my documents are showing up, but I can't download them. When you hit the downloadbutton browserpicture goes to white and thats it.
It is working with html document but not  with any other.
I tried Debug with true and in the log.php file there is nothing showing up after trying a download.
I can upload new files und I can also download them.

Can anybody help me?

smilez
Henrik

henrik

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: can't download documents after update to 1.6.1
« Reply #1 on: January 03, 2010, 05:06:13 pm »
Hey,
also tried to make the update from 1.3.1 to 1.5.3 and then to 1.6.1. diden't work. I  worked on the that with help from Werner Würfel hole sundayafternoon...really need help
Thanks

Henrik

Pet

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 638
  • Always mining for solutions!
    • View Profile
    • The Bet!
Re: can't download documents after update to 1.6.1
« Reply #2 on: January 03, 2010, 06:59:46 pm »
Seems that somewhere along the line, it lost the connection between the actual document data and the document ID. Are you able to download previous versions of documents?

Also click on the document name. Do you see the correct description appear? On the right, do you see the Unique ID number appear? Is it listed as in the right workspace (on the right Properties box)? If there is something incorrect under the properties box then perhaps that will give you a clue as to where to look for the problem.

Support OpenGoo - Sponsor a Feature! | Follow me on Twitter | OG Support Chat | Did you turn debugging on?

henrik

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: can't download documents after update to 1.6.1
« Reply #3 on: January 05, 2010, 08:04:06 pm »
Hey Pet,
thanks for help.
I tried the most of your ieas before.
I cannot download  prevois versions.
Discription  is ok, workspace is right, just the connection between the file und the IID is not working.

smilez
Henrik

Pet

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 638
  • Always mining for solutions!
    • View Profile
    • The Bet!
Re: can't download documents after update to 1.6.1
« Reply #4 on: January 06, 2010, 04:52:28 am »
Did you upgrade from 1.3.1 directly to 1.6.1? If so, what I would do is restore my backup, then perform each intermediate upgrade. I don't know what the problem might be, but that would ensure that it wasn't due to missing an upgrade.
Support OpenGoo - Sponsor a Feature! | Follow me on Twitter | OG Support Chat | Did you turn debugging on?

henrik

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: can't download documents after update to 1.6.1
« Reply #5 on: January 06, 2010, 06:42:11 am »
Hey Pet,
I tried both, directly from 1.3.1 to 1.6.1 and also with steps over 1.5 it is always the same.

Pet

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 638
  • Always mining for solutions!
    • View Profile
    • The Bet!
Re: can't download documents after update to 1.6.1
« Reply #6 on: January 06, 2010, 02:59:03 pm »
I'm running out of suggestions, try a different browser?
Support OpenGoo - Sponsor a Feature! | Follow me on Twitter | OG Support Chat | Did you turn debugging on?

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: can't download documents after update to 1.6.1
« Reply #7 on: January 07, 2010, 03:44:31 pm »
Hi Henrik,

Try changing file 'environment/functions/files.php', line 409 onwards, from:

Code: [Select]
function download_from_repository($id, $type, $name, $force_download = false) {
if (FileRepository::getBackend() instanceof FileRepository_Backend_FileSystem) {
$path = FileRepository::getBackend()->getFilePath($id);
if (is_file($path)) {
// this method allows downloading big files without exhausting php's memory
return download_file($path, $type, $name, $force_download);
}
} else {
$content = FileRepository::getBackend()->getFileContent($id);
return download_contents($content, $type, $name, strlen($content), $force_download);
}
}

to:
Code: [Select]
function download_from_repository($id, $type, $name, $force_download = false) {
if (FileRepository::getBackend() instanceof FileRepository_Backend_FileSystem) {
$path = FileRepository::getBackend()->getFilePath($id);
if (is_file($path)) {
// this method allows downloading big files without exhausting php's memory
return download_file($path, $type, $name, $force_download);
}
}
$content = FileRepository::getBackend()->getFileContent($id);
return download_contents($content, $type, $name, strlen($content), $force_download);
}

henrik

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: can't download documents after update to 1.6.1
« Reply #8 on: January 08, 2010, 02:55:02 pm »
Hey Ignacio,
thanks man that really helped! Can download any file I tried.
Rock on guys.

smilez
Henrik