Author Topic: Filedownload after upgrade to 1.0.2 not working (empty page)  (Read 14041 times)

Offline t3_chris

  • User
  • *
  • Posts: 9
    • View Profile
Filedownload after upgrade to 1.0.2 not working (empty page)
« on: November 03, 2011, 08:11:13 AM »
Hi!

After upgrading to Knowledgeroot 1.0.2 I can't download any files. Uploads seem to work, but the download is broken and any download link leads to a blank page. I'm using PHP 5.1.6 and MySQL 5.0.22.

Here's an excerpt from the HTTPd's error log:
Code: [Select]
[Thu Nov 03 08:06:08 2011] [error] [client 1.2.3.4] PHP Warning:  mysql_num_rows(): supplied argument is not a valid MySQL result resource in /var/www/<myUrl>/html-no-ssl/include/class-mysql.php on line 86, referer: http://<myUrl>/index.php?id=309
[Thu Nov 03 08:06:08 2011] [error] [client 1.2.3.4] PHP Stack trace:, referer: http://<myUrl>/index.php?id=309
[Thu Nov 03 08:06:08 2011] [error] [client 1.2.3.4] PHP   1. {main}() /var/www/<myUrl>/html-no-ssl/index.php:0, referer: http://<myUrl>/index.php?id=309
[Thu Nov 03 08:06:08 2011] [error] [client 1.2.3.4] PHP   2. require_once() /var/www/<myUrl>/html-no-ssl/index.php:21, referer: http://<myUrl>/index.php?id=309
[Thu Nov 03 08:06:08 2011] [error] [client 1.2.3.4] PHP   3. knowledgeroot_header->check_download() /var/www/<myUrl>/html-no-ssl/include/init.php:205, referer: http://<myUrl>/index.php?id=309
[Thu Nov 03 08:06:08 2011] [error] [client 1.2.3.4] PHP   4. db->num_rows() /var/www/<myUrl>/html-no-ssl/include/class-knowledgeroot-header.php:407, referer: http://<myUrl>/index.php?id=309
[Thu Nov 03 08:06:08 2011] [error] [client 1.2.3.4] PHP   5. mysql_num_rows() /var/www/<myUrl>/html-no-ssl/include/class-mysql.php:86, referer: http://<myUrl>/index.php?id=309

Best Regards,

t3_chris

Offline admin

  • Administrator
  • User
  • *****
  • Posts: 688
    • View Profile
    • http://www.lordlamer.de
Re: Filedownload after upgrade to 1.0.2 not working (empty page)
« Reply #1 on: November 07, 2011, 10:24:07 PM »
Hi,

sorry for late reply.
I moved this weekend to my new home location and i have no internet here :/

How big is the file?

What value have you in your mysql settings for: max_allowed_packet ?

What value did you have for your php upload_max_filesize?
What value did you have for your php memory_limit?

regards,
Frank

Offline t3_chris

  • User
  • *
  • Posts: 9
    • View Profile
Re: Filedownload after upgrade to 1.0.2 not working (empty page)
« Reply #2 on: November 09, 2011, 06:15:58 PM »
Hi Frank!

This did happen also for small files of just some kilobytes. In the meanwhile I was able to fix the error, by removing the updated (from some 0.9.x version) installation and replacing it by a clean, new 1.0 version.

Thanks for your help!

Best Regards,

Christian