0
Hi,
I have successfully installed Invoice Manager with dompdf, but when I click the .pdf icon it doesn't load or work. I get a 404 error 'not found'.
This suggest to me that the .pdf isn't being created. magic_quotes_gpc is OFF so that is no the problem...
Please can someone help
Thanks
Paul
I have successfully installed Invoice Manager with dompdf, but when I click the .pdf icon it doesn't load or work. I get a 404 error 'not found'.
This suggest to me that the .pdf isn't being created. magic_quotes_gpc is OFF so that is no the problem...
Please can someone help
Thanks
Paul
Responses (9)
-
Accepted Answer
-
Accepted Answer
0no SEF is working fine...
http://www.rinatomedia.com/clients/my-invoices/4-2013-3.dompdf sample URL which gives teh 404 error
I even create a brand new invoice since installing dompdf and the problem is the same... -
Accepted Answer
-
Accepted Answer
0Hi,
I've just tried that and it still doesn't seem to work...
It also doesn't work if I take the 'dom' bit out of the url so it reads: http://www.rinatomedia.com/clients/my-invoices/4-2013-3.pdf
If I hover over the .pdf icon and click 'Save Link As' it doesn't seem to be able to download anything either.
I'm using Joomla's core SEF Links, how do I 'avoid' the sef urls for pdf links? -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
0that's strange. well in taht case we will hve to go with the code tweak.
it's in the file /components/com_invoices/helpers/helpers.php
if you go to line 129 you will see this:
else $url = JRoute::_('index.php?option=com_invoices&view=invoice&format=dompdf&id='.$id);
you have to replace it for:
else $url = $uri->root().'index.php?option=com_invoices&view=invoice&format=dompdf&id='.$id;
-
Accepted Answer
-
Accepted Answer
0I had same issue....
If you choose to keep Joomla's Add Suffix option enabled in your global config.
Then you'll want to edit your .htaccess file in your joomla site's root directory.
Replace this line at the bottom of the .htaccess file under "Joomla Core SEF section"
RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]
Replace with:
RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|dompdf|vcf|raw))$ [NC]
by adding the dompdf to the rewrite condition the server should redirect to the appropriate pdf file allowing your viewer to download the pdf even though the URL will be displayed in the browser as filename.dompdf
Hope that helps!-
Germinal Campsmore than a month agovery good solution. well done!
-
Your Reply
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »