Resource icon

Sticky First Post 1.0

No permission to download
What is this error i get when i try to psot a regular topoic?

Argument 1 passed to StickyFirstPost_DataWriter_Discussion_Thread::_discussionPostSave() must be an array, none given, called in /home/rahstyl1/public_html/forum/library/XenForo/DataWriter/Discussion.php on line 453 and defined
  1. XenForo_Application::handlePhpError() in StickyFirstPost/DataWriter/Discussion/Thread.php at line 20
  2. StickyFirstPost_DataWriter_Discussion_Thread->_discussionPostSave() in XenForo/DataWriter/Discussion.php at line453
  3. XenForo_DataWriter_Discussion->_postSave() in XenForo/DataWriter.php at line 1409
  4. XenForo_DataWriter->save() in XenForo/ControllerPublic/Forum.php at line 679
  5. XenForo_ControllerPublic_Forum->actionAddThread() in StickyFirstPost/ControllerPublic/Forum.php at line 29
  6. StickyFirstPost_ControllerPublic_Forum->actionAddThread() in XenForo/FrontController.php at line 347
  7. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
  8. XenForo_FrontController->run() in /home/rahstyl1/public_html/forum/index.php at line 13
 
What is this error i get when i try to psot a regular topoic?

Argument 1 passed to StickyFirstPost_DataWriter_Discussion_Thread::_discussionPostSave() must be an array, none given, called in /home/rahstyl1/public_html/forum/library/XenForo/DataWriter/Discussion.php on line 453 and defined
  1. XenForo_Application::handlePhpError() in StickyFirstPost/DataWriter/Discussion/Thread.php at line 20
  2. StickyFirstPost_DataWriter_Discussion_Thread->_discussionPostSave() in XenForo/DataWriter/Discussion.php at line453
  3. XenForo_DataWriter_Discussion->_postSave() in XenForo/DataWriter.php at line 1409
  4. XenForo_DataWriter->save() in XenForo/ControllerPublic/Forum.php at line 679
  5. XenForo_ControllerPublic_Forum->actionAddThread() in StickyFirstPost/ControllerPublic/Forum.php at line 29
  6. StickyFirstPost_ControllerPublic_Forum->actionAddThread() in XenForo/FrontController.php at line 347
  7. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
  8. XenForo_FrontController->run() in /home/rahstyl1/public_html/forum/index.php at line 13

Same as me got a lod of errors.
It's a shame as I really need this mod for my site
 
New version for XenForo 1.2+ without post stylize (stylization crash message layots, not compatible with resource manager), no TMS required
addon with russian and english installers, and language packs attached in 'language' folder
That's worked great
 
Mh .. were can help me? Xf 1.4.4

HTML:
Server Error

Mysqli prepare error: Not unique table/alias: 'thread'

Zend_Db_Statement_Mysqli->_prepare() in Zend/Db/Statement.php at line 115
Zend_Db_Statement->__construct() in Zend/Db/Adapter/Mysqli.php at line 381
Zend_Db_Adapter_Mysqli->prepare() in Zend/Db/Adapter/Abstract.php at line 478
Zend_Db_Adapter_Abstract->query() in XenForo/Model.php at line 219
XenForo_Model->fetchAllKeyed() in StickyFirstPost/Model/Post.php at line 35
StickyFirstPost_Model_Post->getPostsInThread() in XenForo/ControllerPublic/Thread.php at line 68
XenForo_ControllerPublic_Thread->actionIndex() in ForumAgeRestriction/ControllerPublic/Thread.php at line 57
ForumAgeRestriction_ControllerPublic_Thread->actionIndex() in ThreadBan/ControllerPublic/Thread.php at line 19
ThreadBan_ControllerPublic_Thread->actionIndex() in ExtendedPoll/Extend/ControllerPublic/Thread.php at line 7
ExtendedPoll_Extend_ControllerPublic_Thread->actionIndex() in BestAnswer/ControllerPublic/Thread.php at line 17
BestAnswer_ControllerPublic_Thread->actionIndex() in StickyFirstPost/ControllerPublic/Thread.php at line 57
StickyFirstPost_ControllerPublic_Thread->actionIndex() in WhoHasReadAThread/ControllerPublic/Thread.php at line 4
WhoHasReadAThread_ControllerPublic_Thread->actionIndex() in PostComments/ControllerPublic/Thread.php at line 8
PostComments_ControllerPublic_Thread->actionIndex() in VfcodersHH/ControllerPublic/Thread.php at line 55
VfcodersHH_ControllerPublic_Thread->actionIndex() in HidePollResults/ControllerPublic/Thread.php at line 12
HidePollResults_ControllerPublic_Thread->actionIndex() in Andy/SimilarThreads/ControllerPublic/Thread.php at line 12
Andy_SimilarThreads_ControllerPublic_Thread->actionIndex() in AnonymousPosting/ControllerPublic/Thread.php at line 7
AnonymousPosting_ControllerPublic_Thread->actionIndex() in XenForo/FrontController.php at line 347
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
XenForo_FrontController->run() in /////index.php at line 13
 
