Page 1 of 1

attachment migration problem

Posted: 08 May 2018, 13:01
by oshiwosh1
migrating from hosted with mantis to our own server
v.2.14.0

the migration has been perfect except...
attachments are not showing up. if i look in the mantis_bug_file_table all the 'folder' fields point to what must've been the correct location in the previous set up. however, changing this to the new location does nothing. Note the 'content' fields all are [BLOB - 0 B] which i presume means that the attachments are not stored within the db.

i am guessing there is some config file somewhere that needs changing - can anyone help?

Re: attachment migration problem

Posted: 09 May 2018, 16:35
by oshiwosh1
Is this my problem?

"core_path configuration option is set to a path outside the web root
For increased security it is recommended that you move the core_path directory outside the web root. "

Code: Select all

$g_absolute_path = dirname( __FILE__ ) . DIRECTORY_SEPARATOR;
Do I need to edit this? if so, how?

TIA - Osh

Re: attachment migration problem

Posted: 11 May 2018, 17:40
by oshiwosh1
If I edit the $g_absolute_path to something like in the documentation eg

Code: Select all

$g_absolute_path = 'http://www.mysite.com/mantis2140/'. DIRECTORY_SEPARATOR;
it breaks everything

Any ideas?