Jump to content

Pdf Not Working In Order History (Nginx)


Recommended Posts

I have the following issue after updating from 1.6.0.14 to 1.6.1.1 and setuping onepagecheckout module:

 

1) When i make order with option "Cash on delivery" from onepagecheckout module - i recieve a 500 server error with the following message in log: 
PHP message: PHP Fatal error: Call to undefined method OrderDetail::getTaxListStatic() in home/www/traverse.com.ua/classes/pdf/HTMLTemplateInvoice.php on line 184" while reading response header from upstream

2) Another part of same problem is that i cant open any pdf in client's orders history page - it says "No input file specified." Whyle trying to open adress "site.com/index.php?controller=pdf-invoice&id_order=123"

 

3) And the greatest. I have no any options like "Enable product image on Invoice" on Settings - Invoice page. No any pdf options at all. Maybe i missed some useful module for pdf ?

 

updating to 1.6.1.2 make no changes.

 

Any proposes? TY.

 

01:29NOVEMBER

Edited by alpik (see edit history)
Link to comment
Share on other sites

2) Another part of same problem is that i cant open any pdf in client's orders history page - it says "No input file specified." Whyle trying to open adress "site.com/index.php?controller=pdf-invoice&id_order=123"

 

I search the PS code base and cannot find any reference to the text "No input file specified".  Are you sure this is the exact message you received?

 

3) And the greatest. I have no any options like "Enable product image on Invoice" on Settings - Invoice page. No any pdf options at all. Maybe i missed some useful module for pdf ?

 

It is not a module. The option is labelled "Enable product image" and is located on the Orders > Invoices page of the back office, in the third section named "Invoice options"

Link to comment
Share on other sites

Ok, thank you, i've found an option.

But my pdf not working from orders history client page , and clicking on "Details" for bill get no action at all..

While clicking on pdf icon with url /ru/index.php?controller=pdf-invoice&id_order=205

it takes me to main page of my site. 

Edited by alpik (see edit history)
Link to comment
Share on other sites

Ok, the problem was in my nginx config.

 

found soulution :

rewrite ^/[a-zA-Z][a-zA-Z]/index.php(.*)$ /index.php$1; 

 

 

You can add this rules in nginx rewrite rules just before the "try_files $uri $uri/ /index.php$is_args$args;" lines.

 

in this topic

https://www.prestashop.com/forums/topic/250537-404-on-prestashop-15-under-nginx-solved/

 

Now all working as it should. 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...