Title: Cannot save theme customizations
Last modified: March 23, 2018

---

# Cannot save theme customizations

 *  [auser0912387](https://wordpress.org/support/users/auser0912387/)
 * (@auser0912387)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/cannot-save-theme-customizations/)
 * WordPress 4.9.4 running Modularity Lite theme. All plugins disabled.
 * I recently changed domains. I deleted all files from my server and re-added them
   from my backup, but did install a fresh installation of wordpress. I have the
   site up and running on the new domain and now things like my theme customizations
   need to be set again… My header image is now gone. Appearance-> Customize-> Header
   Image…. The old one is still saved in my theme, I select it and click publish,
   looks like it saved but it never shows up on the live site. I also cannot change
   the site title under “site identity”. It lets me change and publish but the changes
   never show up on the live site, and the chnages are gone when I go back to the
   Customize section of the Appearance tab.
 * • Every time I am checking the site after a change is made, I am using a new 
   incognito window in chrome so cookies and cache are not an issue
    • I have disabled
   all plugins • I have read other threads about ModSecurity fixes… they did NOT
   work for me. I completely disabled ModSecurity on my site to test and it does
   not make a difference • I am not getting an error code that says to wait and 
   try again. Everything looks like it was published, but the changes are never 
   reflected on the live site.
 * I have no idea where to go next. Ideas??

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

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [8 years, 1 month ago](https://wordpress.org/support/topic/cannot-save-theme-customizations/#post-10108517)
 * When you view your site, do you see any errors in the browser’s inspector console?
 *  Thread Starter [auser0912387](https://wordpress.org/support/users/auser0912387/)
 * (@auser0912387)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/cannot-save-theme-customizations/#post-10108708)
 * My apologies, I forgot to include that info in my original post. Here’s the log
   from the console section of chrome in developer mode. The log starts with me 
   clicking on the Customize tab under Appearance in the wordpress editor, and ends
   after the publish button has been pressed after adding the header image.
 * The log:
 *     ```
       This page was loaded non-securely in an incognito mode browser. A warning has been added to the URL bar. For more information, see https://goo.gl/y8SRRv.
       load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,underscore,wp-a11y,wp-util,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-&load[]=ui-draggable,jquery-ui-droppable,backbone,wp-backbone,wp-ajax-response,jquery-color,wp-lists,postbox,nav-menu,shortcode,utils,me&load[]=dia-models,moxiejs,plupload,wp-plupload&ver=4.9.4:9 JQMIGRATE: Migrate is installed, version 1.4.1
       cropped-seekinglost-Header-1320x2991.jpg:1 GET http://seekinglost.com/wp-content/uploads/2014/03/cropped-seekinglost-Header-1320x2991.jpg 404 (Not Found)
       Image (async)
   
       (anonymous) @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,underscore,wp-a11y,wp-util,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-&load[]=ui-draggable,jquery-ui-droppable,backbone,wp-backbone,wp-ajax-response,jquery-color,wp-lists,postbox,nav-menu,shortcode,utils,me&load[]=dia-models,moxiejs,plupload,wp-plupload&ver=4.9.4:3
   
       Ha @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,underscore,wp-a11y,wp-util,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-&load[]=ui-draggable,jquery-ui-droppable,backbone,wp-backbone,wp-ajax-response,jquery-color,wp-lists,postbox,nav-menu,shortcode,utils,me&load[]=dia-models,moxiejs,plupload,wp-plupload&ver=4.9.4:3
   
       append @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,underscore,wp-a11y,wp-util,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-&load[]=ui-draggable,jquery-ui-droppable,backbone,wp-backbone,wp-ajax-response,jquery-color,wp-lists,postbox,nav-menu,shortcode,utils,me&load[]=dia-models,moxiejs,plupload,wp-plupload&ver=4.9.4:3
   
       addOne @ load-scripts.php?c=0&load[]=heartbeat,customize-base,customize-controls,customize-widgets,accordion,customize-nav-menus,jquery-ui-slider,jquery-touch-punch,&load[]=iris,wp-color-picker,mce-view,imgareaselect,image-edit,customize-models,customize-views,updates,quicktags,wplink,jquery-ui-posit&load[]=ion,jquery-ui-menu,jquery-ui-autocomplete,thickbox,media-upload&ver=4.9.4:477
   
       (anonymous) @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,underscore,wp-a11y,wp-util,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-&load[]=ui-draggable,jquery-ui-droppable,backbone,wp-backbone,wp-ajax-response,jquery-color,wp-lists,postbox,nav-menu,shortcode,utils,me&load[]=dia-models,moxiejs,plupload,wp-plupload&ver=4.9.4:14
   
       m.each.m.forEach @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,underscore,wp-a11y,wp-util,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-&load[]=ui-draggable,jquery-ui-droppable,backbone,wp-backbone,wp-ajax-response,jquery-color,wp-lists,postbox,nav-menu,shortcode,utils,me&load[]=dia-models,moxiejs,plupload,wp-plupload&ver=4.9.4:14
   
       (anonymous) @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,underscore,wp-a11y,wp-util,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-&load[]=ui-draggable,jquery-ui-droppable,backbone,wp-backbone,wp-ajax-response,jquery-color,wp-lists,postbox,nav-menu,shortcode,utils,me&load[]=dia-models,moxiejs,plupload,wp-plupload&ver=4.9.4:84
   
       render @ load-scripts.php?c=0&load[]=heartbeat,customize-base,customize-controls,customize-widgets,accordion,customize-nav-menus,jquery-ui-slider,jquery-touch-punch,&load[]=iris,wp-color-picker,mce-view,imgareaselect,image-edit,customize-models,customize-views,updates,quicktags,wplink,jquery-ui-posit&load[]=ion,jquery-ui-menu,jquery-ui-autocomplete,thickbox,media-upload&ver=4.9.4:469
   
       initialize @ load-scripts.php?c=0&load[]=heartbeat,customize-base,customize-controls,customize-widgets,accordion,customize-nav-menus,jquery-ui-slider,jquery-touch-punch,&load[]=iris,wp-color-picker,mce-view,imgareaselect,image-edit,customize-models,customize-views,updates,quicktags,wplink,jquery-ui-posit&load[]=ion,jquery-ui-menu,jquery-ui-autocomplete,thickbox,media-upload&ver=4.9.4:464
   
       e.View @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,underscore,wp-a11y,wp-util,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-&load[]=ui-draggable,jquery-ui-droppable,backbone,wp-backbone,wp-ajax-response,jquery-color,wp-lists,postbox,nav-menu,shortcode,utils,me&load[]=dia-models,moxiejs,plupload,wp-plupload&ver=4.9.4:84
   
       constructor @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,underscore,wp-a11y,wp-util,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-&load[]=ui-draggable,jquery-ui-droppable,backbone,wp-backbone,wp-ajax-response,jquery-color,wp-lists,postbox,nav-menu,shortcode,utils,me&load[]=dia-models,moxiejs,plupload,wp-plupload&ver=4.9.4:86
   
       n @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,underscore,wp-a11y,wp-util,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-&load[]=ui-draggable,jquery-ui-droppable,backbone,wp-backbone,wp-ajax-response,jquery-color,wp-lists,postbox,nav-menu,shortcode,utils,me&load[]=dia-models,moxiejs,plupload,wp-plupload&ver=4.9.4:84
   
       ready @ load-scripts.php?c=0&load[]=heartbeat,customize-base,customize-controls,customize-widgets,accordion,customize-nav-menus,jquery-ui-slider,jquery-touch-punch,&load[]=iris,wp-color-picker,mce-view,imgareaselect,image-edit,customize-models,customize-views,updates,quicktags,wplink,jquery-ui-posit&load[]=ion,jquery-ui-menu,jquery-ui-autocomplete,thickbox,media-upload&ver=4.9.4:4
   
       (anonymous) @ load-scripts.php?c=0&load[]=heartbeat,customize-base,customize-controls,customize-widgets,accordion,customize-nav-menus,jquery-ui-slider,jquery-touch-punch,&load[]=iris,wp-color-picker,mce-view,imgareaselect,image-edit,customize-models,customize-views,updates,quicktags,wplink,jquery-ui-posit&load[]=ion,jquery-ui-menu,jquery-ui-autocomplete,thickbox,media-upload&ver=4.9.4:4
   
       i @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,underscore,wp-a11y,wp-util,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-&load[]=ui-draggable,jquery-ui-droppable,backbone,wp-backbone,wp-ajax-response,jquery-color,wp-lists,postbox,nav-menu,shortcode,utils,me&load[]=dia-models,moxiejs,plupload,wp-plupload&ver=4.9.4:2
   
       add @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,underscore,wp-a11y,wp-util,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-&load[]=ui-draggable,jquery-ui-droppable,backbone,wp-backbone,wp-ajax-response,jquery-color,wp-lists,postbox,nav-menu,shortcode,utils,me&load[]=dia-models,moxiejs,plupload,wp-plupload&ver=4.9.4:2
   
       initialize @ load-scripts.php?c=0&load[]=heartbeat,customize-base,customize-controls,customize-widgets,accordion,customize-nav-menus,jquery-ui-slider,jquery-touch-punch,&load[]=iris,wp-color-picker,mce-view,imgareaselect,image-edit,customize-models,customize-views,updates,quicktags,wplink,jquery-ui-posit&load[]=ion,jquery-ui-menu,jquery-ui-autocomplete,thickbox,media-upload&ver=4.9.4:4
   
       e.Class @ load-scripts.php?c=0&load[]=heartbeat,customize-base,customize-controls,customize-widgets,accordion,customize-nav-menus,jquery-ui-slider,jquery-touch-punch,&load[]=iris,wp-color-picker,mce-view,imgareaselect,image-edit,customize-models,customize-views,updates,quicktags,wplink,jquery-ui-posit&load[]=ion,jquery-ui-menu,jquery-ui-autocomplete,thickbox,media-upload&ver=4.9.4:2
   
       f @ load-scripts.php?c=0&load[]=heartbeat,customize-base,customize-controls,customize-widgets,accordion,customize-nav-menus,jquery-ui-slider,jquery-touch-punch,&load[]=iris,wp-color-picker,mce-view,imgareaselect,image-edit,customize-models,customize-views,updates,quicktags,wplink,jquery-ui-posit&load[]=ion,jquery-ui-menu,jquery-ui-autocomplete,thickbox,media-upload&ver=4.9.4:2
   
       f @ load-scripts.php?c=0&load[]=heartbeat,customize-base,customize-controls,customize-widgets,accordion,customize-nav-menus,jquery-ui-slider,jquery-touch-punch,&load[]=iris,wp-color-picker,mce-view,imgareaselect,image-edit,customize-models,customize-views,updates,quicktags,wplink,jquery-ui-posit&load[]=ion,jquery-ui-menu,jquery-ui-autocomplete,thickbox,media-upload&ver=4.9.4:2
   
       (anonymous) @ load-scripts.php?c=0&load[]=heartbeat,customize-base,customize-controls,customize-widgets,accordion,customize-nav-menus,jquery-ui-slider,jquery-touch-punch,&load[]=iris,wp-color-picker,mce-view,imgareaselect,image-edit,customize-models,customize-views,updates,quicktags,wplink,jquery-ui-posit&load[]=ion,jquery-ui-menu,jquery-ui-autocomplete,thickbox,media-upload&ver=4.9.4:5
   
       each @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,underscore,wp-a11y,wp-util,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-&load[]=ui-draggable,jquery-ui-droppable,backbone,wp-backbone,wp-ajax-response,jquery-color,wp-lists,postbox,nav-menu,shortcode,utils,me&load[]=dia-models,moxiejs,plupload,wp-plupload&ver=4.9.4:2
   
       (anonymous) @ load-scripts.php?c=0&load[]=heartbeat,customize-base,customize-controls,customize-widgets,accordion,customize-nav-menus,jquery-ui-slider,jquery-touch-punch,&load[]=iris,wp-color-picker,mce-view,imgareaselect,image-edit,customize-models,customize-views,updates,quicktags,wplink,jquery-ui-posit&load[]=ion,jquery-ui-menu,jquery-ui-autocomplete,thickbox,media-upload&ver=4.9.4:5
   
       i @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,underscore,wp-a11y,wp-util,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-&load[]=ui-draggable,jquery-ui-droppable,backbone,wp-backbone,wp-ajax-response,jquery-color,wp-lists,postbox,nav-menu,shortcode,utils,me&load[]=dia-models,moxiejs,plupload,wp-plupload&ver=4.9.4:2
   
       fireWith @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,underscore,wp-a11y,wp-util,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-&load[]=ui-draggable,jquery-ui-droppable,backbone,wp-backbone,wp-ajax-response,jquery-color,wp-lists,postbox,nav-menu,shortcode,utils,me&load[]=dia-models,moxiejs,plupload,wp-plupload&ver=4.9.4:2
   
       ready @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,underscore,wp-a11y,wp-util,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-&load[]=ui-draggable,jquery-ui-droppable,backbone,wp-backbone,wp-ajax-response,jquery-color,wp-lists,postbox,nav-menu,shortcode,utils,me&load[]=dia-models,moxiejs,plupload,wp-plupload&ver=4.9.4:2
   
       K @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,underscore,wp-a11y,wp-util,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-&load[]=ui-draggable,jquery-ui-droppable,backbone,wp-backbone,wp-ajax-response,jquery-color,wp-lists,postbox,nav-menu,shortcode,utils,me&load[]=dia-models,moxiejs,plupload,wp-plupload&ver=4.9.4:2
   
       VM1222 jquery-migrate.min.js:2 JQMIGRATE: Migrate is installed, version 1.4.1
   
       ?customize_changeset_uuid=9001d6f7-b436-4545-b020-651ca74bc4df&customize_theme=modularity-lite&customize_messenger_channel=preview-0:16 GET http://seekinglost.com/wp-content/themes/modularity-lite/css/print.css net::ERR_ABORTED
   
       VM1224 jquery.cycle.js:17 [cycle] terminating; zero elements found by selector
   
       jquery-migrate.min.js?ver=1.4.1:2 JQMIGRATE: Migrate is installed, version 1.4.1
   
       ?customize_changeset_uuid=9001d6f7-b436-4545-b020-651ca74bc4df&customize_theme=modularity-lite&customize_messenger_channel=preview-1&customize_autosaved=on:16 GET http://seekinglost.com/wp-content/themes/modularity-lite/css/print.css net::ERR_ABORTED
   
       jquery.cycle.js?ver=4.9.4:17 [cycle] terminating; zero elements found by selector
       ```
   
    -  This reply was modified 8 years, 1 month ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
 *  Thread Starter [auser0912387](https://wordpress.org/support/users/auser0912387/)
 * (@auser0912387)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/cannot-save-theme-customizations/#post-10110509)
 * I enabled WP_DEBUG in wp-config and got the following error output:
 *     ```
       Notice: add_custom_background is deprecated since version 3.4.0! Use add_theme_support( 'custom-background', $args ) instead. in /home/research/public_html/wp-includes/functions.php on line 3839
   
       Notice: add_custom_image_header is deprecated since version 3.4.0! Use add_theme_support( 'custom-header', $args ) instead. in /home/research/public_html/wp-includes/functions.php on line 3839
   
       Warning: Cannot modify header information - headers already sent by (output started at /home/research/public_html/wp-includes/functions.php:3839) in /home/research/public_html/wp-admin/includes/misc.php on line 1114
       ```
   
 * Not sure what to do with this information. Line 3839 is just the code for the
   triggering the error itself:
 * `trigger_error( sprintf( __('%1$s is <strong>deprecated</strong> since version%
   2$s! Use %3$s instead.'), $function, $version, $replacement ) );`
 * and line 1114 on misc.php:
 * `header( sprintf( 'Referrer-Policy: %s', $policy ) );`
 * The error says to “Use add_theme_support( ‘custom-header’, $args ) instead.” 
   but I don’t know where that is located and how to “use” it!
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [8 years, 1 month ago](https://wordpress.org/support/topic/cannot-save-theme-customizations/#post-10110727)
 * You can also try this: Please attempt to disable all plugins, and use one of 
   the default (Twenty*) themes. If the problem goes away, enable them one by one
   to identify the source of your troubles.
 * If you cannot access wp-admin, there are other ways to [deactivate plugins](https://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F).
   Disable the current theme by renamimg its directory.
 *  Thread Starter [auser0912387](https://wordpress.org/support/users/auser0912387/)
 * (@auser0912387)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/cannot-save-theme-customizations/#post-10110813)
 * Thanks for the reply, but I have already disabled all plugins as mentioned in
   my first post. I tried the 2015 theme, but could not upload an header image, 
   get this error “An error occurred in the upload. Please try again later.”
 * I tried switching back to the theme I was using (Modularity Lite) and now it’s
   not letting me do so. I really don’t want to mess around with themes I have no
   intentions of using. Now I gotta figure out how to get my old theme back, great!!
 * Seems like the errors I posted above regarding “add_custom_image_header” is the
   key to my issues, but I don’t know what to do with that information. I was hoping
   someone might know more about that error and what to do with it.
 *  Thread Starter [auser0912387](https://wordpress.org/support/users/auser0912387/)
 * (@auser0912387)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/cannot-save-theme-customizations/#post-10110820)
 * Actually, my site is broken now by switching to one of the Twenty themes. Completely
   blank white page now when I visit my home page except for this:
 *     ```
       Notice: add_custom_background is deprecated since version 3.4.0! Use add_theme_support( 'custom-background', $args ) instead. in /home/research/public_html/wp-includes/functions.php on line 3839
   
       Notice: add_custom_image_header is deprecated since version 3.4.0! Use add_theme_support( 'custom-header', $args ) instead. in /home/research/public_html/wp-includes/functions.php on line 3839
   
       Warning: Cannot modify header information - headers already sent by (output started at /home/research/public_html/wp-includes/functions.php:3839) in /home/research/public_html/wp-includes/pluggable.php on line 1216
       ```
   
    -  This reply was modified 8 years, 1 month ago by [auser0912387](https://wordpress.org/support/users/auser0912387/).
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [8 years, 1 month ago](https://wordpress.org/support/topic/cannot-save-theme-customizations/#post-10110841)
 * OK, let’s try a manual update of WordPress in case of of the WP files somehow
   got corrupted. [https://codex.wordpress.org/Upgrading_WordPress#Manual_Update](https://codex.wordpress.org/Upgrading_WordPress#Manual_Update)
 *  Thread Starter [auser0912387](https://wordpress.org/support/users/auser0912387/)
 * (@auser0912387)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/cannot-save-theme-customizations/#post-10113053)
 * I was in the process of doing that yesterday when you replied. Eventually got
   the site back up. Still having the problem with theme customizations not saving.
 * I’ve spent the last few hours looking at those error codes I posted. I’ve cleared
   up these codes:
 *     ```
       Notice: add_custom_background is deprecated since version 3.4.0! Use add_theme_support( 'custom-background', $args ) instead. in /home/research/public_html/wp-includes/functions.php on line 3839
   
       Notice: add_custom_image_header is deprecated since version 3.4.0! Use add_theme_support( 'custom-header', $args ) instead. in /home/research/public_html/wp-includes/functions.php on line 3839
       ```
   
 * And now the customizer remembers my header image and gives me no errors, and 
   the header image shows up on the customizer preview window when i return to it,
   but it does not show up on the live site.
 * When I clicked over to the theme options section under appearance, a couple of
   error messages popped up…
 *     ```
       Notice: trying to get property of a non object public_html/wp-includes/post.php line 5798
   
       Notice: trying to get property of a non object public_html/wp-includes/post.php line 5878
   
       Warning: Cannot modify header information - headers already sent by (output started at public_html/wp-includes/post.php:5798 in public_html/wp-admin/includes/misc.php on line 1114
       ```
   
 * Line 5798 of post.php:
 * `wp_cache_add( $post->ID, $post, 'posts' );`
 * Line 5878 of post.php:
 * `$post_ids[] = $post->ID;`
 * Line 1114 of misc.php:
 * `header( sprintf( 'Referrer-Policy: %s', $policy ) );`
 * Any ideas based on the above?
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [8 years, 1 month ago](https://wordpress.org/support/topic/cannot-save-theme-customizations/#post-10113200)
 * I’m leaning towards an issue with your theme.
 *  Thread Starter [auser0912387](https://wordpress.org/support/users/auser0912387/)
 * (@auser0912387)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/cannot-save-theme-customizations/#post-10113371)
 * There may be theme issues but there’s definitely something going on with wordpress
   itself. I downgraded to 4.2.2 and my header problem was resolved. I went back
   up to the latest version of WP and the header is still there and working fine.
 * After downgrading, a screen popped up saying I needed to update the database.
   There were a few errors but nothing got held up. I didn’t get a chance to test
   this before, but now (and possibly was happening earlier too) I get a white screen
   with the following error message when I try to update an edited post:
 * WordPress database error: [Duplicate entry ‘0’ for key ‘PRIMARY’]
    INSERT INTO`
   wp_postmeta` (`post_id`, `meta_key`, `meta_value`) VALUES (14963, ‘_encloseme’,‘
   1’)
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/research/public_html/wp-includes/wp-db.php:1399) in /home/research/public_html/
   wp-admin/post.php on line 198
 *     ```
       Warning: Cannot modify header information - headers already sent by (output started at /home/research/public_html/wp-includes/wp-db.php:1399) in /home/research/public_html/wp-includes/pluggable.php on line 1216
   
       WordPress database error: [Duplicate entry '0' for key 'PRIMARY']
       INSERT INTO <code>wp_usermeta</code> (<code>user_id</code>, <code>meta_key</code>, <code>meta_value</code>) VALUES (1, 'wp_yoast_notifications', 'a:1:{i:0;a:2:{s:7:\"message\";s:165:\"Don\'t miss your crawl errors: <a href=\"http://seekinglost.com/wp-admin/admin.php?page=wpseo_search_console&tab=settings\">connect with Google Search Console here</a>.\";s:7:\"options\";a:8:{s:4:\"type\";s:7:\"warning\";s:2:\"id\";s:17:\"wpseo-dismiss-gsc\";s:5:\"nonce\";N;s:8:\"priority\";d:0.5;s:9:\"data_json\";a:0:{}s:13:\"dismissal_key\";N;s:12:\"capabilities\";s:20:\"wpseo_manage_options\";s:16:\"capability_check\";s:3:\"all\";}}}')
       ```
   
 * This whole mess started when I tried to change domain names. After moving all
   the old site files over to the new folder on my server, I had to chance all the
   references to OLDDOMAIN to NEWDOMAIN in the database. The way I accomplished 
   this was by downloading a copy of my database, opening it in notepad++ and doing
   a search&replace for OLDDOMAIN with NEWDOMAIN. Re uploaded the database, and 
   there were a couple of errors but I do not recall what. I’m sure I screwed something
   up.
 * Another problem I am having is there are no images showing up in my media library
   now. I used the Add From Server plugin but this did not fix the problem. I am
   also unable to add new images to the library, I get this error:
 *     ```
       WordPress database error: [Duplicate entry '0' for key 'PRIMARY']
   
       INSERT INTO <code>wp_usermeta</code> (<code>user_id</code>, <code>meta_key</code>, <code>meta_value</code>) VALUES (1, 'wp_yoast_notifications', 'a:1:{i:0;a:2:{s:7:\"message\";s:165:\"Don\'t miss your crawl errors: <a href=\"http://seekinglost.com/wp-admin/admin.php?page=wpseo_search_console&tab=settings\">connect with Google Search Console here</a>.\";s:7:\"options\";a:8:{s:4:\"type\";s:7:\"warning\";s:2:\"id\";s:17:\"wpseo-dismiss-gsc\";s:5:\"nonce\";N;s:8:\"priority\";d:0.5;s:9:\"data_json\";a:0:{}s:13:\"dismissal_key\";N;s:12:\"capabilities\";s:20:\"wpseo_manage_options\";s:16:\"capability_check\";s:3:\"all\";}}}')
       ```
   
 * Another issue I am having is with GPX files I host on my site using WP GPX Maps
   plugin. This creates a shortcode and will display the GPX file in my post. Now
   the file does not pull up on my live page and shows this error:
 *     ```
       Oops! Something went wrong.
   
       This page didn't load Google Maps correctly. See the JavaScript console for technical details.
       ```
   
 * I check the console, it mentions a missing API key, I replace it and go to save
   the settings and get this message on a blank white screen:
 *     ```
       Notice: options.php was called with an argument that is deprecated since version 2.7.0! The wpgpxmaps_height setting is unregistered. Unregistered settings are deprecated. See https://codex.wordpress.org/Settings_API in /home/research/public_html/wp-includes/functions.php on line 4031
   
       Notice: options.php was called with an argument that is deprecated since version 2.7.0! The wpgpxmaps_graph_height setting is unregistered. Unregistered settings are deprecated. See https://codex.wordpress.org/Settings_API in /home/research/public_html/wp-includes/functions.php on line 4031
   
       Notice: options.php was called with an argument that is deprecated since version 2.7.0! The wpgpxmaps_width setting is unregistered. Unregistered settings are deprecated. See https://codex.wordpress.org/Settings_API in /home/research/public_html/wp-includes/functions.php on line 4031
   
       Notice: options.php was called with an argument that is deprecated since version 2.7.0! The wpgpxmaps_download setting is unregistered. Unregistered settings are deprecated. See https://codex.wordpress.org/Settings_API in /home/research/public_html/wp-includes/functions.php on line 4031
   
       Notice: options.php was called with an argument that is deprecated since version 2.7.0! The wpgpxmaps_skipcache setting is unregistered. Unregistered settings are deprecated. See https://codex.wordpress.org/Settings_API in /home/research/public_html/wp-includes/functions.php on line 4031
   
       Notice: options.php was called with an argument that is deprecated since version 2.7.0! The wpgpxmaps_distance_type setting is unregistered. Unregistered settings are deprecated. See https://codex.wordpress.org/Settings_API in /home/research/public_html/wp-includes/functions.php on line 4031
   
       Notice: options.php was called with an argument that is deprecated since version 2.7.0! The wpgpxmaps_usegpsposition setting is unregistered. Unregistered settings are deprecated. See https://codex.wordpress.org/Settings_API in /home/research/public_html/wp-includes/functions.php on line 4031
   
       Notice: options.php was called with an argument that is deprecated since version 2.7.0! The wpgpxmaps_googlemapsv3_apikey setting is unregistered. Unregistered settings are deprecated. See https://codex.wordpress.org/Settings_API in /home/research/public_html/wp-includes/functions.php on line 4031
   
       Notice: options.php was called with an argument that is deprecated since version 2.7.0! The wpgpxmaps_openstreetmap_apikey setting is unregistered. Unregistered settings are deprecated. See https://codex.wordpress.org/Settings_API in /home/research/public_html/wp-includes/functions.php on line 4031
   
       Warning: Cannot modify header information - headers already sent by (output started at /home/research/public_html/wp-includes/functions.php:4031) in /home/research/public_html/wp-includes/pluggable.php on line 1216
       WordPress database error: [Duplicate entry '0' for key 'PRIMARY']
       INSERT INTO <code>wp_usermeta</code> (<code>user_id</code>, <code>meta_key</code>, <code>meta_value</code>) VALUES (1, 'wp_yoast_notifications', 'a:1:{i:0;a:2:{s:7:\"message\";s:165:\"Don\'t miss your crawl errors: <a href=\"http://seekinglost.com/wp-admin/admin.php?page=wpseo_search_console&tab=settings\">connect with Google Search Console here</a>.\";s:7:\"options\";a:8:{s:4:\"type\";s:7:\"warning\";s:2:\"id\";s:17:\"wpseo-dismiss-gsc\";s:5:\"nonce\";N;s:8:\"priority\";d:0.5;s:9:\"data_json\";a:0:{}s:13:\"dismissal_key\";N;s:12:\"capabilities\";s:20:\"wpseo_manage_options\";s:16:\"capability_check\";s:3:\"all\";}}}')
       ```
   
 * So there’s definitely something going on beyond the theme or a lone plugin. I
   think I screwed up something with my database. What a mess.
    -  This reply was modified 8 years, 1 month ago by [auser0912387](https://wordpress.org/support/users/auser0912387/).
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [8 years, 1 month ago](https://wordpress.org/support/topic/cannot-save-theme-customizations/#post-10113379)
 * >  had to chance all the references to OLDDOMAIN to NEWDOMAIN in the database.
   > The way I accomplished this was by downloading a copy of my database, opening
   > it in notepad++ and doing a search&replace for OLDDOMAIN with NEWDOMAIN. Re
   > uploaded the database, and there were a couple of errors but I do not recall
   > what. I’m sure I screwed something up.
 * Yup, you screwed it up bigly. There’s a lot of serialized data in the database
   and a straight search/replace will totally break that. You should have used this
   instead: [https://interconnectit.com/products/search-and-replace-for-wordpress-databases/](https://interconnectit.com/products/search-and-replace-for-wordpress-databases/)
   or wp-cli’s “search-replace” command or a plugin like “better search replace”.
 *  Thread Starter [auser0912387](https://wordpress.org/support/users/auser0912387/)
 * (@auser0912387)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/cannot-save-theme-customizations/#post-10113392)
 * I know I screwed up, but how do I fix it?
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [8 years, 1 month ago](https://wordpress.org/support/topic/cannot-save-theme-customizations/#post-10113400)
 * That’s a darn good question. If it were me, I’d try deleting all rows in wp_options
   that look like they’re related to theme customizations, then re-entering the 
   customizations. However, it also looks like you may have screwed up the auto-
   index for the wp_options table as well. Google a bit on how to reset the auto-
   index value.
 * Good luck. Backup your database first.

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

The topic ‘Cannot save theme customizations’ is closed to new replies.

## Tags

 * [header image](https://wordpress.org/support/topic-tag/header-image/)
 * [theme customizations](https://wordpress.org/support/topic-tag/theme-customizations/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 13 replies
 * 2 participants
 * Last reply from: [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/cannot-save-theme-customizations/#post-10113400)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
