Title: PHP error: Call to a member function get_options()
Last modified: January 30, 2019

---

# PHP error: Call to a member function get_options()

 *  Resolved [fidelleon](https://wordpress.org/support/users/fidelleon/)
 * (@fidelleon)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/php-error-call-to-a-member-function-get_options/)
 * When I use non-logged users, the Country and State fields don’t get filled.
 * Chrome dev console says:
    Failed to load resource: the server responded with 
   a status of 500 (Internal Server Error)
 * which happens in /wp-admin/admin-ajax.php:1
 * The server logs show:
 * PHP message: PHP Fatal error: Call to a member function get_options() on null
   in /usr/share/nginx/www/basketball/wp-content/plugins/easy-registration-forms/
   includes/class-do-actions.php
 * Wordpress 5.0.3
    PHP 5.6.39 nginx 1.6.2 ERF 1.6.2

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

 *  Plugin Author [easyregistrationforms](https://wordpress.org/support/users/easyregistrationforms/)
 * (@easyregistrationforms)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/php-error-call-to-a-member-function-get_options/#post-11150610)
 * Hi there,
 * Thank you for reporting the issue. However there is no such encountered during
   our testing. This might be related to your specific environment. We are investigating
   it further. I would appreciate if you can contact us from our website so that
   we can discuss this further. Please write us at: [https://www.easyregistrationforms.com/support/](https://www.easyregistrationforms.com/support/)
 *  Thread Starter [fidelleon](https://wordpress.org/support/users/fidelleon/)
 * (@fidelleon)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/php-error-call-to-a-member-function-get_options/#post-11151899)
 * Hi,
 * I have upgraded from Debian 8 to 9, upgraded PHP5 to PHP7.0, and now the error
   is gone.
 * Sorry for the trouble.
    -  This reply was modified 7 years, 3 months ago by [fidelleon](https://wordpress.org/support/users/fidelleon/).

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

The topic ‘PHP error: Call to a member function get_options()’ is closed to new 
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/easy-registration-forms_82b2df.svg)
 * [Easy Registration Forms](https://wordpress.org/plugins/easy-registration-forms/)
 * [Support Threads](https://wordpress.org/support/plugin/easy-registration-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-registration-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-registration-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-registration-forms/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [fidelleon](https://wordpress.org/support/users/fidelleon/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/php-error-call-to-a-member-function-get_options/#post-11151899)
 * Status: resolved