Theme Options Not Saving and Giving Error

I am getting an error every time I try to update Theme Options on XTheme Pro. Both versions 3.2.3 and 3.1.2. It it doing the following:

  • Causing Logoff and making me relog back in
  • Giving Uh Oh app.notify.failed-to-save every time i hit save with a red bar.
  • Giving me this error when editing Header Top Bar (The preview could not load due to the iFrame response being incomplete)
    The basic wordpress options will save fine. Just not the specific secondary XTheme Options button area.

I have 512M php memory in my .ini file and in my wp-config file. I have disabled all plugins and still get same error. Wordpress version is up to date. PHP is at 7.3

I need help.

I also have tried switching back to my parent theme and off my child theme. Still does not work.

Hi @jim_honea,

Thank you for writing in, do you have any Custom JS somewhere? If so, please try removing it, and see if that resolves the issue.

Also, please clear all your caching features (plugin, server-side, CDN, and browser’s cache).

And another thing, try using the Incognito/Private mode of your browser where there are no caching and browser add-ons involve.

If the issue persists, please provide us login credentials in a secure note so we can take a closer look.

Cheers!

I am still having issues. Removing javascript in the header (google pixels) did not help any. i have secured my credentials for you.

Hi @jim_honea,

Can you provide us FTP access to investigate more? we need to debug your WordPress website that is why we need your FTP access.

In the meantime please check this document for the possible reason and fixes of your problems.

Thank you.

here you go i will send it private

I have tried everything in your document to no avail.

Hi @jim_honea,

Do you have a live domain? is this site working on a live domain? Would you mind contacting your hosting support and ask to temporary disable any security feature on the site, specifically Mod Security? See if that resolves the issue, if it is, please ask on how you can white list the /cornerstone-endpoint

Another thing, for some reason I was able to remove and saved that PHP code below on your Theme Options > JS, however when I try to add it again it does not allow me to saved and log me out.

Nevertheless, that code is a PHP function, so it should go on your child theme’s functions.php file, not on Theme Options > JS.



function my_remove_menu_pages() {
  remove_menu_page( 'edit.php' );                   //Posts
  remove_menu_page( 'upload.php' );                 //Media
  remove_menu_page( 'edit-comments.php' );          //Comments
  remove_menu_page( 'themes.php' );                 //Appearance
  remove_menu_page( 'users.php' );                  //Users
  remove_menu_page( 'tools.php' );                  //Tools
  remove_menu_page( 'options-general.php' );        //Settings
  remove_menu_page( 'edit.php?post_type=acf' );
  remove_menu_page( 'wpcf7' );
};

function my_password_form() {
    global $post;
    $label = 'pwbox-' . ( empty($post->ID) ? rand() : $post->ID );
    $o = '<form action="' . esc_url(site_url('wp-login.php?action=postpass', 'login_post')) . '" method="post">';
    $o .= __("To view this protected post, enter the password below:");
    $o .=' <label for="' . $label . '">' . __("Password:") . ' </label>';
    $o .= '<input name="post_password" id="' . $label . '" type="password" size="20" maxlength="20" />';
    $o .= '<input type="submit" name="Submit" value="' . esc_attr__("Submit") . '" />';
    $o .= '</form>';
    return $o;
}

add_filter('the_password_form', 'my_password_form');

function the_title_trim($title) {
    $title = attribute_escape($title);
    $findthese = array(
        '#Protected:#',
        '#Private:#'
    );
    $replacewith = array(
        '', // What to replace "Protected:" with
        '' // What to replace "Private:" with
    );
    $title = preg_replace($findthese, $replacewith, $title);
    return $title;
}

add_filter('the_title', 'the_title_trim');

And one last thing, please update your PRO theme to the latest version.

Remember to clear all your caching features (plugin, server-side, CDN, and browser’s cache) after updating so that the code from the latest release is always in use. This will help you to avoid any potential errors.

Thanks,

I have the latest version on my live site. I rolled back to your latest stable on the dev site to test. I am seeing the same behavior on both. The logoff and not allowing you to save is what I am experiencing. It is only in the theme options. the rest of the site works. I need help figuring out how to save changes in the theme options

try editing the html code on the topbar content and look at that error as well.
so far in the theme options i have:

  • iframe error when trying to edit the topbar content and it tries to render the change in the preview
  • when i hit save in the options pane (whether i make a change or not) i get the “uh-oh” red error.
  • i get logged off wordpress admin after hitting save most of the time

Again, this is all only happening in the Theme Options in Pro. The rest of the theme seems to be working ok.
I have gone through all the steps in your help articles. More memory, fushing cache, no javascript, rolled back theme to latest stable, PHP is up to date, Wordpress is up to date, disabled all plugins and tried it, switched to parent theme from child theme and tried it. All these produce the same error.

I need some help as I really need to edit topbar content that is incorrect on my site.

Hello @jim_honea

Thanks for updating in! I have check your topbar content and you have inserted this code:

<div class="topLogo"><a href="http://4z5.d0c.myftpupload.com" class="x-brand img" title="Exclusive Luxury Ranch Resort Private Destination" style="user-select: none;">
  <img src="/wp-content/uploads/2019/04/JLBar.jpg" alt="Exclusive Luxury Ranch Resort Private Destination" style="user-select: none;"></a>
</div>

<div class="topMenuBar">
<nav>
 	<ul id="topMenu">
		<li class="topMenuItem telephone"><a href="tel:8554143337">(855) 414-3337</a></li>  	
		<li class="topMenuItem"><a href="contact">Contact Us</a></li>  	
		<li class="topMenuItem"><a href="https://issuu.com/jlbar/docs/flip_book?e=0" target="blank">Brochure</a></li>
		<li class="topMenuItem"><a href="upcoming-events">Upcoming Events</a></li>
		<li class="booknow"><a href="https://be.synxis.com/?&hotel=8682" >BOOK NOW</span></a></li>
	</ul>
</nav>
</div>

Please be aware that the topbar content should only have plain text or with minor HTML tag mainly the text formatting tags like span, strong, italics, etc. You are not supposed to insert div, ul, li or nav tags. Keep in mind that the topbar content will be wrapped with a <p> tag in the front end and with this <p> tag, you cannot insert div, ul, li or nav tag.

Since you are using Pro theme and would like to tweak or completely change the look of your header, please go to Pro > Headers and create your own custom header instead. If you are not yet familiar of this builder, perhaps this link can help:

Hope this helps.

This is not new. Has not been a problem for over two years. The problem is not related to the information in the topbar. There is a issue somewhere in the options part of the theme. This is just a symptom. Removing this code does not alleviate the issues I am having.

Hello @jim_honea,

We have already investigated further and the issue seems unique to your site only. There are other users of myftpupload and only are having the issue. Can you please disable your ModSecurity? Please let us know how it goes when it is OFF.

Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.