Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: dolittle on March 18, 2009, 03:32:34 PM

Title: No uploads to Mantis in an i-bay
Post by: dolittle on March 18, 2009, 03:32:34 PM
Hi,
i've installed Mantis in an i-Bay on my 7.4 Server and everything runs fine except file uploading. Regardless what I configure. There's always the error message

APPLICATION ERROR #15

File upload failed. File is not readable by Mantis. Please check the project settings.

I searched this forum and the internet. May be i used the wrong expressions but i never managed to get this working.

Anyone with a hint?

Thanks in advance
Title: Re: No uploads to Mantis in an i-bay
Post by: Stefano on March 18, 2009, 09:13:23 PM
hi

first of all: how did you installed mantis?

then: where the application is trying to save uploaded files?

finally: did you try to check httpd error log?

Ciao
Stefano
Title: Re: No uploads to Mantis in an i-bay
Post by: dolittle on March 19, 2009, 01:32:58 PM
Hi,

first:
created an i-bay. copied everything to the html subdir and ran install.

second:
at first it tried to save at /tmp. Afterward I created a new subdir and changed the PHP variable upload_tmp_dir to /tmp/upload and also changed the permissions of that dir to 777 and ownership to www.www to eliminate permissions issues

finally:
yes. Checked /var/log/httpd/error_log and found no suspicious entries.
Title: Re: No uploads to Mantis in an i-bay
Post by: Stefano on March 19, 2009, 02:16:49 PM
hi..

try to setup the temp dir into the ibay and let us know

Ciao
Stefano
Title: Re: No uploads to Mantis in an i-bay
Post by: dolittle on March 19, 2009, 03:33:14 PM
Great!!

Thanks. It works now. I only have to find a way to make this change permanent.

Thanks very much
Title: Re: No uploads to Mantis in an i-bay
Post by: Stefano on March 19, 2009, 03:53:06 PM
I only have to find a way to make this change permanent.

well.. how did you setup the temp dir the first time? I'm sure that you can repeat that procedure or modify a conf file..

Ciao
Stefano
Title: Re: No uploads to Mantis in an i-bay
Post by: dolittle on March 19, 2009, 04:11:35 PM
Sure,
but I would like to make it update proof. It's time for more reading I think.

Thanks anyway very much.
Title: Re: No uploads to Mantis in an i-bay
Post by: David Harper on March 19, 2009, 04:36:46 PM
If you tell us what you did we can probably assist with that ;)
Title: Re: No uploads to Mantis in an i-bay
Post by: cactus on March 19, 2009, 09:45:25 PM
but I would like to make it update proof. It's time for more reading I think.
this should get you started: http://wiki.contribs.org/SME_Server:Documentation:Developers_Manual#Configuration_file_templates
Title: Re: No uploads to Mantis in an i-bay
Post by: dolittle on March 20, 2009, 06:29:58 PM
Thanks for the hint.
After reading this I came to the conclusion that I had to add a new directory
Code: [Select]
/etc/e-smith/templates-custom/etc/php.ini and add a new file containing
Code: [Select]
upload_tmp_dir        = /home/e-smith/files/ibays/mantis/files/
to set the upload dir accordingly. The file was called 61FileUploads since 60FileUploads contains the unmodified part of the section.

Does this seem logical to you, too?

Thanks.
Title: Re: No uploads to Mantis in an i-bay
Post by: cactus on March 21, 2009, 09:34:57 PM
If the 61something file contains the section you need to modify, yes, otherwise you should just copy the file to the -custom tree and make desired changes there as that should override the original in the templates tree.
Title: Re: No uploads to Mantis in an i-bay
Post by: dolittle on March 22, 2009, 07:36:51 PM
Thanks for your patient, friendly and fast reply.