Author Topic: Cannot upload all files  (Read 6504 times)

Offline Raboo

  • User
  • *
  • Posts: 21
    • View Profile
    • LetIT Hosted Exchange
Cannot upload all files
« on: October 17, 2011, 09:49:49 AM »
Hi,

I cannot uppload the following file: HP-UX_LAN_Administrators_guide.pdf

apache error_log:
Code: [Select]
[Mon Oct 17 10:46:06 2011] [error] [client 10.102.2.153] PHP Warning:  mysql_num_rows() expects parameter 1 to be resource, boolean given in /var/www/html/domain.com/include/class-mysql.php on line 86, referer: _http://domain.com/index.php
[Mon Oct 17 10:46:06 2011] [error] [client 10.102.2.153] PHP Warning:  mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in /var/www/html/domain.com/include/class-mysql.php on line 113, referer: _http://domain.com/index.php
[Mon Oct 17 10:46:06 2011] [error] [client 10.102.2.153] PHP Warning:  mysql_num_rows() expects parameter 1 to be resource, boolean given in /var/www/html/domain.com/include/class-mysql.php on line 86, referer: _http://domain.com/index.php

Offline admin

  • Administrator
  • User
  • *****
  • Posts: 694
    • View Profile
    • http://www.lordlamer.de
Re: Cannot upload all files
« Reply #1 on: October 17, 2011, 12:45:38 PM »
Hi,

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 Raboo

  • User
  • *
  • Posts: 21
    • View Profile
    • LetIT Hosted Exchange
Re: Cannot upload all files
« Reply #2 on: October 17, 2011, 03:36:21 PM »
memory_limit   128M
upload_max_filesize   2M

[mysqld]
max_allowed_packet = 1M

filesize: 850 KB

Offline admin

  • Administrator
  • User
  • *****
  • Posts: 694
    • View Profile
    • http://www.lordlamer.de
Re: Cannot upload all files
« Reply #3 on: October 17, 2011, 03:53:57 PM »
Hi,

try to increase the max_allowed_packet size to 2M or more.

Frank

Offline Raboo

  • User
  • *
  • Posts: 21
    • View Profile
    • LetIT Hosted Exchange
Re: Cannot upload all files
« Reply #4 on: October 17, 2011, 03:58:46 PM »
It worked!
Thanks for the help