Support

Home Forums Event Espresso Premium Errors on Invoice view (versions 4.6.10p)

Errors on Invoice view (versions 4.6.10p)

Posted: February 19, 2015 at 9:09 am

Viewing 17 reply threads


kcray

February 19, 2015 at 9:09 am

When I try to view invoice pdf, I get the following errors at the top of the pdf page: (version 4.6.10p)

Warning: Missing argument 1 for EE_Transaction_Shortcodes::_get_payment_method(), called in /home3/kellycoj/public_html/wpk/wp-content/plugins/event-espresso-core-reg/core/libraries/shortcodes/EE_Transaction_Shortcodes.lib.php on line 281 and defined in /home3/kellycoj/public_html/wpk/wp-content/plugins/event-espresso-core-reg/core/libraries/shortcodes/EE_Transaction_Shortcodes.lib.php on line 328

Warning: Missing argument 1 for EE_Transaction_Shortcodes::_get_payment_method(), called in /home3/kellycoj/public_html/wpk/wp-content/plugins/event-espresso-core-reg/core/libraries/shortcodes/EE_Transaction_Shortcodes.lib.php on line 317 and defined in /home3/kellycoj/public_html/wpk/wp-content/plugins/event-espresso-core-reg/core/libraries/shortcodes/EE_Transaction_Shortcodes.lib.php on line 328

Warning: Missing argument 1 for EE_Transaction_Shortcodes::_get_payment_method(), called in /home3/kellycoj/public_html/wpk/wp-content/plugins/event-espresso-core-reg/core/libraries/shortcodes/EE_Transaction_Shortcodes.lib.php on line 405 and defined in /home3/kellycoj/public_html/wpk/wp-content/plugins/event-espresso-core-reg/core/libraries/shortcodes/EE_Transaction_Shortcodes.lib.php on line 328

Warning: Missing argument 1 for EE_Transaction_Shortcodes::_get_payment_method(), called in /home3/kellycoj/public_html/wpk/wp-content/plugins/event-espresso-core-reg/core/libraries/shortcodes/EE_Transaction_Shortcodes.lib.php on line 352 and defined in /home3/kellycoj/public_html/wpk/wp-content/plugins/event-espresso-core-reg/core/libraries/shortcodes/EE_Transaction_Shortcodes.lib.php on line 328

Warning: Missing argument 1 for EE_Transaction_Shortcodes::_get_payment_method(), called in /home3/kellycoj/public_html/wpk/wp-content/plugins/event-espresso-core-reg/core/libraries/shortcodes/EE_Transaction_Shortcodes.lib.php on line 374 and defined in /home3/kellycoj/public_html/wpk/wp-content/plugins/event-espresso-core-reg/core/libraries/shortcodes/EE_Transaction_Shortcodes.lib.php on line 328


kcray

February 19, 2015 at 9:12 am

Downloaded the pdf file, unable to open, error from Adobe reader X, “File is damaged”


kcray

February 19, 2015 at 9:13 am

Switch to Invoice button, displays the same error codes.


kcray

February 19, 2015 at 9:35 am

Not sure if this is an error, so may need to be broken out as a separate issue.
I notice if the user selects payment from paypal, goes through to paypal and decides he wants to choose the invoice rout, if he cancels payment, the next screen displayed is Registration Cancelled.

This should really be paypal payment transaction method cancelled, would you like to download an invoice. And provide option to download invoice.


Visual Facilitators

February 19, 2015 at 12:16 pm

Same here! Worked great before.
On Payment Receipt and Invoice:
Warning: Missing argument 1 for EE_Transaction_Shortcodes::_get_payment_method(), called in /***/***/visualisierung.training/wp-content/plugins/event-espresso-core-reg/core/libraries/shortcodes/EE_Transaction_Shortcodes.lib.php on line 281 and defined in /kunden/217701_20354/visualisierung.training/wp-content/plugins/event-espresso-core-reg/core/libraries/shortcodes/EE_Transaction_Shortcodes.lib.php on line 328

