Linuxdelta
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Willkommen im neuen Forum
Home
Help
Search
Login
Register
Linuxdelta
»
LinuxDelta
»
Knowledgeroot
»
saving and loading files - returns blank documents -
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: saving and loading files - returns blank documents - (Read 1571 times)
richardm
User
Posts: 3
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
Logged
admin
Administrator
User
Posts: 553
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
Logged
richardm
User
Posts: 3
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
Logged
admin
Administrator
User
Posts: 553
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
Logged
richardm
User
Posts: 3
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
Logged
admin
Administrator
User
Posts: 553
Re: saving and loading files - returns blank documents -
«
Reply #5 on:
June 24, 2009, 08:48:20 AM »
I created a ticket for that:
http://trac.knowledgeroot.org/cgi-bin/trac.cgi/ticket/108
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Linuxdelta
»
LinuxDelta
»
Knowledgeroot
»
saving and loading files - returns blank documents -