Author Topic: Problem with upload powerpoint file(*.ppt)  (Read 32567 times)

Offline ag0927

  • User
  • *
  • Posts: 11
    • View Profile
Re: Problem with upload powerpoint file(*.ppt)
« Reply #15 on: December 27, 2007, 02:55:02 AM »
It does not work!!

Sorry but i did not understand. Does it work now or not?

Frank

Offline admin

  • Administrator
  • User
  • *****
  • Posts: 694
    • View Profile
    • http://www.lordlamer.de
Re: Problem with upload powerpoint file(*.ppt)
« Reply #16 on: December 27, 2007, 09:24:17 AM »
Could you give me the exact name of the file?

Offline ag0927

  • User
  • *
  • Posts: 11
    • View Profile
Re: Problem with upload powerpoint file(*.ppt)
« Reply #17 on: December 28, 2007, 05:58:04 AM »
It seems not to be a file name problem.
Because I change the file name into English.
But not work.

Could you give me the exact name of the file?

Offline admin

  • Administrator
  • User
  • *****
  • Posts: 694
    • View Profile
    • http://www.lordlamer.de
Re: Problem with upload powerpoint file(*.ppt)
« Reply #18 on: December 30, 2007, 01:06:08 AM »
Hi,

i will change a file for you to get more debug information. I will post the link here if i have done this.

Frank

Offline admin

  • Administrator
  • User
  • *****
  • Posts: 694
    • View Profile
    • http://www.lordlamer.de
Re: Problem with upload powerpoint file(*.ppt)
« Reply #19 on: December 30, 2007, 01:17:15 AM »
Hi again,

OK. Change in include/mysql.php on line 94
this:
Code: [Select]
$this->CLASS['error']->log("ERROR IN QUERY: \"$query\"",1,mysql_errno() . ":".mysql_errno());to:
Code: [Select]
echo "ERROR IN QUERY: \"$query\"",1,mysql_errno() . ":".mysql_errno() . "<br />\n";
After that change try to upload the file again. You should see now a error message on the display. Please post this message here.

Thanks.
Frank

Offline ag0927

  • User
  • *
  • Posts: 11
    • View Profile
Re: Problem with upload powerpoint file(*.ppt)
« Reply #20 on: January 01, 2008, 02:54:24 PM »
Thank you very much.

I change line 94 to
die('Invalid query: ' . mysql_error());

It echo a message:Invalid query: Got a packet bigger than 'max_allowed_packet' bytes

So it is a mysql error.

I edit /etc/my.cnf. Add a line like this.
==================
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1
max_allowed_packet=32MB
====================

And it does work!!!!!

Offline admin

  • Administrator
  • User
  • *****
  • Posts: 694
    • View Profile
    • http://www.lordlamer.de
Re: Problem with upload powerpoint file(*.ppt)
« Reply #21 on: January 04, 2008, 02:29:55 AM »
Ok.

Good to know that this is fixed.

Thanks for your testing and help.

Frank