Announcement

Collapse
No announcement yet.

Unexpected token when adding link

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

  • Unexpected token when adding link

    When trying to add a link to a post i get an error message "HTTP 200 - SyntaxError: Unexpected token < in JSON at position 0"

    vB 5.3.0

    Regards

  • #2
    What version of PHP are you using?

    What are the steps that you're following? There are many ways to "insert a link".
    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


    • #3
      PHP 5.6.28

      With "add link" I mean pushing the link-button that adds a link to the post. Not inserting it inte the text of the post.

      Click image for larger version

Name:	2017-05-11_21-21-06.png
Views:	15
Size:	5.1 KB
ID:	4369880

      Comment


      • #4
         
        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


        • #5
          What is the link that you're using?

          Do you have a custom style or template edits?

          If you press F12 and open the developer tools are there any error on the page?
          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


          • #6
            I have tried several links now including the youtube/link you used above. Same error every time.

            There is no indication in styles and templates that there is any changes made. However I have one product that zips all attachments and download them as one file that shows up on posts already made. It is not active here (as I understand it) since since this error shows up when creating a post.

            F12: I push it and sees no obvious warnings. However I am not very familiar with F12 so I might need some help pointing me in the right direction what to look for.

            Comment


            • #7
              With the lack of information, I can't tell what is causing the issue. As you have ticket support, you should open a ticket and let someone have access to your system so they can see what is going on.
              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


              • #8
                Thanks for trying. I will do that.
                Regards!

                Comment


                • #9
                  For info, the issue was caused by a custom URL rewrite in the .htaccess file which was rewriting a core vBulletin URL for the link functionality.
                  Vote for:

                  - *Admin Settable Paid Subscription Reminder Timeframe*
                  -
                  *PM - Add ability to reply to originator only*
                  - Add Admin ability to auto-subscribe users to specific channel(s)
                  - Highlight the correct navigation tab when you are on a custom page
                  - "Quick Route" Interface...
                  - Allow to use custom icons for individual forums

                  Comment

                  Related Topics

                  Collapse

                  Working...
                  X