|
Look in your Apache error logs. I would just do a "tail -f" of the log, click on the PDF link and see what comes up. You will likely see something to the effect of "PHP Fatal Error" describing what is wrong. You may not have the php pdf extensions installed, or something.
|
PDF icon not working ...
|
Posted 15 years ago
by usdc_oregon
|
|
Well, based on your last statement, I created a workaround by adding the following into my .htaccess file:
RewriteBase / RewriteRule (.*)\/pdf$ http://ord.uscourts.gov/$1?&format=pdf [R=301,L]
Perhaps this will help others. It's such a minor issue that I don't think we need to bother with providing backend access to the site.
|
PDF icon not working ...
|
Posted 15 years ago
by usdc_oregon
|
|
As the OP I figured I'd put in some further info. I also tried purging the SEF URLs which did not resolve the problem. I've attached an image showing you the SEF URLs that have been generated for PDF links.
I'm using the Solar Sentinel template by Rocket Theme, which is relatively popular.
|
PDF icon not working ...
|
Posted 15 years ago
by usdc_oregon
|
|
Well, all our documents are public domain and, like I said, our only registered users are employees, so it ends up not being too big of a deal. I'm sure other users will be pleased if you wish to enhance the security checking further.
|
Frontend joomdoc lin ...
|
Posted 15 years, 1 month ago
by usdc_oregon
|
|
|
Frontend JoomDOC Lin ...
|
Posted 15 years, 1 month ago
by usdc_oregon
|
|
So I've created a kludgy hack which allows the use of the "JoomDOC Link" button from the front end. Open up [Joomla Home]/components/com_joomdoc/controller.php and look for this:
case 'doc_publish': DocumentsHelper::publishDocument(array($gid)); break;
AFTER that snippet (around Line 93) paste the following code:
// JoomDOC link hack for front-end access case "doclink": $user =& JFactory::getUser(); if ($user->guest) { die("Not Authorized!"); } else { global $_DOCMAN, $mainframe; $_DOCMAN = new dmMainFrame ( ); require_once(JPATH_ROOT . "/administrator/components/com_joomdoc/includes/doclink.php"); showDoclink(); } break; case "doclink-listview": $user =& JFactory::getUser(); if ($user->guest) { die("Not Authorized!"); } else { global $_DOCMAN, $mainframe; $_DOCMAN = new dmMainFrame ( ); require_once(JPATH_ROOT . "/administrator/components/com_joomdoc/includes/doclink.php"); showListview(); } break;
It works for us, so hopefully it will work for you. I've added a small security hack so that guests cannot try to edit anything. Since only employees are allowed to login it servers our purpose well. If you want to prevent some of your registered users from being able to access documents you may need to do some additional hacking.
|
Frontend joomdoc lin ...
|
Posted 15 years, 1 month ago
by usdc_oregon
|
|
Just some background info, in case it helps. We started out with DOCMan and upgraded to JoomDOC. We are also running JoomFish and using JCE on Joomla 1.5.15. The server is Suse SLES 11 with PHP 5.2.6.
|
Frontend joomdoc lin ...
|
Posted 15 years, 2 months ago
by usdc_oregon
|
|
I don't have a solution but I'd like to chime in that I'm having the exact same problem. Hopefully the developers are reading this and will have a fix soon, as this would become a major hassle for us when we go live to our general users. I'm a paid JoomSEF user and my posting on the paid JoomSEF forum has gone ignored for two weeks so far.
|
Frontend joomdoc lin ...
|
Posted 15 years, 2 months ago
by usdc_oregon
|
|
After installing JoomSEF my PDF icon has stopped working. It appears that JoomSEF converts the URL to a */pdf instead of the ?format=pdf. For instance, this is what is being presented from the icon:
ord.uscourts.gov/attorneys/information-for-attorneys/pdf
However, if I change this to ord.uscourts.gov/attorneys/information-for-attorneys?format=pdf in the address bar I get my PDF.
I'm running Joomla 1.5.15 with JoomSEF 3.5.1
The site is running on SuSE Linux Enterprise Server (SLES) 11 with all updates
memory_limit = 1024M
The following PHP packages are installed:
php5-tokenizer-5.2.6-50.23.1
php5-gd-5.2.6-50.23.1
php5-mcrypt-5.2.6-50.23.1
php5-dom-5.2.6-50.23.1
php5-xmlwriter-5.2.6-50.23.1
php5-json-5.2.6-50.23.1
php5-xmlreader-5.2.6-50.23.1
apache2-mod_php5-5.2.6-50.23.1
php5-ldap-5.2.6-50.23.1
php5-pear-5.2.6-50.23.1
php5-ctype-5.2.6-50.23.1
php5-pdo-5.2.6-50.23.1
php5-soap-5.2.6-50.23.1
php5-curl-5.2.6-50.23.1
php5-mysql-5.2.6-50.23.1
php5-zlib-5.2.6-50.23.1
php5-5.2.6-50.23.1
php5-iconv-5.2.6-50.23.1
php5-hash-5.2.6-50.23.1
php5-openssl-5.2.6-50.23.1
|
PDF icon not working ...
|
Posted 15 years, 2 months ago
by usdc_oregon
|
More |