Loading...
 
Architecture / Installation

Architecture / Installation


File Upload Problems - or bugs?

posts: 53 India

Hello,

I am having problems with the Files Gallery...

When I use the option: Use database to store files

I can upload 3-4 files without any issues. But then I keep geting this error message:

Warning: mysql error: MySQL server has gone away in query:
insert into `tiki_files`(`galleryId`,`name`,`description`,`filename`,`filesize`,`filetype`,`data`,`user`,`created`,`downloads`,`path`,`hash`) values(?,?,?,?,?,?,?,?,?,?,?,?)
in /var/www/html/erc/lib/tikidblib.php on line 133

Fatal error: Call to a member function on a non-object in /var/www/html/erc/lib/tikidblib.php on line 151



So then I tried using the : Use a directory to store files option...

But it gives me the following error message:

Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/html/erc/tiki-upload_file.php on line 168

Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/html/erc/tiki-upload_file.php on line 168

Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/html/erc/tiki-upload_file.php on line 168

Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/html/erc/tiki-upload_file.php on line 168

Warning: fclose(): supplied argument is not a valid stream resource in /var/www/html/erc/tiki-upload_file.php on line 175


Can anyone figure out what the issue is? and what should i do to rectify the problem?

Any assistance will be highly appreciated.

Thanks
hk

posts: 53 India

Ok

did CHMOD 777

and it works like a charm now!

hk