attachment migration problem

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
oshiwosh1
Posts: 6
Joined: 08 May 2018, 12:51

attachment migration problem

Post 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?
oshiwosh1
Posts: 6
Joined: 08 May 2018, 12:51

Re: attachment migration problem

Post 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
oshiwosh1
Posts: 6
Joined: 08 May 2018, 12:51

Re: attachment migration problem

Post 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?
Post Reply