Author Topic: saving and loading files - returns blank documents -  (Read 1573 times)

Offline richardm

  • User
  • *
  • Posts: 3
    • View Profile
saving and loading files - returns blank documents -
« on: June 12, 2009, 05:47:14 PM »
Problem

I used the add file function within a page to save a document.  When retrieving using the created link, a blank document is received (zero length file).  I tracked the problem down to Class-knowledgeroot-header.php 418 where it does the unserialise(...) of the document which was returning FALSE. 

Solution
After some searching I found a page http://davidwalsh.name/php-serialize-unserialize-issues which documents a bug and recommends the use of base 64 encode and decode.  Implementing this in  Class-knowledgeroot-header.php for the load and save seems to cure the problem

configuration
I'm using Knowledgeroot (and MySQL) version 0.9.9 on SUSE 10.3 with no updates to PHP or MYSQL

 

Offline admin

  • Administrator
  • User
  • *****
  • Posts: 553
    • View Profile
    • http://www.lordlamer.de
Re: saving and loading files - returns blank documents -
« Reply #1 on: June 15, 2009, 12:35:25 PM »
Hi,

did you have the problem with every file or only with one special file?

Which extensions are enabled?

Frank

Offline richardm

  • User
  • *
  • Posts: 3
    • View Profile
Re: saving and loading files - returns blank documents -
« Reply #2 on: June 15, 2009, 03:40:23 PM »
The problem was with every file I tried... .docs, .PDFs .XLS

the following extension are enabled
tinymce   3.2.3.1
fckeditor   2.6.4   


libsecure is not enabled


Offline admin

  • Administrator
  • User
  • *****
  • Posts: 553
    • View Profile
    • http://www.lordlamer.de
Re: saving and loading files - returns blank documents -
« Reply #3 on: June 15, 2009, 03:49:27 PM »
What exact versions of php, apache and mysql do you have?

Could you give me your php.ini?

Did you see errors in your errorlog?

Frank

Offline richardm

  • User
  • *
  • Posts: 3
    • View Profile
Re: saving and loading files - returns blank documents -
« Reply #4 on: June 15, 2009, 05:01:24 PM »
details sent via email as requested
summary
php 5.1.2
mysql 5.0.45

Offline admin

  • Administrator
  • User
  • *****
  • Posts: 553
    • View Profile
    • http://www.lordlamer.de
Re: saving and loading files - returns blank documents -
« Reply #5 on: June 24, 2009, 08:48:20 AM »