I am having the following issue with the module:

When I click the [Print] button on an order, it takes me to a blank page, no html on it at all.

When I try to email an invoice, it throws the following errors:

Notice: Undefined index: commerce_invoice_receipt_mail_admin_form in drupal_retrieve_form() (line 763 of D:\InetPub\114\testsite\store\includes\form.inc).

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'commerce_invoice_receipt_mail_admin_form' not found or invalid function name in drupal_retrieve_form() (line 798 of D:\InetPub\114\testsite\store\includes\form.inc).

Any ideas? Not seeing my specific problem presenting in any of these other open issues...

I am running Commerce Kickstart 7.x-1.12.

Comments

jasonabc’s picture

Priority: Normal » Major

The Print button is working fine for me, but I am getting the same exact issue when clicking the "Email" button. I am running latest versions of D7 (7.18) and Drupal Commerce (1.4)

Daglees’s picture

Assigned: Unassigned » Daglees
Status: Active » Needs work

I'll test this on a clean installation later and fix it.

Daglees’s picture

Version: 7.x-1.0 » 7.x-1.x-dev
Status: Needs work » Needs review

I applied a fix on dev that addresses the issue with older installations of Invoice Receipt.

agf1583’s picture

The fix did not solve the problem I'm experiencing.

When I click the email button, I now get to the "email recipient" screen, which is further than I got before...but when I click send I am sent to a blank page with no html, and the email is not sent. In case this helps, the url I'm taken to is:

index.php?q=admin/commerce/orders/8/view/mail

For the [Print] button, I am still taken to a blank screen. The url is:

?q=admin/commerce/orders/8/view/print

Daglees’s picture

@agf1583 can you check your error log at admin/reports/dblog and filter by PHP? Blank page could indicate an internal error and I'd need to see the log.

agf1583’s picture

When the buttons fail, they are throwing no errors, php or otherwise.

I noticed that the module works on my local drupal installation, but not on my hosted store. Could it be an issue with my hosting solution? Any settings in php.ini that I should look at?

lima2x’s picture

I am on D7.16, printing is fine but emailing from Order page do :

Notice : Undefined index: commerce_invoice_receipt_mail_admin_form dans drupal_retrieve_form() (ligne 765 dans /var/www/clients/client3/web5/web/includes/form.inc).
Warning : call_user_func_array() expects parameter 1 to be a valid callback, function 'commerce_invoice_receipt_mail_admin_form' not found or invalid function name dans drupal_retrieve_form() (ligne 800 dans /var/www/clients/client3/web5/web/includes/form.inc).

The email Rule is working fine to.

pyrello’s picture

This issue appears to be fixed in dev. If you are not using dev, you can fix it in commerce_invoice_receipt.admin.inc by replacing all instances of "commerce_invoice_receipt_mail_form" with "commerce_invoice_receipt_mail_admin_form"

lima2x’s picture

Works fine with dev !
Thank you

Daglees’s picture

Status: Needs review » Fixed

The fix in dev will be added to the next stable release.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit 335624c on 7.x-1.x, 7.x-2.x by Daglees:
    [Issue #1882750]: Added commerce_invoice_receipt.rules.inc in order to...