• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

Can not save settings: unrecognized input

Scheduled Pinned Locked Moved General Discussion
6 Posts 3 Posters 1.1k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sharonyue
    wrote on last edited by sharonyue
    #1

    Hello guys.

    I run into this problem for one year, see link text if you are interest into the old story. But it becomes serious after I upgrade to 1.7.4 in which the header was switched off by default.

    Whenever I want to save my customized CSS or Header :

    NodeBB encountered a problem saving changes
    

    By the suggestion by @baris in this link , I modify it to message: err.message, then it becomes:

    Changes Not Saved: unrecognized input
    

    What am I supposed to do?

    Thank you very much 👍


    Below is my CSS:

    body {
        font-family: 
            "Times New Roman";
    }
    
    <script>
    (function(){
        var bp = document.createElement('script');
        var curProtocol = window.location.protocol.split(':')[0];
        if (curProtocol === 'https') {
            bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';        
        }
        else {
            bp.src = 'http://push.zhanzhang.baidu.com/push.js';
        }
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(bp, s);
    })();
    </script>
    

    Header:

    <script type="text/x-mathjax-config">
      MathJax.Hub.Config({
          extensions: ["tex2jax.js"],
      tex2jax: {
          inlineMath: [['$','$'], ['\\(','\\)']]
          },
      TeX: {equationNumbers: { autoNumber: "AMS" } }
      });
    </script>
    
    <script type="text/javascript"
      src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
    </script>
    
    PitaJP 1 Reply Last reply
    0
  • PitaJP Offline
    PitaJP Offline
    PitaJ Global Moderator Plugin & Theme Dev
    replied to sharonyue on last edited by
    #2

    @sharonyue did you mean to include the script element in your CSS? That's most likely causing an error.

    1 Reply Last reply
    0
  • S Offline
    S Offline
    sharonyue
    wrote on last edited by
    #3

    @pitaj

    Not exactly. Now the script in CSS works. Header also works before I upgrade to 1.7.4.

    After upgrade, Header was switched off by default. If I switch it on in API, it says

    NodeBB encountered a problem saving changes. Changes Not Saved: unrecognized input
    
    PitaJP 1 Reply Last reply
    0
  • PitaJP Offline
    PitaJP Offline
    PitaJ Global Moderator Plugin & Theme Dev
    replied to sharonyue on last edited by PitaJ
    #4

    @sharonyue what? Putting a script element in the CSS definitely should not work. Try removing it, please.

    S 1 Reply Last reply
    0
  • S Offline
    S Offline
    sharonyue
    replied to PitaJ on last edited by
    #5

    @pitaj said in Can not save settings: unrecognized input:

    Putting a script element in the CSS definitely should not work.

    Thank you!! After I remove the script in the CSS. I can save the header. The one-year-problem has been fixed. Thank you very much. 👍

    1 Reply Last reply
    1
  • julianJ Offline
    julianJ Offline
    julian GNU/Linux
    wrote on last edited by
    #6

    Nice! Glad to hear it, thanks for the quick fix @PitaJ

    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development