Mh .. were can help me? Xf 1.4.4

HTML:
Server Error

Mysqli prepare error: Not unique table/alias: 'thread'

Zend_Db_Statement_Mysqli->_prepare() in Zend/Db/Statement.php at line 115
Zend_Db_Statement->__construct() in Zend/Db/Adapter/Mysqli.php at line 381
Zend_Db_Adapter_Mysqli->prepare() in Zend/Db/Adapter/Abstract.php at line 478
Zend_Db_Adapter_Abstract->query() in XenForo/Model.php at line 219
XenForo_Model->fetchAllKeyed() in StickyFirstPost/Model/Post.php at line 35
StickyFirstPost_Model_Post->getPostsInThread() in XenForo/ControllerPublic/Thread.php at line 68
XenForo_ControllerPublic_Thread->actionIndex() in ForumAgeRestriction/ControllerPublic/Thread.php at line 57
ForumAgeRestriction_ControllerPublic_Thread->actionIndex() in ThreadBan/ControllerPublic/Thread.php at line 19
ThreadBan_ControllerPublic_Thread->actionIndex() in ExtendedPoll/Extend/ControllerPublic/Thread.php at line 7
ExtendedPoll_Extend_ControllerPublic_Thread->actionIndex() in BestAnswer/ControllerPublic/Thread.php at line 17
BestAnswer_ControllerPublic_Thread->actionIndex() in StickyFirstPost/ControllerPublic/Thread.php at line 57
StickyFirstPost_ControllerPublic_Thread->actionIndex() in WhoHasReadAThread/ControllerPublic/Thread.php at line 4
WhoHasReadAThread_ControllerPublic_Thread->actionIndex() in PostComments/ControllerPublic/Thread.php at line 8
PostComments_ControllerPublic_Thread->actionIndex() in VfcodersHH/ControllerPublic/Thread.php at line 55
VfcodersHH_ControllerPublic_Thread->actionIndex() in HidePollResults/ControllerPublic/Thread.php at line 12
HidePollResults_ControllerPublic_Thread->actionIndex() in Andy/SimilarThreads/ControllerPublic/Thread.php at line 12
Andy_SimilarThreads_ControllerPublic_Thread->actionIndex() in AnonymousPosting/ControllerPublic/Thread.php at line 7
AnonymousPosting_ControllerPublic_Thread->actionIndex() in XenForo/FrontController.php at line 347
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
XenForo_FrontController->run() in /////index.php at line 13
Yes, use this one:
https://xenforo.com/community/resources/sticky-first-post.3763/
 
  • Like
Reactions: Xon
In order to fix this issue on xf 1.5.4 (can't verify with a newer version):

Declaration of StickyFirstPost_DataWriter_Discussion_Thread::_discussionPostSave(array $messages) should be compatible with XenForo_DataWriter_Discussion_Thread::_discussionPostSave()

Open library/StickyFirstPost/DataWriter/Discussion/Thread.php and change _discussionPostSave function to:

protected function _discussionPostSave()
{
parent::_discussionPostSave();
$threadId = $this->get('thread_id');
XenForo_Application::set('last_thread',$threadId);
}

Works fine for me then.
 
Hi everyone,
Have anyone experienced that some sticky posts are unsticked by themselves occasionally?
 
Top Bottom