1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 PHP error => permissions

Discussion in 'Troubleshooting and Problems' started by Betclever, Feb 3, 2015.

  1. Betclever

    Betclever Active Member

    Hello,

    I have a PHP error cause the moderation group can't schedule post and get this error message:

    Code:
    ErrorException: Argument 1 passed to XenForo_Permission::hasPermission() must be of the type array, null given, called in /home/ibvnhais/public_html/library/Nobita/ScheduledPost/XenForo/Model/Thread.php on line 236 and defined - library/XenForo/Permission.php:27
    Généré par: Santa, il y a 6 minutes
    Trace de la pile
    #0 /home/ibvnhais/public_html/library/XenForo/Permission.php(27): XenForo_Application::handlePhpError(4096, 'Argument 1 pass...', '/home/ibvnhais/...', 27, Array)
    #1 /home/ibvnhais/public_html/library/Nobita/ScheduledPost/XenForo/Model/Thread.php(236): XenForo_Permission::hasPermission(NULL, 'ScheduledPost', 'viewInvisibleTh...')
    #2 /home/ibvnhais/public_html/library/XenForo/Model/Thread.php(849): Nobita_ScheduledPost_XenForo_Model_Thread->canViewThread(Array, Array, NULL, Array, Array)
    #3 /home/ibvnhais/public_html/library/XenForo/Model/ForumWatch.php(269): XenForo_Model_Thread->canViewThreadAndContainer(Array, Array, NULL, Array, Array)
    #4 /home/ibvnhais/public_html/library/XenForo/DataWriter/DiscussionMessage/Post.php(176): XenForo_Model_ForumWatch->sendNotificationToWatchUsersOnMessage(Array, NULL, Array, Array)
    #5 /home/ibvnhais/public_html/library/WidgetFramework/XenForo/DataWriter/DiscussionMessage/Post.php(7): XenForo_DataWriter_DiscussionMessage_Post->_postSaveAfterTransaction()
    #6 /home/ibvnhais/public_html/library/bdCache/XenForo/DataWriter/DiscussionMessage/Post.php(18): WidgetFramework_XenForo_DataWriter_DiscussionMessage_Post->_postSaveAfterTransaction()
    #7 /home/ibvnhais/public_html/library/XenForo/DataWriter.php(1423): bdCache_XenForo_DataWriter_DiscussionMessage_Post->_postSaveAfterTransaction()
    #8 /home/ibvnhais/public_html/library/XenForo/DataWriter/Discussion.php(477): XenForo_DataWriter->save()
    #9 /home/ibvnhais/public_html/library/XenForo/DataWriter/Discussion.php(426): XenForo_DataWriter_Discussion->_saveFirstMessageDw()
    #10 /home/ibvnhais/public_html/library/XenForo/DataWriter.php(1409): XenForo_DataWriter_Discussion->_postSave()
    #11 /home/ibvnhais/public_html/library/XenForo/ControllerPublic/Forum.php(745): XenForo_DataWriter->save()
    #12 /home/ibvnhais/public_html/library/Nobita/ScheduledPost/XenForo/ControllerPublic/Forum.php(20): XenForo_ControllerPublic_Forum->actionAddThread()
    #13 /home/ibvnhais/public_html/library/XenForo/FrontController.php(347): Nobita_ScheduledPost_XenForo_ControllerPublic_Forum->actionAddThread()
    #14 /home/ibvnhais/public_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
    #15 /home/ibvnhais/public_html/index.php(13): XenForo_FrontController->run()
    #16 {main}
    État de la demande
    array(3) {
      ["url"] => string(40) "http://bet-clever.com/nba.f33/add-thread"
      ["_GET"] => array(0) {
      }
      ["_POST"] => array(21) {
        ["title"] => string(14) "NBA 08/02/2015"
        ["message_html"] => string(1051) "<p><img src="http://www.nba.com/media/global/NBA_Twitter_default_logo.gif" class="bbCodeImage LbImage" alt="[IMG]"><br>--------------------------------------------------------------------------------------</p><b><p><b>Blessés NBA :&nbsp;</b><a href="http://www.covers.com/pageLoader/pageLoader.aspx?page=/data/nba/injury/injuries.html&amp;t=0">http://www.covers.com/pageLoader/pageLoader.aspx?page=/data/nba/injury/injuries.html&amp;t=0</a><br><b>Line-ups pour les matchs :&nbsp;</b><a href="http://espn.go.com/nba/depth/_/type/full">http://espn.go.com/nba/depth/_/type/full</a></p></b><br><p></p><b><p><b>Sachez que vous pouvez:</b></p></b><br><ul><li><p><b>Lancer des débats pré-match</b></p></li><li><p><b>Poser vos questions</b></p></li><li><p><b>Soumettre vos suggestions</b></p></li></ul><b><p></p><b><p><b><b>Ce n'est pas uniquement dédié à l'analyse détaillée.&nbsp;<br>Ce sujet vous servira à vous concerter afin de trouver les pronostics les plus appropriés !</b></b></p></b></b><p><br></p><p><br></p>"
        ["_xfRelativeResolver"] => string(43) "http://bet-clever.com/nba.f33/create-thread"
        ["attachment_hash"] => string(32) "3a2bff1e66feda21b81e1a5feef5bad7"
        ["watch_thread"] => string(1) "1"
        ["watch_thread_email"] => string(1) "1"
        ["watch_thread_state"] => string(1) "1"
        ["discussion_open"] => string(1) "1"
        ["_set"] => array(2) {
          ["discussion_open"] => string(1) "1"
          ["sticky"] => string(1) "1"
        }
        ["scheduled_post_enable"] => string(1) "1"
        ["scheduled_type"] => string(9) "invisible"
        ["hour"] => string(1) "3"
        ["minute"] => string(2) "15"
        ["time_format"] => string(2) "PM"
        ["date"] => string(10) "2015-02-06"
        ["forum_target"] => string(2) "33"
        ["poll"] => array(5) {
          ["question"] => string(0) ""
          ["responses"] => array(2) {
            [0] => string(0) ""
            [1] => string(0) ""
          }
          ["max_votes_type"] => string(6) "single"
          ["change_vote"] => string(1) "1"
          ["view_results_unvoted"] => string(1) "1"
        }
        ["_xfToken"] => string(8) "********"
        ["_xfRequestUri"] => string(22) "/nba.f33/create-thread"
        ["_xfNoRedirect"] => string(1) "1"
        ["_xfResponseType"] => string(4) "json"
      }
    }
    I don't understand why cause this group has full rights! :(
    Can someone help me about this?

    Thanks,
     
  2. Mike

    Mike XenForo Developer Staff Member

    That would appear to be an issue with the scheduled post add-on.
     
  3. Betclever

    Betclever Active Member

    It is strange cause I don't have this issue and the other groups can schedule. :(
     

Share This Page