Page 1 of 1
Joomla Explorer
PostPosted:Fri May 10, 2013 1:06 pm
by iamkhris
Has anyone had any successful experience getting this to work? The problem I'm having is as soon as I select a document, I get a "Restricted Access" error. I can browse through OpenKM folders from within Joomla Explorer, and I can see all the files etc, but as soon as I click on a file, I get the above error. I'm using Joomla 2.5.8 and the appropriate Joomla Explorer plugin.
I've since tried setting up a test site with Joomla 3.1 and the appropriate Explorer plugin, however I can't even get into the configuration without an error.
I've done some searching but have found nothing to aid in resolving this issue. Suggestions?
Thanks
Re: Joomla Explorer
PostPosted:Sat May 11, 2013 9:59 am
by jllort
Us we got here running
http://www.openkm.com/en/support/documents.html without major problems, and be sure it's the same version you're using.
Let us to see some screenshot to understand the possible cause of the problem. Have you following the steps detailed in
http://wiki.openkm.com/index.php/Joomla_explorer
Re: Joomla Explorer
PostPosted:Tue May 14, 2013 12:37 pm
by iamkhris
I followed the detailed setup guide, but whenever I click on a document, I get a blank white page with "Restricted access" in the upper left corner.
Does OpenKM and the Joomla installation need to be on the same server? Currently our OpenKM installation and Joomla installation are on two separate servers.
Re: Joomla Explorer
PostPosted:Wed May 15, 2013 6:01 am
by jllort
No there's no needed to be on same server. For what you told, you can browser across folders and files no ? but the error comes when you try to download files is that ?
Re: Joomla Explorer
PostPosted:Wed May 15, 2013 2:00 pm
by iamkhris
Yes, that's correct. I have no problems browsing through the folder structure, and I can see all the folders and filenames. As soon as I click on a file (regardless of filetype, .doc, .xls, .png, etc), I get the "Restricted access" error.
Re: Joomla Explorer
PostPosted:Thu May 16, 2013 9:35 pm
by jllort
In administration the openkm url you set ends with / or without ?
If that not solves the problem, take a look at the downloading url you should see:
http://www.openkm.com/components/com_op ... y.pdf&id=1
1- ensure you have enought grants to execute download.php.
2- try to debug php file.
Re: Joomla Explorer
PostPosted:Fri May 17, 2013 12:00 pm
by iamkhris
"
http://192.168.100.36:8080/OpenKM/index.jsp" That is the line I have in my OpenKM config for application.url. I tried removing the index.jsp but that didn't help either.
I gave the my apache webserver user full access to the com_openkm folder, but no help there either. Still getting the "Restricted access" error.
This is the URL that is being generated by the component.
http://xxxxxxxxxx.com/components/com_op ... t/Policies and Procedures/Mobile/Mobile Policy & Procedures Table of Contents.docx&id=2
I've also tried setting up a new folder without any spaces in it, and uploaded a document without spaces. Same error.
Re: Joomla Explorer
PostPosted:Fri May 17, 2013 3:19 pm
by jllort
Can you try with document name without special chars like '&' ( path and document name without spaces and & , I think & can be identified as parameter -> if we do not doing url enconde we should do it, it's possible bug ).
When I was talking about url I was talking about joomla url not configured into OpenKM parameters.
confirm to us, probably we will change download by uuid which sure will not have problems.
Re: Joomla Explorer
PostPosted:Mon May 20, 2013 6:14 pm
by iamkhris
I did try creating a test folder without any spaces or special characters, as well as a file without any spaces or special characters, however I get the same error.
"When I was talking about url I was talking about joomla url not configured into OpenKM parameters." - I'm not sure what you mean here. Could you please elaborate?
Re: Joomla Explorer
PostPosted:Mon May 20, 2013 8:38 pm
by jllort
In this screenshot
http://wiki.openkm.com/index.php/File:O ... de_338.png you can see OpenKM url ends with / can you ensure in your case ends with / too. And the same with the path /okm:root in your case your path without ends with /
In each case with / or not like you see in screenshot. Basically is to be sure in path there's no bug.
Any error in your apache log server ?
Which openkm version are you using ?
Re: Joomla Explorer
PostPosted:Mon May 20, 2013 8:48 pm
by iamkhris
Checked my configuration and it matches the screenshot.
64bit OpenKM 6.2.3 Community Edition installed on Ubuntu 10.04 64bit
I'll have to check the apache logs tomorrow when I'm back at work.
Re: Joomla Explorer
PostPosted:Tue May 21, 2013 9:46 am
by jllort
Should be some error, otherside will be needed to add some entries for log what's happening.
Re: Joomla Explorer
PostPosted:Wed May 22, 2013 1:56 am
by rbahntje
Some problem:
OpenKM 6.2.3
Joomla! 3.1.1 Stable
The error come from in $APACHE_HOME/$JOOMLA_HOME/components/com_openkm/classes.php
I ve commented the line
defined( '_JEXEC' ) or die( 'Restricted access3' );
And it´s working. I am missing something in the configuration?
As far as I know, commenting this line will cause some security vulnerabilities with path exposure
Re: Joomla Explorer
PostPosted:Wed May 22, 2013 12:13 pm
by iamkhris
rbahntje wrote:
The error come from in $APACHE_HOME/$JOOMLA_HOME/components/com_openkm/classes.php
I ve commented the line
defined( '_JEXEC' ) or die( 'Restricted access3' );
Thanks for this tip! I've tried the same thing, except I've had to comment out the line in both clase.php and download.php, and now it works as expected.
Any ideas why this is behaving like it is?
Re: Joomla Explorer
PostPosted:Fri May 24, 2013 4:02 pm
by sochoa
this error was because these file must be public access and not have to restrict access
Can use the new version of joomla explorer this error is already fixed.
You can download the component:
http://wiki.openkm.com/index.php/Joomla_explorer
Greetings