Announcement

Collapse
No announcement yet.

JSON Error Posting Table

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • JSON Error Posting Table

    Version: vBulletin 5.1.2 PL 3

    Error:Error while saving content: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

    Action: Attempting to post a table containing HTML anchored URL links and HTML image links as a new thread.

    What is causing this error?

  • #2
    Turn on debug mode and try again. Then take a look at the ajax response. It should contain the detailed php error stack trace.

    GIPHY for vB5 AutoLinker Auto-Create Flag Report Topic Social Icons in Postbit Clear Cache Cron DragDrop Upload Topic AJAX AutoUpdate Custom Avatars Selector Stop Links in Posts...and more!

    Comment


    • #3
      Originally posted by Glenn Vergara View Post
      Turn on debug mode and try again. Then take a look at the ajax response. It should contain the detailed php error stack trace.
      This would be the logical course of action if turning on debug mode didn't result in a "cannot read config.php" error. However, changing the presentation config.php file from:

      // This setting enables debug mode, it should NEVER be used on a live site
      $config['debug'] = false;

      To

      // This setting enables debug mode, it should NEVER be used on a live site
      $config['debug'] = true;

      results in just such an error.

      This error occurs with the core config.php file edited from:

      // $config['Misc']['debug'] = true;

      To

      $config['Misc']['debug'] = true;

      Therefore, I gave up on it and moved on.

      Comment


      • #4
        What program are you editing the config file with? Don't use Windows Notepad....it will mess up the file. Use a proper text editor, such as Notepad++, which is free.
        MARK.B | vBULLETIN SUPPORT

        TalkNewsUK - My vBulletin 5.5.4 Demo
        AdminAmmo - My Cloud Demo

        Comment


        • #5
          There are also two debug fields that I was editing to turn it on and off - if that's any help?

          also, as Mark said, don't use Notepad... Notepad ++ all the way!

          Comment


          • #6
            Originally posted by rhens View Post

            This would be the logical course of action if turning on debug mode didn't result in a "cannot read config.php" error. However, changing the presentation config.php file from:

            // This setting enables debug mode, it should NEVER be used on a live site
            $config['debug'] = false;

            To

            // This setting enables debug mode, it should NEVER be used on a live site
            $config['debug'] = true;

            results in just such an error.

            This error occurs with the core config.php file edited from:

            // $config['Misc']['debug'] = true;

            To

            $config['Misc']['debug'] = true;

            Therefore, I gave up on it and moved on.

            Remove the UTF8 BOM at the beginning of your saved files. Either save them in ASCII mode or UTF Without BOM mode. Do not use Microsoft tools to edit these files as Microsoft loves the BOM and it breaks the files.
            Translations provided by Google.

            Wayne Luke
            The Rabid Badger - a vBulletin Cloud customization and demonstration site.
            vBulletin 5 Documentation - Updated every Friday. Report issues here.
            vBulletin 5 API - Full / Mobile
            I am not currently available for vB Messenger Chats.

            Comment

            Related Topics

            Collapse

            • Fleiding
              Error Information
              by Fleiding
              Whenever a user receives an error message, it always displays a sort of failure code on the bottom of the error. Is there a way to hide this? See the bold failure code in the sample below:...
              Fri 28th Dec '18, 6:03am
            • asterix_ita
              Debug Mode
              by asterix_ita
              vbulletin have now two config files and in both there is the debug option.
              which file should I remove comments for debug?


              Thanks

              Regards
              Mon 24th Sep '12, 9:56pm
            • munsterfans
              System Error
              by munsterfans
              On several occasions, the site has gone completely offline, with the following error:

              -----------------
              A System Error has occured.

              The software is experiencing a systems...
              Mon 1st Oct '18, 12:37am
            • fionix
              What is CVS $RCSFile$ in the config file?
              by fionix
              Deos someone knows what this means in the config.php file found in /core

              HTML Code:
              /*======================================================================*\
              || ####################################################################
              ...
              Fri 8th Jan '16, 10:23pm
            • heredia21
              Critical Error
              by heredia21
              When I log into vBulletin I get the following:

              Critical Error

              We are currently experiencing technical difficulties. Please check back in 24 hours.

              What do I do?...
              Thu 24th Jul '14, 3:52am
            Working...
            X