Announcement

Collapse
No announcement yet.

Unable to make any posts!

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

  • [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.

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

    TalkNewsUK - My vBulletin 5.6.3 Demo
    AdminAmmo - My Cloud Demo

    Comment


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


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


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

          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


          • #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
            https://alt-fit.com/new-content/3
            https://alt-fit.com/js/footer-rollup-532.js:305:1238

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

            Comment


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


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

                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


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


                  • Glenn Vergara
                    Glenn Vergara 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.

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

                  FIXED!!!! HALLELUJAH!!
                  Thanks.

                  Comment


                  • #11
                    Glad to help lead you to the fix.

                    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

                    Related Topics

                    Collapse

                    Working...
                    X