Thanks for your report. Thanks as well for taking the time to sort through the code and post a link to the possible cause. I have run some tests on my system and discovered that when the mla_alt_ids_value is used MLA generates the style template, gallery open and row open HTML markup even though an alternate shortcode has been specified.
I have corrected the MLA defect and uploaded a new MLA Development Version dated 20200314 that contains the fix. You can find step-by-step instructions for using the Development Version in this earlier topic:
PHP Warning on media upload with Polylang
It would be great if you can install the Development Version and let me know if it works for you. Thanks for alerting me to this MLA defect.
I just patched a small defect in the Development Version uploaded 30 minutes ago. If you already installed it, please do so again. I regret the inconvenience.
Thanks for the speedy response. I can confirm it is fixed in the latest development version.
Additionaly the development version solved another problem I’ve encountered, which was that {+title+} was not being evaluated when placed in mla_alt_ids_value. I’m unsure if it’s related to this problem’s fix, but I am grateful nonetheless! Thanks.
Thanks for your updates confirming the Development Version updates. The {+title+} evaluation defect was the fix I added 30 minutes after my first update. I am happy to see it helped.
I have released MLA v2.82, which contains the fix for this defect. I am marking the topic resolved, but please update it if you have any problems or further questions regarding the fix. Thanks again for identifying this MLA defect.