Title: Undefined variable causing internal server error
Last modified: July 9, 2018

---

# Undefined variable causing internal server error

 *  [FS](https://wordpress.org/support/users/faham_29/)
 * (@faham_29)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/undefined-variable-causing-internal-server-error/)
 * On the line 119 of file ‘includes/gateways/paypal-rest/class-wc-gateway-palmodule-
   paypal-rest.php’, catcher is calling undefined variable to catch the error message
 *     ```
       } catch (Exception $e) {
                   self::log($ex->getMessage());
                   wc_add_notice($e->getMessage(), 'error');
                   return false;
               }
       ```
   
    -  This topic was modified 7 years, 10 months ago by [FS](https://wordpress.org/support/users/faham_29/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fundefined-variable-causing-internal-server-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘Undefined variable causing internal server error’ is closed to new replies.

 * ![](https://ps.w.org/palmodule-paypal-payment-for-woocoomerce/assets/icon-256x256.
   png?rev=1718516)
 * [PayPal Payment for WooCommerce](https://wordpress.org/plugins/palmodule-paypal-payment-for-woocoomerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/palmodule-paypal-payment-for-woocoomerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/palmodule-paypal-payment-for-woocoomerce/)
 * [Active Topics](https://wordpress.org/support/plugin/palmodule-paypal-payment-for-woocoomerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/palmodule-paypal-payment-for-woocoomerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/palmodule-paypal-payment-for-woocoomerce/reviews/)

## Tags

 * [bugfix](https://wordpress.org/support/topic-tag/bugfix/)

 * 0 replies
 * 1 participant
 * Last reply from: [FS](https://wordpress.org/support/users/faham_29/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/undefined-variable-causing-internal-server-error/)
 * Status: not a support question