Announcement

Collapse
No announcement yet.

Creating Blogs and Articles

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

  • Creating Blogs and Articles

    Hey there,

    I've got some problems with creating blogs and articles. There are no mods or anything else running on my vB 5.4 forum currently. I've created a custom style (editing style var and a couple of css templates).
    Now, I wanted to use the Articles and Blogs function for the first time and both of them don't work - I think for different reasons. I turned on Debug mode and here's what I got:

    When I write an article and click Post, this appears:

    ## /www/htdocs/w017e434/mysite.com/forums/core/vb/library/node.php(867) Exception Thrown
    #0 /www/htdocs/w017e434/mysite.com/forums/core/vb/library/node.php(944): vB_Library_Node->getNodeBare(0)
    #1 /www/htdocs/w017e434/mysite.com/forums/core/vb/api/content/text.php(97): vB_Library_Node->getNode(0)
    #2 /www/htdocs/w017e434mysite.com/forums/core/vb/api/wrapper.php(199): vB_Api_Content_Text->add(Array, Array)
    #3 /www/htdocs/w017e434/mysite.com/forums/includes/api/interface/collapsed.php(101): vB_Api_Wrapper->__call('add', Array)
    #4 /www/htdocs/w017e434/mysite.com/forums/includes/vb5/frontend/controller/createcontent.php(420): Api_Interface_Collapsed->callApi('content_text', 'add', Array)
    #5 /www/htdocs/w017e434/mysite.com/forums/includes/vb5/frontend/controller/createcontent.php(285): vB5_Frontend_Controller_CreateContent->createNewNode('content_text', Array, Array, Array)
    #6 /www/htdocs/w017e434/mysite.com/forums/includes/vb5/frontend/controller/createcontent.php(171): vB5_Frontend_Controller_CreateContent->actionTextNodeInternal('content_text')
    #7 /www/htdocs/w017e434/mysite.com/forums/index.php(74): vB5_Frontend_Controller_CreateContent->index()
    #8 {main}

    {"errors":[["invalid_node_id"]],"userid":"1"}

    __________________________________________________________________________________________ _______________

    When I want to add a blog, I can't because the Blog modules says:

    An internal error has occurred and the module cannot be displayed. Template: widget_bloghome => conversation_toolbarController: user Method: canCreateBlogEntry Arguments: Array ( [0] => 4 ) Errors:

    Array ( [0] => Error Database error in vBulletin 5.4.0: Invalid SQL: SELECT n.nodeid, n.title FROM closure AS cl INNER JOIN node AS n ON n.nodeid = cl.child INNER JOIN groupintopic AS git ON git.nodeid = n.nodeid WHERE cl.parent = 4 AND git.groupid IN () and git.userid = 1 ORDER BY title /**getGitCanStartThreads**/; MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') and git.userid = 1 ORDER BY title /**getGitCanStartThreads**/' at line 4 Error Number : 1064 Request Date : Monday, April 2nd 2018 @ 10:31:18 AM Error Date : Monday, April 2nd 2018 @ 10:31:18 AM Script : http://www.mysite.com/forums/blogs Referrer : IP Address : - Username : Prescott Classname : vB_Database_MySQLi MySQL Version : 5.7.21-nmm1-log [1] => Array ( [0] => exception_trace [1] => ## /www/htdocs/w017e434/mysite.com/forums/core/vb/database.php(1189) Exception Thrown #0 /www/htdocs/w017e434/mysite.com/forums/core/vb/database/mysqli.php(201): vB_Database->halt() #1 /www/htdocs/w017e434/mysite.com/forums/core/vb/database.php(557): vB_Database_MySQLi->execute_query(true, Object(mysqli)) #2 /www/htdocs/w017e434/mysite.com/forums/core/vb/db/result.php(126): vB_Database->query_read('Invalid SQL:\r\nS...') #3 /www/htdocs/w017e434/mysite.com/forums/core/vb/db/result.php(63): vB_dB_Result->rewind() #4 /www/htdocs/w017e434/mysite.com/forums/core/vb/db/query/stored.php(104): vB_dB_Result->__construct(Object(vB_Database_MySQLi), 'SELECT n.nodeid...', false) #5 /www/htdocs/w017e434/mysite.com/forums/core/vb/db/assertor.php(304): vB_dB_Query_Stored->execSQL() #6 /www/htdocs/w017e434/mysite.com/forums/core/vb/db/assertor.php(653): vB_dB_Assertor->assertQuery('vBForum:getGitC...', Array, false) #7 /www/htdocs/w017e434/mysite.com/forums/core/vb/api/user.php(6868): vB_dB_Assertor->getRows('vBForum:getGitC...', Array) #8 /www/htdocs/w017e434/mysite.com/forums/core/vb/api/user.php(6889): vB_Api_User->getGitCanStart('4') #9 /www/htdocs/w017e434/mysite.com/forums/core/vb/api/wrapper.php(199): vB_Api_User->canCreateBlogEntry('4') #10 /www/htdocs/w017e434/mysite.com/forums/includes/api/interface/collapsed.php(101): vB_Api_Wrapper->__call('canCreateBlogEn...', Array) #11 /www/htdocs/w017e434/mysite.com/forums/includes/vb5/template/runtime.php(548): Api_Interface_Collapsed->callApi('user', 'canCreateBlogEn...', Array, false, true) #12 /www/htdocs/w017e434/mysite.com/forums/includes/vb5/template.php(322) : eval()'d code(261): vB5_Template_Runtime::ParseData('user', 'canCreateBlogEn...', '4') #13 /www/htdocs/w017e434/mysite.com/forums/includes/vb5/template.php(322): eval() #14 /www/htdocs/w017e434/mysite.com/forums/includes/vb5/template/cache.php(134): vB5_Template->render(false) #15 /www/htdocs/w017e434/mysite.com/forums/includes/vb5/template.php(344): vB5_Template_Cache->replacePlaceholders('\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n...') #16 /www/htdocs/w017e434/mysite.com/forums/includes/vb5/template/cache.php(134): vB5_Template->render(false) #17 /www/htdocs/w017e434/mysite.com/forums/includes/vb5/template.php(344): vB5_Template_Cache->replacePlaceholders('\r\n\t<!-- *** STA...') #18 /www/htdocs/w017e434/mysite.com/forums/includes/vb5/template/cache.php(134): vB5_Template->render(false) #19 /www/htdocs/w017e434/mysite.com/forums/includes/vb5/template.php(344): vB5_Template_Cache->replacePlaceholders('\r\n\t\r\n\r\n\r\n\r\n\r\n\r\n...') #20 /www/htdocs/w017e434/mysite.com/forums/includes/vb5/template/cache.php(134): vB5_Template->render(false) #21 /www/htdocs/w017e434/mysite.com/forums/includes/vb5/template.php(344): vB5_Template_Cache->replacePlaceholders('\r\n\t\r\n\r\n\r\n\r\n\t\r\n\r...') #22 /www/htdocs/w017e434/mysite.com/forums/includes/vb5/template/cache.php(134): vB5_Template->render(false) #23 /www/htdocs/w017e434/mysite.com/forums/includes/vb5/template.php(344): vB5_Template_Cache->replacePlaceholders('\r\n\t\r\n\r\n\t\r\n\t\t<me...') #24 /www/htdocs/w017e434/mysite.com/forums/includes/vb5/frontend/controller/page.php(259): vB5_Template->render() #25 /www/htdocs/w017e434/mysite.com/forums/index.php(74): vB5_Frontend_Controller_Page->index(17, '$pagenum', '4', '17') #26 {main} ) )
    _______________________________

    I would be grateful if someone could help me!
    Thank you!

    P

  • #2
    What is the vBulletin version?
    What is the php version?
    MARK.B | vBULLETIN SUPPORT

    TalkNewsUK - My vBulletin 5.5.6 Demo
    AdminAmmo - My Cloud Demo

    Comment


    • #3
      I'm using vBulletin 5.4.0 and PHP 7.0.

      Comment


      • #4
        If you use any tools like mod_security, make sure it isn't removing any values from the POST variables when submitting forms. You would need to coordinate with your hosting provider or server administrator for this.
        Translations provided by Google.

        Wayne Luke
        The Rabid Badger - a vBulletin Cloud demonstration site.
        vBulletin 5 API - Full / Mobile
        Vote for your favorite feature requests and the bugs you want to see fixed.

        Comment


        • #5
          I contacted my hosting provider and showed them the problem. They told me that there could be something wrong with the database, more specifically the structure / table "closure".
          I didn't do anything to the database.

          What could be my next steps?

          Comment


          • #6
            Stuck with the same problem for Blogs. Getting the error: "An internal error has occurred and the module cannot be displayed"

            Any help you offer OPrescott, will help me too. Please offer some help here, would appreciate a lot. Thanks.

            OPrescott, I hope I'm not stepping on your toes .. just bumping the discussion since I'm experiencing the same problem with my VB 5.4

            Comment


            • #7
              And I resolved the problem. It was all in permissions.

              OPrescott, here is what I did:

              Admin Panel > Channel Management > Channel Permissions > Look for BLOGS channel on the right side.

              Since I use my Super Moderator account primarily for doing everything on the forum, I clicked EDIT before Super Moderators. Edited the permissions and allowed ALL for Super Moderators.

              Saved and checked .. problem solved!

              Please let me know if this helped you. Cheers!

              Comment

              Related Topics

              Collapse

              Working...
              X