Koozali.org: home of the SME Server

No uploads to Mantis in an i-bay

Offline dolittle

  • *
  • 10
  • +0/-0
No uploads to Mantis in an i-bay
« 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

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: No uploads to Mantis in an i-bay
« Reply #1 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

Offline dolittle

  • *
  • 10
  • +0/-0
Re: No uploads to Mantis in an i-bay
« Reply #2 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.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: No uploads to Mantis in an i-bay
« Reply #3 on: March 19, 2009, 02:16:49 PM »
hi..

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

Ciao
Stefano

Offline dolittle

  • *
  • 10
  • +0/-0
Re: No uploads to Mantis in an i-bay
« Reply #4 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

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: No uploads to Mantis in an i-bay
« Reply #5 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

Offline dolittle

  • *
  • 10
  • +0/-0
Re: No uploads to Mantis in an i-bay
« Reply #6 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.

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: No uploads to Mantis in an i-bay
« Reply #7 on: March 19, 2009, 04:36:46 PM »
If you tell us what you did we can probably assist with that ;)

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: No uploads to Mantis in an i-bay
« Reply #8 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
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline dolittle

  • *
  • 10
  • +0/-0
Re: No uploads to Mantis in an i-bay
« Reply #9 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.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: No uploads to Mantis in an i-bay
« Reply #10 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.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline dolittle

  • *
  • 10
  • +0/-0
Re: No uploads to Mantis in an i-bay
« Reply #11 on: March 22, 2009, 07:36:51 PM »
Thanks for your patient, friendly and fast reply.