Support

Home Forums Event Espresso Premium Undefined index error – blank page – cannot complete registration.

Undefined index error – blank page – cannot complete registration.

Posted: February 23, 2014 at 3:08 pm


iaeon

February 23, 2014 at 3:08 pm

I have just upgraded WordPress and Event Espresso (info below)

‘Purchase Order Payments’ is not submitting. Clicking the button –

<code>
&lt; input class=&quot;finalize_button inline-link&quot; name=&quot;submit_purcahse_order&quot; value=&quot;Complete your Registration&quot; type=&quot;submit&quot; &gt;
</code>

just produces an alert ‘this page is asking you to confirm that you want to leave – data you have entered may not be saved’. Same with cheque payments ‘complete your registration’ link.

If one clicks ‘leave page’ (given there is little other option) the ‘Thank You’ page with the [ESPRESSO_PAYMENTS] shortcode is blank (see debug below). This seems to be the same error as reported at https://eventespresso.com/topic/ee3-no-confirmation-if-p-o-field-is-left-blank/

I have tried deactivating and reactivating EE

Your help with this is appreciated.

Information:
WordPress Version:
3.8.1
PHP Version:
5.3.3
MySQL Version:
5.0.95
Event Espresso Version:
3.1.36.4.P
WordPress Address (URL):
http://pac.org.uk
WordPress Content Directory:
/var/www/vhosts/pac.org.uk/httpdocs/wp-content
Site address (URL):
http://pac.org.uk
Event Espresso Plugin URL:
http://pac.org.uk/wp-content/plugins/event-espresso/
Event Espresso Plugin Path:
/var/www/vhosts/pac.org.uk/httpdocs/wp-content/plugins/event-espresso/
Event Espresso Upload URL:
http://pac.org.uk/wp-content/uploads/espresso/
Event Espresso Upload Path:
/var/www/vhosts/pac.org.uk/httpdocs/wp-content/uploads/espresso/
Event Espresso Template Path:
/var/www/vhosts/pac.org.uk/httpdocs/wp-content/uploads/espresso/templates/
Event Espresso Gateway Path:
/var/www/vhosts/pac.org.uk/httpdocs/wp-content/uploads/espresso/gateways/

‘Thank You’ page debug messages –

Notice: Undefined index: payment_status in /var/www/vhosts/pac.org.uk/httpdocs/wp-content/plugins/event-espresso/gateways/process_payments.php on line 112

Notice: Undefined index: attendee_id in /var/www/vhosts/pac.org.uk/httpdocs/wp-content/plugins/event-espresso/gateways/process_payments.php on line 117

Notice: Undefined index: payment_status in /var/www/vhosts/pac.org.uk/httpdocs/wp-content/plugins/event-espresso/gateways/process_payments.php on line 127

Notice: Undefined index: txn_type in /var/www/vhosts/pac.org.uk/httpdocs/wp-content/plugins/event-espresso/gateways/process_payments.php on line 128

Notice: Undefined index: txn_id in /var/www/vhosts/pac.org.uk/httpdocs/wp-content/plugins/event-espresso/gateways/process_payments.php on line 129

Notice: Undefined index: attendee_session in /var/www/vhosts/pac.org.uk/httpdocs/wp-content/plugins/event-espresso/gateways/process_payments.php on line 134

Notice: Undefined index: payment_status in /var/www/vhosts/pac.org.uk/httpdocs/wp-content/plugins/event-espresso/gateways/process_payments.php on line 250


Dean

February 24, 2014 at 3:27 am

Hi,

OK there are a few things here:

1) Undefined indexes. These are not an issue, but they should also not be being shown. Please makes sure you have wp_debug set to false in your wp_config.php file.

2) Pop up. Well that shouldn’t be happening if they have clicked the finalise button so.

Now I need to ask, have you modified the gateways in any way? it looks liek you might of as there is no finalise link for the invoice.

As such I would delete or rename the gateway folders in wp-content/uploads/espresso/gateways, so that the plugin uses the default gateways, and then see if this issue persists.

3) The blank thank you page. We have a ticket for this and have added in some validation to try to prevent this, this will appear in an upcoming update.


iaeon

February 24, 2014 at 5:32 am

Thanks

1) I only set to ‘true’ for a moment to see what was going on

2) You were right. The issue was on /uploads/espresso/gateways/purchase_order/po_payment_vars.php we had customisation to change text (mainly US ‘check’ for UK ‘cheque’) and the surrounding code has changed preventing the submission. I have re-applied the customisation to the latest code and all seems fine.

3) Noted.


Josh

  • Support Staff

February 24, 2014 at 12:48 pm

Hi there,

This is a link to a gist that has an update for Purchase order gateway’s po_payment_vars.php. It adds some simple jQuery validation to the po number input field. You can upload it to /plugins/event-espresso/gateways/purchase_order and replace the file that’s there now.

https://gist.github.com/joshfeck/9117898

The support post ‘Undefined index error – blank page – cannot complete registration.’ 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