I’m having this problem with another theme, too.
After disabling the plugin the attachment page (image.php) navigation thumbnails works as expected.
The site is currently available only in intranet, but I’ll paste the code to see if it helps.
Code with vanilla-pdf-embed enabled
<nav class="navigation">
<div class="nav-previous">
<object class="vanilla-pdf-embed" data="https://mywebsite-oldurl/wp-content/uploads/2015/12/DSC_0035.jpg#page=1&view=FitH" type="application/pdf" width="100%" height="500em" internalinstanceid="26">
<p><a href="https://mywebsite-oldurl/wp-content/uploads/2015/12/DSC_0035.jpg">Download the PDF file .</a></p>
</object>
</div>
<div class="nav-next"></div>
</nav>
Code with vanilla-pdf-embed disabled
<nav class="navigation">
<div class="nav-previous">
<a href="https://mywebsite/page/attachment/dsc_0035/">
<img width="150" height="150" src="https://mywebsite/wp-content/uploads/2015/12/DSC_0035-150x150.jpg" class="attachment-thumbnail size-thumbnail" alt="Sala de estudo em grupo">
</a>
</div>
<div class="nav-next"></div>
</nav>
Note that it adds an <object>
and it uses different urls to the image. This site has changed URL but with the plugin enabled it gets the previous URL (mywebsite-oldurl) and with the plugin disabled it gets the current URL (mywebsite).