Title: PHP Fatal error: Uncaught Error
Last modified: November 30, 2017

---

# PHP Fatal error: Uncaught Error

 *  Resolved [ncchef](https://wordpress.org/support/users/ncchef/)
 * (@ncchef)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-error-4/)
 * We are getting the following error in our logs when we try to login via the Event
   Espresso App on a mobile phone if Woocommerce is active. If we deactivate WooCommerce
   the app connects an no error is generated in the log. I have no clue how to fix
   this. Here is the complete error:
 * 30-Nov-2017 16:03:04 UTC] PHP Fatal error: Uncaught Error: Call to a member function
   get_page_permastruct() on null in /home/deansfarmmarket/public_html/wp-includes/
   link-template.php:357
    Stack trace: #0 /home/deansfarmmarket/public_html/wp-includes/
   link-template.php(320): _get_page_link(Object(WP_Post), false, false) #1 /home/
   deansfarmmarket/public_html/wp-includes/link-template.php(144): get_page_link(
   Object(WP_Post), false, false) #2 /home/deansfarmmarket/public_html/wp-content/
   plugins/woocommerce/includes/wc-page-functions.php(72): get_permalink(Object(
   WP_Post)) #3 /home/deansfarmmarket/public_html/wp-content/plugins/woocommerce/
   includes/wc-account-functions.php(30): wc_get_page_permalink(‘myaccount’) #4 /
   home/deansfarmmarket/public_html/wp-includes/class-wp-hook.php(288): wc_lostpassword_url(‘
   https://deansfa…’) #5 /home/deansfarmmarket/public_html/wp-includes/plugin.php(
   203): WP_Hook->apply_filters(‘https://deansfa…’, Array) #6 /home/deansfarmmarket/
   public_html/wp-includes/general-template.php(508): apply_filters(‘lostpassword_ur…’,‘
   https:/ in /home/deansfarmmarket/public_html/wp-includes/link-template.php on
   line 357
 * Any help is appreciated.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-fatal-error-uncaught-error-4%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [ncchef](https://wordpress.org/support/users/ncchef/)
 * (@ncchef)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-error-4/#post-9737932)
 * Also, the app connects using JSON form a password generated using the Application
   Passwords plugin. The user name would still be the one associated with the persons
   WP user name. Hope this helps some in figuring out a solution.
 *  [Erina (a11n)](https://wordpress.org/support/users/eri32s98/)
 * (@eri32s98)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-error-4/#post-9802319)
 * Hi there,
 * This particular forum is only for questions related to the free WooCommerce plugin
   and itss included features and functionalities.
    For feedback on any code that
   you’ve written, you’ll need to get in touch with the web developer community 
   at: * [https://wordpress.stackexchange.com/](https://wordpress.stackexchange.com/)
   or [https://stackoverflow.com/](https://stackoverflow.com/) * [https://www.facebook.com/groups/advanced.woocommerce](https://www.facebook.com/groups/advanced.woocommerce)
 * You could also try asking on the Event Espresso forum at [https://eventespresso.com/support/forums/](https://eventespresso.com/support/forums/)
 *  [dougaitken](https://wordpress.org/support/users/dougaitken/)
 * (@dougaitken)
 * Automattic Happiness Engineer
 * [8 years, 5 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-error-4/#post-9835467)
 * Hi [@ncchef](https://wordpress.org/support/users/ncchef/)
 * As this is a support question for the app developers and not WooCommerce, I’m
   going to mark this as resolved.
 * Thanks,

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘PHP Fatal error: Uncaught Error’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [uncaught error](https://wordpress.org/support/topic-tag/uncaught-error/)

 * 3 replies
 * 3 participants
 * Last reply from: [dougaitken](https://wordpress.org/support/users/dougaitken/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-error-4/#post-9835467)
 * Status: resolved