This seems to be a bug of the plugins fallback plugin_mediainsert.tpl file. Thanks!
Line 7 should be (removed the slash in {$serendipityHTTPPath}/uploads)
Code: Select all
<a class="serendipity_image_link" href="{$serendipityHTTPPath}uploads/{$medium.path}{$medium.realname}">
The other problem is that your Smarty object (and its vars like {$serendipityHTTPPath}) isn't instanciated yet. Did you change some plugin order in the backend or anything that could make that happen?
I just tested my local 0.40 with a new mediainsert gallery and all is well with 0.40, which last changes did work on other parts.
Edit: Oh I just saw you are using the 2.0 beta already.
2 things to take care about:
Is it a current github snapshot?
Do you use the core ckeditor? This does not have (and I am not sure it will ever have) all the modifications the plugin has, for handling certain S9y things like the mediainsert insert.
I already committed the change and also added some is_object(smarty) checks.