Author Topic: Bug: Uploading .doc  (Read 2978 times)

Offline sdm

  • User
  • *
  • Posts: 9
    • View Profile
Bug: Uploading .doc
« on: July 15, 2006, 01:33:50 PM »
When I upload a Word-document everything goes fine, but when I open this document out of Knowledgeroot, I get a blank Wordfile.

This bug is in 0.9.6c and in 0.9.7rc1

BTW The new look is great!
« Last Edit: July 15, 2006, 01:36:49 PM by sdm »

Offline admin

  • Administrator
  • User
  • *****
  • Posts: 553
    • View Profile
    • http://www.lordlamer.de
Re: Bug: Uploading .doc
« Reply #1 on: July 15, 2006, 02:26:40 PM »
Hello,

can you try that in the demo on
http://knowledgeroot-dev.linuxdelta.de ?

Which database do you use? Mysql or Postgresql and which versions? Also which php-version?

Frank

Offline sdm

  • User
  • *
  • Posts: 9
    • View Profile
Re: Bug: Uploading .doc
« Reply #2 on: July 15, 2006, 02:36:30 PM »
I'm using MySQL under WAMP 5 (so PHP5 and MySQL 5).

It works fine in http://knowledgeroot-dev.linuxdelta.de.

So what settings do I have to use for my configuration?
« Last Edit: July 15, 2006, 02:39:03 PM by sdm »

Offline admin

  • Administrator
  • User
  • *****
  • Posts: 553
    • View Profile
    • http://www.lordlamer.de
Re: Bug: Uploading .doc
« Reply #3 on: July 16, 2006, 12:29:50 PM »
Hi,

i will check that!

Can you take a look to the database if the coloum with the filecontent is filled or if its empty?

Frank

Offline sdm

  • User
  • *
  • Posts: 9
    • View Profile
Re: Bug: Uploading .doc
« Reply #4 on: July 16, 2006, 09:06:03 PM »
It's filled.

Offline admin

  • Administrator
  • User
  • *****
  • Posts: 553
    • View Profile
    • http://www.lordlamer.de
Re: Bug: Uploading .doc
« Reply #5 on: July 17, 2006, 08:35:11 PM »
Hello,

i have tried something out. I have installed WAMP5 on a WinXP System. I only made a standard installation. I havent changed anything.

In firefox all works fine. The only problem i found is in ie with a doc document. I click on the file in knowledgeroot and he ask me if i want to open or save the file. If i want to open the file he cannot open the file. But if i save the file he can. Sorry but i dont know why the ie is doing that.

Or do you have the problem in another browser?

regards,
Frank

Offline sdm

  • User
  • *
  • Posts: 9
    • View Profile
Re: Bug: Uploading .doc
« Reply #6 on: July 19, 2006, 12:13:09 PM »
With a great help of Frank, there is a solution for this problem.

If you execute the next query in your database (for instance in phpMyadmin), you can solve this problem:

ALTER TABLE files MODIFY file LONGBLOB NOT NULL;

Please note: already uploaded files won't be changed by this update, so you have to upload the files again after this update. Then everything works great!

This fix is tested on 0.9.6c and 0.9.7RC1 on php4&5 and mysql4&5.