Error while saving content: SyntaxError: JSON.parse: unexpected character

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ravi Savkar
    New Member
    • Jul 2013
    • 28
    • 5.0.X

    Error while saving content: SyntaxError: JSON.parse: unexpected character

    I am getting the error "Error while saving content: SyntaxError: JSON.parse: unexpected character" consistently. I am not sure why this is happening. I tried doing cache clean and ran all the maintanance tool. Still the problem persists.

    I have purchased vbulletin quite recently. I have not opened the forum yet for public as I am getting weird errors.

    How can I fix this error?
  • IggyP
    Senior Member
    • Mar 2012
    • 680

    #2
    check your stats in admin control panel like php memory limit....i had issue like this was fixed by making sure limits were high enough

    Comment

    • Ravi Savkar
      New Member
      • Jul 2013
      • 28
      • 5.0.X

      #3
      Here are my php settings. Is this insufficient?
      Resource Limits max_execution_time Maximum execution time of each script, in seconds 30
      Resource Limits max_input_time Maximum amount of time each script may spend parsing request data 60
      Resource Limits memory_limit Maximum amount of memory a script may consume (32MB) 32M
      File Uploads upload_max_filesize Maximum allowed size for uploaded files. 2M

      Comment

      • Ravi Savkar
        New Member
        • Jul 2013
        • 28
        • 5.0.X

        #4
        WIth this issue, the forum has taken a serious hit. Any help is much appreciated!!

        Comment

        • IggyP
          Senior Member
          • Mar 2012
          • 680

          #5
          the memory limit may be low.....128mb should be default....try setting it @ 100mb and see if it fixes

          Comment

          • Lynne
            Former vBulletin Support
            • Oct 2004
            • 26255

            #6
            I would suggest posting in the Server Configuration forum for help configuring the server correctly for your needs.

            Please don't PM or VM me for support - I only help out in the threads.
            vBulletin Manual & vBulletin 4.0 Code Documentation (API)
            Want help modifying your vbulletin forum? Head on over to vbulletin.org
            If I post CSS and you don't know where it goes, throw it into the additional.css template.

            W3Schools <- awesome site for html/css help

            Comment

            • Ravi Savkar
              New Member
              • Jul 2013
              • 28
              • 5.0.X

              #7
              Hmmm. I will check about this. It is strange that I was not getting this issue initially when I setup the forum.

              Now this error is coming very often. Could it be because of some recent settings I changed or is it be because of more users have registered to the forum?

              Comment

              • IggyP
                Senior Member
                • Mar 2012
                • 680

                #8
                have you tinkered with any of the coding?

                i think thats what triggered it for me but not for sure...its the only thing i changed tho, then i did an upgrade and php memory limit was super low all the sudden...beats me, lol, hope you fix quick tho!

                Comment

                • Ravi Savkar
                  New Member
                  • Jul 2013
                  • 28
                  • 5.0.X

                  #9
                  I have not changed any code. NOt sure if something got changed by mistake.

                  I have now configured as below. THe problem still persists. Any other pointers?

                  php_value upload_max_filesize 20M
                  php_value post_max_size 128M
                  php_value max_execution_time 200
                  php_value max_input_time 200

                  Comment

                  • Ravi Savkar
                    New Member
                    • Jul 2013
                    • 28
                    • 5.0.X

                    #10
                    I get this error when I reply to any post. Mostly creating new topic is ok.

                    Comment

                    • Ravi Savkar
                      New Member
                      • Jul 2013
                      • 28
                      • 5.0.X

                      #11
                      Well... Finally figured it out.
                      I had set minimum character per post and minimum character per comment as 0. I have no idea how this is related to json parse error. But setting this value to 5 fixed this issue.

                      Comment


                      • IggyP
                        IggyP commented
                        Editing a comment
                        good to hear.....not sure how u slipped this post in, wasnt here a minute ago, lol
                    • IggyP
                      Senior Member
                      • Mar 2012
                      • 680

                      #12
                      php memory limit is what im suggesting...check on main page of admin cp....should look something like this....not 100% its your problem but im pretty curious by now, lol...few of us had same thing going to 5.0.3 and worked for us...best lucks

                      Comment

                      Related Topics

                      Collapse

                      Working...