I thought you'd like to hear about some very bizarre behaviour that can be induced when downloading files using Internet Explorer. (and how to avoid it)
We are using KT 3.4.1 commercial version set up on a Linux system.
We are also using KT 3.4.3 open source set up on windows systems.
Said behaviour only occurs on the former system, and only when using Internet Explorer, not Firefox. I don't know whether the issue arises from the version of KT used, or the operating system.
To Reproduce:
Create and register a new plugin, and include the following line:
- Code: Select all
require_once (KT_DIR . "/ktapi/ktapi.inc.php");
(The KTAPI class has a lot of useful functionality, and it's perfectly reasonable to want to access it in a plugin. However, it doesn't matter of you're using it or not, just include the above line)
Now, using Internet Explorer to access a production KT system running on Linux, try to download a file. This is the download dialog you will see:
It seems the IE has somehow confused the url with the filename. Not surprisingly, proceeding with the download results in failure.
Anyway, to cut a long story short, the workaround I've discovered is to include ktapi.inc.php in plugins/ktcore/KTDocumentActions.php.
For whatever, reason, including the file here doesn't cause the problem, and still provides access to KTAPI for the plugins that need it.