Page 1 of 1

OpenKM/Joomla integration

PostPosted:Tue Sep 24, 2013 12:50 pm
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.

Re: OpenKM/Joomla integration

PostPosted:Thu Sep 26, 2013 7:17 am
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 ).

Re: OpenKM/Joomla integration

PostPosted:Sun Sep 29, 2013 2:36 pm
by Alexires
Sorry, do you mean the Joomla Explorer version should be 1.0.0? On the wiki (http://wiki.openkm.com/index.php/Joomla_explorer) it says that 1.0.1 works with Joomla 2.5 and there is no download link to version 1.0.0.

The missing url is http://path_to_OpenKM.org

Re: OpenKM/Joomla integration

PostPosted:Mon Sep 30, 2013 5:15 pm
by jllort
Sorry, you're right, version is 1.0.1

I would like you put a screenshot like this http://wiki.openkm.com/index.php/File:O ... de_338.png

Re: OpenKM/Joomla integration

PostPosted:Tue Oct 01, 2013 3:01 am
by Alexires
As requested

Re: OpenKM/Joomla integration

PostPosted:Wed Oct 02, 2013 8:46 pm
by jllort
Url it's wrong should be .org/OpenKM o .org:8080/OpenKM ( depends if you've configured apache proxy etc... ) take a look at this image http://wiki.openkm.com/index.php/File:O ... de_338.png

Tell us if that solves the problem

Re: OpenKM/Joomla integration

PostPosted:Fri Oct 04, 2013 3:32 am
by Alexires
Tried the following with no success:
http://*****.org:8080/OpenKM/
http://*****.org:8080/OpenKM
http://*****.org/OpenKM/
http://*****.org/OpenKM

Re: OpenKM/Joomla integration

PostPosted:Fri Oct 04, 2013 10:52 am
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.

Re: OpenKM/Joomla integration

PostPosted:Sat Oct 05, 2013 2:49 am
by Alexires
Right you are; it was a permissions problem.

Re: OpenKM/Joomla integration

PostPosted:Sat Oct 05, 2013 9:21 am
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.

Re: OpenKM/Joomla integration

PostPosted:Mon Dec 16, 2013 5:33 am
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?

Re: OpenKM/Joomla integration

PostPosted:Mon Dec 16, 2013 5:37 pm
by jllort
What OpenKM version do you got ? are you using SSL or similar ?

Re: OpenKM/Joomla integration

PostPosted:Tue Dec 17, 2013 6:00 am
by Alexires
Hi jllort,
Running OKM6.2.20 with no SSL.

Server: Ubuntu 12.04.3 LTS with Apache2 (CGI/FastCGI)

Re: OpenKM/Joomla integration

PostPosted:Sun Dec 22, 2013 10:06 am
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) . '"');

Re: OpenKM/Joomla integration

PostPosted:Mon Dec 23, 2013 6:04 pm
by jllort
We will correct it.