just444 Posted April 28, 2012 Share Posted April 28, 2012 HEllo, I'm seeing the Error 500 message when trying to display a pdf invoice. I know that it has something to do with permissions but have no clue which folders/files are responsible for pdf generation. Would anyone know? Thanks Link to comment Share on other sites More sharing options...
CartExpert.net Posted April 28, 2012 Share Posted April 28, 2012 Hi. What hosting control panel are you using? Regards. Robin. The CartExpert Team Link to comment Share on other sites More sharing options...
just444 Posted April 28, 2012 Author Share Posted April 28, 2012 Hi Robin, not sure what you mean by hosting control panel. I use filezilla to manage files. Link to comment Share on other sites More sharing options...
just444 Posted April 29, 2012 Author Share Posted April 29, 2012 Anyone knows? Are pdfs stored somwhere? Thanks Link to comment Share on other sites More sharing options...
just444 Posted September 8, 2012 Author Share Posted September 8, 2012 Hi. What hosting control panel are you using? Regards. Robin. The CartExpert Team Hi Robin, just moved the store to JustHost and I am still unable to display invoices. When I change permissions to the pdf.php file an error changes to: [an error occurred while processing this directive]. Link to comment Share on other sites More sharing options...
vekia Posted September 8, 2012 Share Posted September 8, 2012 maybe you have an access to server logs? You find there where the problem exactly occur. Link to comment Share on other sites More sharing options...
just444 Posted September 8, 2012 Author Share Posted September 8, 2012 (edited) I have no idea what it is but Ive found this: [warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored. and this: Call to undefined method Cart::getTaxesAverageUsed in /classes/Order.php on line 418 Edited September 8, 2012 by just444 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted September 8, 2012 Share Posted September 8, 2012 (edited) I have no idea what it is but Ive found this: [warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored. and this: Call to undefined method Cart::getTaxesAverageUsed from stackoverflow: If you see the following error in apache error log: [warn] RewriteCond: NoCase option for non-regex pattern ‘-f’ is not supported and will be ignored You should change the following line in your .htaccess or httpd.conf RewriteCond %{REQUEST_FILENAME} !-f [NC] to RewriteCond %{REQUEST_FILENAME} !-f but it probably is not to fix problem with pdf Edited September 8, 2012 by vekia (see edit history) 1 Link to comment Share on other sites More sharing options...
just444 Posted September 8, 2012 Author Share Posted September 8, 2012 from stackoverflow: If you see the following error in apache error log: [warn] RewriteCond: NoCase option for non-regex pattern ‘-f’ is not supported and will be ignored You should change the following line in your .htaccess or httpd.conf RewriteCond %{REQUEST_FILENAME} !-f [NC] to RewriteCond %{REQUEST_FILENAME} !-f but it probably is not to fix problem with pdf I only have this in .htaccess file: # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution # http://www.prestashop.com - http://www.prestashop.com/forums # URL rewriting module activation RewriteEngine on # URL rewriting rules RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2$3.jpg [QSA,L,E] RewriteRule ^([0-9]+)\-([0-9]+)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2.jpg [QSA,L,E] RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/c/$1$2.jpg [QSA,L,E] RewriteRule ^lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$3&isolang=$1$5 [QSA,L,E] RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2&isolang=$1$4 [QSA,L,E] RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$2&isolang=$1 [QSA,L,E] RewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2$4 [QSA,L,E] RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$1$3 [QSA,L,E] RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$1 [QSA,L,E] RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /cms.php?id_cms=$1 [QSA,L,E] RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ /supplier.php?id_supplier=$1$3 [QSA,L,E] RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ /manufacturer.php?id_manufacturer=$1$3 [QSA,L,E] RewriteRule ^lang-([a-z]{2})/(.*)$ /$2?isolang=$1 [QSA,L,E] # Catch 404 errors ErrorDocument 404 /404.php Also what "Call to undefined method Cart::getTaxesAverageUsed in /classes/Order.php on line 418" means? Link to comment Share on other sites More sharing options...
just444 Posted September 8, 2012 Author Share Posted September 8, 2012 Solved. I replaced the cart.php with the original one and it works now. Thanks Link to comment Share on other sites More sharing options...
Recommended Posts