Jump to content

Error 500 when trying to display invoice


Recommended Posts

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

  • 4 months later...

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

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 by vekia (see edit history)
  • Like 1
Link to comment
Share on other sites

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

×
×
  • Create New...