Hi I have paypal express with latest patches installed (21 march) It works fine for customers who are not logged in.

If a customer is logged in and chooses paypal from the payment options they are passed to paypal OK but when they confirm the order in paypal on the

index.php?main_page=checkout_process page a 500 server error is shown.

The log files show this error:

PHP Notice: Undefined index: txn_type in /var/www/html/ipn_main_handler.php on line 59

The orders do however complete - receipt email sent to customer and the order shows up in admin.

How can I get index.php?main_page=checkout_process to work?