• OpenKM/Joomla integration

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #25576  by Alexires
 
Hi All,
I've downloaded the Joomla extension for OpenKM, and have configured it as per the instructions on the wiki, however when I hit "test", the extension says "Cannot establish a connection"

I'm running OpenKM Professional 6.2.20 on Ubuntu x64 12.04LTS, and running Joomla 2.5.14 on another server.
 #25603  by jllort
 
First you should running openkm joomla 1.0.0 not 1.0.1 ( which only works for joomla 3 )
Can you share here a screenshot with connection data ( hide parts which should not be public ).
 #25742  by Alexires
 
Tried the following with no success:
http://*****.org:8080/OpenKM/
http://*****.org:8080/OpenKM
http://*****.org/OpenKM/
http://*****.org/OpenKM
 #25746  by jllort
 
If you accessing from http://*****.org/OpenKM/ should be this.

Are you sure openkm user has enought grants to browser entire folders. Can you make us some screenshots about user navigating from openkm UI and from joomla.
 #25760  by jllort
 
Better if we solved it. Was strange because we got several customers are using it, and nobody reported something similar. For what we know there're not know bugs on it.
 #27477  by Alexires
 
Hi there,

I've encountered an error when trying to access a file from the Joomla OpenKM component.

When I click the file, I get an "Internal Server Error" which the apache2 error.log gives as
Code: Select all
malformed header from script. Bad header=Expires: download.php, referer: www.mywebsite.com
I've been playing around with cache expiry, but in a different part of the site and I can't think of something that I've done in this section.

Any ideas?
 #27485  by jllort
 
What OpenKM version do you got ? are you using SSL or similar ?
 #27489  by Alexires
 
Hi jllort,
Running OKM6.2.20 with no SSL.

Server: Ubuntu 12.04.3 LTS with Apache2 (CGI/FastCGI)
 #27507  by Alexires
 
Worked out what the problem is - missing ":" (colon) in the download.php file. It currently reads:
Code: Select all
header('Expires', 'Sat, 6 May 1971 12:00:00 GMT');
header('Cache-Control', 'max-age=0, must-revalidate');
header('Cache-Control', 'post-check=0, pre-check=0');
header('Pragma', 'no-cache');
header('Content-Type: ' . $properties->mimeType);
header('Content-Disposition: attachment; filename="' . substr($properties->path, strrpos($properties->path, '/') + 1) . '"');
where changing it to the following fixes the issue (inclusion of : after expires, cache-control, and pragma):
Code: Select all
header('Expires:', 'Sat, 6 May 1971 12:00:00 GMT');
header('Cache-Control:', 'max-age=0, must-revalidate');
header('Cache-Control:', 'post-check=0, pre-check=0');
header('Pragma:', 'no-cache');
header('Content-Type: ' . $properties->mimeType);
header('Content-Disposition: attachment; filename="' . substr($properties->path, strrpos($properties->path, '/') + 1) . '"');

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.