When downloading Invoice:
Warning: Missing argument 1 for EE_Transaction_Shortcodes::_get_payment_method(), called in /***/***/visualisierung.training/wp-content/plugins/event-espresso-core-reg/core/libraries/shortcodes/EE_Transaction_Shortcodes.lib.php on line 281 and defined in /kunden/217701_20354/visualisierung.training/wp-content/plugins/event-espresso-core-reg/core/libraries/shortcodes/EE_Transaction_Shortcodes.lib.php on line 328
Unable to stream pdf: headers already sent


Visual Facilitators

February 19, 2015 at 12:17 pm

Please fix quick!
We are launching tomorrow.


Tony

  • Support Staff

February 19, 2015 at 12:28 pm

Hi kcray,

The Warnings have been fixed in the next version of Event Espresso, currently if you disable WP_Debug on the site the PDF’s should generate correctly.

It is currently expected that cancelling the payment within Paypal will cancel the registration, I’ll check in with the developers as to why this is the case.


Visual Facilitators

February 19, 2015 at 12:35 pm

Have set WP_Debug to “define(‘WP_DEBUG’, false);”
Did not change the error output and PDF is not generated


Tony

  • Support Staff

February 19, 2015 at 12:41 pm

If the error message is still displayed then it is likely your sever is set to display errors, so disabling WP_Debug doesn’t disable that setting.

You can add soemthing like this:

define( 'WP_DEBUG', true ); // Or false
if ( WP_DEBUG ) {
    define( 'WP_DEBUG_LOG', true );
    define( 'WP_DEBUG_DISPLAY', false );
    @ini_set( 'display_errors', 0 );
}

Which (when set to true) disables errors from being displayed but logs them within a debug.log file in uploads.


Visual Facilitators

February 19, 2015 at 12:47 pm

That helped!


kcray

February 19, 2015 at 1:06 pm

Hi Tony,
When I checked my debug setting it was set to off by default.
Added the @ini_set( ‘display_errors’, 0 ); which cleaned up the errors and was then able to download pdf successfully, and opened ok, and also switch to invoice also worked. Thanks for your prompt support.

On the Paypal cancelled issue:

I believe from a business flow, we need to still provide the option to receive an invoice on paypal cancellation, rather than cancel the whole registration.

Note that the registration is still displayed in the registrations db, and is locked, and status is Pending, rather than cancelled.

So I believe the intent is that the customer should still have an option to download an invoice.


Tony

  • Support Staff

February 19, 2015 at 2:53 pm

Thank you for the feedback.

I do agree that this could be a good enhancement to the current behaviour so I have created a feature request ticket for this to be considered for a future version of Event Espresso.


kcray

February 20, 2015 at 8:00 am

How do I remove the locked registrations as a result of the cancelled paypal transactions? There is a lock shown against the record, have not been able to delete it.


kcray

February 20, 2015 at 8:18 am

My Apologies, just saw the alert messages. Found payment details, ticked box for email to be sent, set status to cancelled, then clicked to apply, and looks like its hanging. Shows processing at bottom right corner of jquery window.


Tony

  • Support Staff

February 20, 2015 at 12:42 pm

Hmm, is this with WP_Debug disabled?

Can you got if the Registration Cancelled message type is active please.

Go to Event Espresso -> Messages -> Settings.

Check if the registration cancelled message is in the Inactive Message types box on the right.


kcray

February 20, 2015 at 2:13 pm

No Messages are in the inactive box.


kcray

February 20, 2015 at 2:14 pm

I did enter the code you posted for Debug, which now places debug on but does not display error messages.


Tony

  • Support Staff

February 20, 2015 at 3:01 pm

Normally when the ajax spinner just keeps spinning there has been a notice/warning/error thrown during the ajax call (which causes it to fail and continue spinning indefinitely)

The snippet I posted above enabled WP_Debug and should place any errors within a debug.log in /wp-content/

The update with the fix I mentioned above has now been release, if you update to the latest version of Event Espresso (currently 4.6.11.p) does the same happen?

Viewing 17 reply threads

The support post ‘Errors on Invoice view (versions 4.6.10p)’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso