The problem is with the header line in your reference database:
To speed things up, the new mapping approach implemented in MEGAN 6.18.0 (but please use the update 6.18.1) does a lookup on the first word in the header line, which in this example is
gi|489855549|ref|WP_003759213.1. For this to work, you would have to strip away the
gi|…|ref| from all headers before running through DIAMOND.
MEGAN provides to mapping modes, FAST mode and EXTENDED mode. EXTENDED mode should be able to handle your files as is, but it will be much slower than the FAST mode.
Please give that a try and let me know how it goes.