Title: Appearance &#8211; customise &#8211; ERROR
Last modified: September 28, 2020

---

# Appearance – customise – ERROR

 *  Resolved [Prashant](https://wordpress.org/support/users/prash18/)
 * (@prash18)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/appearance-customise-error-4/)
 * Hi,
 * when I click on Customise in Appearance it show [this error](https://drive.google.com/file/d/1R66ho9heNLRcnjkP12wuKHlm9BRh93yO/view).
   How do I solve this?
    Please help!
 * Regards!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fappearance-customise-error-4%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Contributor [Elana Davis](https://wordpress.org/support/users/elanasparkle/)
 * (@elanasparkle)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/appearance-customise-error-4/#post-13464728)
 * Hello [@prash18](https://wordpress.org/support/users/prash18/)
 * ​Thank you for reaching out to support! This looks like there might be something
   going on with the theme conflicting with something in the nav-menu.php. Looking
   at that function on estimates_admin.php, it’s looking for a post states not to
   be null. In my testing with multiple themes, that value is passed correctly. 
   Can you provide some more information about what theme you are using and the 
   version of PHP? Also, are you trying to do something with states in you’re functions.
   php file as well?
 * Thanks
    Elana D.
 *  Thread Starter [Prashant](https://wordpress.org/support/users/prash18/)
 * (@prash18)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/appearance-customise-error-4/#post-13571700)
 * Theme : FtagEmentor (WP Film Studio – WordPress Movie Maker/Production) by HasThemes
   
   PHP version: 7.3.6 Yes, I have included custom code provided by SI to add Indian
   States using Code Snippets.
 * /**
    * This function file is loaded after the parent theme’s function file. It’s
   a great way to override functions, e.g. add_image_size sizes. * * */ function
   custom_states() { return array( ‘India’ => array( ‘AP’ => ‘Andhra Pradesh’, ‘
   AR’ => ‘Arunachal Pradesh’, ‘AS’ => ‘Assam’, ‘BR’ => ‘Bihar’, ‘CG’ => ‘Chhattisgarh’,‘
   GA’ => ‘Goa’, ‘GJ’ => ‘Gujarat’, ‘HR’ => ‘Haryana’, ‘HP’ => ‘Himachal Pradesh’,‘
   JK’ => ‘Jammu and Kashmir’, ‘JH’ => ‘Jharkhand’, ‘KA’ => ‘Karnataka’, ‘KL’ =>‘
   Kerala’, ‘MP’ => ‘Madhya Pradesh’, ‘MH’ => ‘Maharashtra’, ‘MN’ => ‘Manipur’, ‘
   ML’ => ‘Meghalaya’, ‘MZ’ => ‘Mizoram’, ‘NL’ => ‘Nagaland’, ‘OR’ => ‘Orissa’, ‘
   PB’ => ‘Punjab’, ‘RJ’ => ‘Rajasthan’, ‘SK’ => ‘Sikkim’, ‘TN’ => ‘Tamil Nadu’,‘
   TR’ => ‘Tripura’, ‘UK’ => ‘Uttarakhand’, ‘UP’ => ‘Uttar Pradesh’, ‘WB’ => ‘West
   Bengal’, ‘AN’ => ‘Andaman and Nicobar Islands’, ‘CH’ => ‘Chandigarh’, ‘DH’ =>‘
   Dadra and Nagar Haveli’, ‘DD’ => ‘Daman and Diu’, ‘DL’ => ‘Delhi’, ‘LD’ => ‘Lakshadweep’,‘
   PY’ => ‘Pondicherry’,
 *  )
    ); } add_filter(‘sprout_state_options’, ‘custom_states’);
    -  This reply was modified 5 years, 6 months ago by [Prashant](https://wordpress.org/support/users/prash18/).
 *  Plugin Contributor [Elana Davis](https://wordpress.org/support/users/elanasparkle/)
 * (@elanasparkle)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/appearance-customise-error-4/#post-13574058)
 * Hello [@prash18](https://wordpress.org/support/users/prash18/)
 * You need to make sure you add the country as well. Please add the below to your
   functions.php and should work.
 *  function custom_country() {
    return array( ‘MX’ => ‘India’, ); } add_filter(‘
   sprout_country_options’, ‘custom_country’);
 *  Thread Starter [Prashant](https://wordpress.org/support/users/prash18/)
 * (@prash18)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/appearance-customise-error-4/#post-13574799)
 * I did what you said but its still showing the same error.
 * I really liked the plugin but now its not allowing me to use.
 *  Thread Starter [Prashant](https://wordpress.org/support/users/prash18/)
 * (@prash18)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/appearance-customise-error-4/#post-13574824)
 * And I received this email from WordPress…
 * Since WordPress 5.2 there is a built-in feature that detects when a plugin or
   theme causes a fatal error on your site, and notifies you with this automated
   email.
 * In this case, WordPress caught an error with one of your plugins, Sprout Invoices.
   ——————–
 * When seeking help with this issue, you may be asked for some of the following
   information:
    WordPress version 5.5.1 Current theme: FtagEmentor – Child (version
   1.0.0) Current plugin: Sprout Invoices (version 19.9.2) PHP version 7.4.9
 * Error Details
    ============= An error of type E_ERROR was caused in line 286 
   of the file /home/h7cc1beh25ov/public_html/wp-content/plugins/sprout-invoices/
   controllers/estimates/Estimates_Admin.php. Error message: Uncaught TypeError:
   Argument 2 passed to SI_Estimates_Admin::filter_post_states() must be an instance
   of WP_Post, null given, called in /home/h7cc1beh25ov/public_html/wp-includes/
   class-wp-hook.php on line 287 and defined in /home/h7cc1beh25ov/public_html/wp-
   content/plugins/sprout-invoices/controllers/estimates/Estimates_Admin.php:286
   Stack trace: #0 /home/h7cc1beh25ov/public_html/wp-includes/class-wp-hook.php(
   287): SI_Estimates_Admin::filter_post_states(Array, NULL) #1 /home/h7cc1beh25ov/
   public_html/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array)#
   2 /home/h7cc1beh25ov/public_html/wp-admin/includes/template.php(2224): apply_filters(‘
   display_post_st…’, Array, NULL) #3 /home/h7cc1beh25ov/public_html/wp-includes/
   nav-menu.php(822): get_post_states(NULL) #4 [internal function]: wp_setup_nav_menu_item(
   Object(WP_Post)) #5 /home/h7cc1beh25ov/public_html/wp-includes/nav-menu.php(748):
   array_map(‘wp_setup_nav_me…’, Array) #6 /home/h7cc1beh25ov/public_html/wp-includes/
   class-wp-customize-nav-menus.ph
 *  Plugin Contributor [Elana Davis](https://wordpress.org/support/users/elanasparkle/)
 * (@elanasparkle)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/appearance-customise-error-4/#post-13626413)
 * Hello [@prash18](https://wordpress.org/support/users/prash18/)
 * Sometimes strange behavior may be caused by a plugin or theme conflict. We suggest
   doing a conflict check to see if we can find out what is causing the issue.
 * We understand if you wouldn’t want to deactivate your plugins and switch themes
   on a production site, so it may be preferable that you set up a staging environment
   for your tests. Some popular web hosts offer quick setups for a staging site,
   so please contact your web host for assistance.
 * Can you please inform me of the results?
 *  Plugin Contributor [Elana Davis](https://wordpress.org/support/users/elanasparkle/)
 * (@elanasparkle)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/appearance-customise-error-4/#post-13659237)
 * Hello,
 * We haven’t seen a reply to our last update in over a week, so we will mark this
   thread as resolved. Of course, if you have further questions, do not hesitate
   to reopen a topic, and we will continue from there!
 * Thanks
    Elana D.
 *  Thread Starter [Prashant](https://wordpress.org/support/users/prash18/)
 * (@prash18)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/appearance-customise-error-4/#post-13974458)
 * hi,
    I tried changing the theme on staging site as well but still its not of 
   any use. I am still [getting error](https://drive.google.com/file/d/1Gwj4K8c1nsG0pT0h45GC9GEHkM3b4Ql6/view?usp=sharing)
   and its not letting me use Appearance > Theme > customize option now.
 * Plz suggest.
 * Regards!
    -  This reply was modified 5 years, 3 months ago by [Prashant](https://wordpress.org/support/users/prash18/).

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

The topic ‘Appearance – customise – ERROR’ is closed to new replies.

 * ![](https://ps.w.org/sprout-invoices/assets/icon-256x256.png?rev=1963899)
 * [Sprout Invoices - Client Invoicing & Estimates](https://wordpress.org/plugins/sprout-invoices/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sprout-invoices/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sprout-invoices/)
 * [Active Topics](https://wordpress.org/support/plugin/sprout-invoices/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sprout-invoices/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sprout-invoices/reviews/)

## Tags

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

 * 8 replies
 * 2 participants
 * Last reply from: [Prashant](https://wordpress.org/support/users/prash18/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/appearance-customise-error-4/#post-13974458)
 * Status: resolved