I was trying to use PLUGIN_PATH/get_plugin_http_path() in KTD but it was producing an invalid URL path. But that's because that variable/function dates from bug 7804 (written in 2010 and then added to Koha in 2013). Back then, I remember it was sometimes necessary to manually add 'Alias /plugin/ "/var/lib/koha/plugins/"' to your Apache configuration. It appears that Alias was added to "etc/koha-httpd.conf" in bug 7804 but not added to the Debian Apache files. These days, plugins are served from other places than "/var/lib/koha/plugins" anyway. But yeah... just noting this for now...
Hi, can you tell me if this bug – and/or the alias issue – is likely the reason why plugin images aren't loading in the instance I manage? (Currently 22.11, will be upgraded to 24.11, but dates back to 2012.) I was doing some auditing and pruning in this area today, and I noticed that the path to the images is incorrect, but it wasn't clear to me where a fix should be implemented. Will an alias entry fix that? If so, in which .conf file(s) would this be best placed? Thanks!
(In reply to David Liddle from comment #1) > Hi, can you tell me if this bug – and/or the alias issue – is likely the > reason why plugin images aren't loading in the instance I manage? (Currently > 22.11, will be upgraded to 24.11, but dates back to 2012.) I was doing some > auditing and pruning in this area today, and I noticed that the path to the > images is incorrect, but it wasn't clear to me where a fix should be > implemented. Will an alias entry fix that? If so, in which .conf file(s) > would this be best placed? Thanks! Depends on your plugin. If it's a publicly accessible site, DM me on Mattermost and I could take a quick peek.