I set up Mantis to store uploaded files in the filesystem.
When I try to report a new error and try to attach a PDF document, I get an APPLICATION ERROR #0.
The environment:
- *Apache 2.0.53
*PHP 4.3.11
*MySQL 4.1.11
Code: Select all
$g_file_upload_method = "DISK";
Code: Select all
Full path: /opt/apache2_0_53/htdocs/mantis-0.19.2/core/file_api.php
Line: 571
Code: Select all
Variable Value Type
p_bug_id 5 string
p_tmp_file /var/tmp/phpLuaiMS string
p_file_name Advanced.pdf string
p_file_type application/pdf string
p_table bug string
p_title string
p_desc string
t_project_id 1 string
t_bug_id 0000005 string
c_bug_id 5 string
c_project_id 1 string
c_file_type application/pdf string
c_title string
c_desc string
t_file_path /opt/intranet/upload_mantis_intranet/ string
c_file_path /opt/intranet/upload_mantis_intranet/ string
c_new_file_name Advanced.pdf string
t_file_hash 0000005 string
t_disk_file_name /opt/intranet/upload_mantis_intranet/cae2b8a2bfb3bf9401e0278aab7db540 string
c_disk_file_name /opt/intranet/upload_mantis_intranet/cae2b8a2bfb3bf9401e0278aab7db540 string
t_file_size 7090 string
c_file_size 7090 string
t_method DISK string
Code: Select all
Filename Line Function Args
/opt/apache2_0_53/htdocs/mantis-0.19.2/core/file_api.php 571 trigger_error ( '0', 256 )
/opt/apache2_0_53/htdocs/mantis-0.19.2/bug_report.php 104 file_add ( 5, '/var/tmp/phpLuaiMS', 'Advanced.pdf', 'application/pdf' )
Does anybody have an idea? (oh yes... uploads generally work for other PHP applications in the same environment)