Unable to make any posts!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Alt-Fit
    New Member
    • Aug 2017
    • 24
    • 5.3.x

    [Bug / Issue] Unable to make any posts!

    When posting I am getting the error: "Error while saving content: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data"
    I have turned on debug mode, this is what has been revealed;

    Debug Information

    • Page ID: 19
    • Parent ID: 0
    • Page Template ID: 23
    • Route ID: 34
    • Page Type: default
    • Screen Layout ID: 1
    • Screen Layout Template: screenlayout_display_full
    • Channel ID:
    • Node ID: 3
    • Database Asserts: 0 (?)
    • AJAX Requests: 3
    • Facebook Active: No (Not enabled or no appid & secret set)
    • Style ID: 1
    • Templates/Renders: 44/59
    • CSS Templates: 6
    • JS Files: 7
    • Included Files: 159
    • Autoloaded Classes: 148
    • Current Time: Wed, 09 Aug 2017 16:16:20 +0100
    • Page Time: 0.7094





    Please help.
  • Mark.B
    vBulletin Support
    • Feb 2004
    • 24288
    • 6.0.X

    #2
    We will need more information.

    Has this ever worked?
    Is this a fresh installation or an upgrade?
    What version of vBulletin?
    What version of php?
    MARK.B
    vBulletin Support
    ------------
    My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
    My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

    Comment

    • Alt-Fit
      New Member
      • Aug 2017
      • 24
      • 5.3.x

      #3
      Hi Mark,

      Q: Has this ever worked?
      A: I can create new forums, use the backend admin panel in every regard and on the front end I added profile information to my admin account as well as images. The only thing that doesn't work is creating new topics and posting messages.

      Q: Is this a fresh installation or an upgrade?
      A: Fresh installation

      Q: What version of vBulletin?
      A: vBulletin 5.3.2 Patch Level 1

      Q: What version of php?
      A: PHP Version 5.6.31
      A: Server: LiteSpeed V6.11
      A: Mod security is turned off.
      A: Vb has been installed into a parked domain under the main account domain.

      Hope that helps.

      Comment

      • Alt-Fit
        New Member
        • Aug 2017
        • 24
        • 5.3.x

        #4
        Really need some help on this as soon as possible. I have people waiting to develop the forum. if there's anything else you need to know I can supply the information.

        Comment

        • glennrocksvb
          Former vBulletin Developer
          • Mar 2011
          • 4021
          • 5.7.X

          #5
          Check the Network tab in the browser dev tools (F12). Select the /create-content AJAX call and open Response tab. That should contain the detailed error message if site is in debug mode

          Flag Icon Postbit Insert GIPHY Impersonate User BETTER INITIALS AVATAR Better Name Card Quote Selected Text Bookmark Posts Post Footer Translate Stop Links in Posts +MORE!

          Comment

          • Alt-Fit
            New Member
            • Aug 2017
            • 24
            • 5.3.x

            #6
            Hi Glenn,
            I followed your instructions and have this;

            Firefox browser F12 report
            Vb in debug mode
            ====================
            301 POST /create-content/text/ (Moved Permanently)
            500 GET text (Internal Server Error)

            ADDITIONAL

            Cause JS



            Line 305 in jQuery Form Plugin * version: 2.85 (23-SEP-2011) was highlighted.
            Last edited by Alt-Fit; Wed 9 Aug '17, 12:33pm. Reason: EXTRA INFOR

            Comment

            • Alt-Fit
              New Member
              • Aug 2017
              • 24
              • 5.3.x

              #7
              Right I just downloaded the file and it won't even open. Windows reports this error: see attatched.
              I can edit the file in Dreamweaver but finding the character will be a nightmare as this code is condensed on one line.
              Attached Files

              Comment

              • glennrocksvb
                Former vBulletin Developer
                • Mar 2011
                • 4021
                • 5.7.X

                #8
                The create-content POST request is doing a 301 redirect which causes it to become a GET request which is invalid. It shouldn't do a 301 redirect.

                Flag Icon Postbit Insert GIPHY Impersonate User BETTER INITIALS AVATAR Better Name Card Quote Selected Text Bookmark Posts Post Footer Translate Stop Links in Posts +MORE!

                Comment

                • Alt-Fit
                  New Member
                  • Aug 2017
                  • 24
                  • 5.3.x

                  #9
                  Sorry for all the posts but I have some new info. Hopefully this should pinpoint it.

                  Debug: Error
                  This action only available via POST
                  occurred in file /home/juicecou/alt-fit.com/includes/vb5/frontend/controller.php on line 118
                  Trace
                  • Function verifyPostRequest in file /home/juicecou/alt-fit.com/includes/vb5/frontend/controller/createcontent.php line 177
                  • Function actionTextNodeInternal in file /home/juicecou/alt-fit.com/includes/vb5/frontend/controller/createcontent.php line 171
                  • Function index in file line
                  • Function call_user_func_array in file /home/juicecou/alt-fit.com/index.php line 74

                  Comment


                  • glennrocksvb
                    glennrocksvb commented
                    Editing a comment
                    That's the result of the 301 redirect which shouldn't happen in the first place. Submitting a post or reply should be a POST request not GET request. Check why it's doing a redirect.
                • Alt-Fit
                  New Member
                  • Aug 2017
                  • 24
                  • 5.3.x

                  #10
                  You got me 1/2 way there, commented out the below from my .htaccess
                  rewriterule ^(.*)/$ $1 [R=301,L]

                  FIXED!!!! HALLELUJAH!!
                  Thanks.

                  Comment

                  • glennrocksvb
                    Former vBulletin Developer
                    • Mar 2011
                    • 4021
                    • 5.7.X

                    #11
                    Glad to help lead you to the fix.

                    Flag Icon Postbit Insert GIPHY Impersonate User BETTER INITIALS AVATAR Better Name Card Quote Selected Text Bookmark Posts Post Footer Translate Stop Links in Posts +MORE!

                    Comment

                    Related Topics

                    Collapse

                    Working...