Okay
  Public Ticket #3085754
Not saving changes in settings theme
Closed

Comments

  •  2
    Neuman started the conversation

    Hello:

    Changes to theme settings are not saved. (/wp-admin/admin.php?page=Salient&tab=1). Possible Redux framework bug?

    - No error appears when clicking Save Changes.
    - I have deactivated and deleted all plugins without success
    - I have tried with Wordpress 5.9 and 6 without success
    - I have tried reinstalling the theme again
    - I have tested with PHP 7.3, PHP 7.4.
    - I have cleaned and optimized all the MySQL
    - I have no cache plugins installed
    - I have tried from different browsers and different internet connections

    That could be happening?

    Note: An error appears in the console within the theme settings page. (DevTools failed to load source map: Could not load content for https://www.bebersalud.es/wp-content/themes/salient/nectar/redux-framework/ReduxCore/assets/js/vendor/qtip/jquery.qtip .min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE). Could it have something to do with it?

  •  277
    Noah replied

    Hi Neuman,

    Is it possible to get access to the backend - username password with admin privileges - we try and see if we can get to the bottom of this. Will try and make a small change and see if the request fire correctly from the front to the backend.

    Thanks.

  •   Neuman replied privately
  •  2
    Neuman replied

    OK I just sent them privately.

  •  277
    Noah replied

    Hi there,

    You are running litespeed server on your site.
    Could you check with your hosting provider support if there are any PHP errors logged in your domain's PHP error log that relate to the theme. 

    The request to save the theme options seems to work fine and returns a successful message.
    Thanks.

  •   Neuman replied privately
  •  277
    Noah replied

    Hi Neuman,

    Okay we checked and we could not get the settings to save.
    Could you have them reverse the debugging they enabled so the errors do not show on your site.

    We will have to escalate this to our developers.
    They will be in touch.

  •  2
    Neuman replied

    Hi!

    Done!. All errors do not show now. 

    I stand by. Thanks.


  •  982
    ThemeNectar replied

    Hey Neumansmile.png

    Since the save request is logging as successful:

    5643963361.png

    and there are no errors being logged in your PHP error log to point to an issue, it's hard to say what's going on yet as I have not seen this occur before without any trace of error's logging.

    Since you have previously managed to save settings, can you please let us know more about when this issue started occurring for you? e.g. did you recently change servers or alter your setup?

    ----

    Also, you can you try to disable the AJAX functionality from the theme options panel save function for further debugging to see if that corrects the issue. Please paste the following snippet into your child theme functions.php file:

    function salient_set_theme_options_ajax() {
       return true;
    }
    

    Kind regards,

  •  2
    Neuman replied

    I just added that snippet but it's still the same. My hosting provider is going to switch machines and I'll let you know if it's resolved.

  •  2
    Neuman replied

    I don't remember doing anything special or installing plugins that could affect the theme.

    I just deleted plugins and themes from FTP, and reinstalled everything from scratch.

    The problem continues. It does not allow to save the changes made in the theme settings. 

    There is something I have noticed. The changes DO remain saved while I navigate through all the tabs of the theme settings. But when I click on any of the wordpress left menu options, the changes disappear, they are not saved.

    Maybe this will help to locate the problem.
    Thank you very much.

  •  982
    ThemeNectar replied

    Hey Neuman,

    I don't see the snippet that I provided active in your setup currently. Can you please enable the child theme and add that into the functions.php file so that I can take another look?

    function salient_set_theme_options_ajax() {
       return true;
    }
    
  •  2
    Neuman replied

    OK just added the snippet to wp-content/themes/salient/functions.php


    But nothing happens.

  •  982
    ThemeNectar replied

    Sorry, that function should be set to return "false" and not "true" in order to activate the change.

    function salient_set_theme_options_ajax() {
       return false;
    }
    
  •  2
    Neuman replied

    Oh, ok. Done, 

    Now reload the page when clicking the save button, but the change is not saved.

  •  982
    ThemeNectar replied

    Thanks Neuman,

    After further testing, I believe it's related to your database charset encoding and attempting to save emojis in the "Secondary header text" field. I remove that line that contained the emojis, and it appears to have allowed it to start saving again. Can you try testing again from your end?

  •  2
    Neuman replied

    lol, that was it!!!!

    It works perfectly.

    Very grateful for your professional support. Keep going!


    We can close the ticket. I hope it helps the community