What's new
Xen Factory

Register today to become a member! Once signed in, you'll be able to start purchasing our products, ask questions, request support and suggest new ideas!

  • This area is dedicated to the support of our xF1 add-ons. For xF2, please use the dedicated area: HERE.

Bug Fixed Server Error when trying to Save a thread in forum_view

Freelancer

Member
When I try to save a forum sales thread in the quick menu of the forum_view (where all threads are listed) I get the following server error...

Code:
Error Info
A discussion insert was attempted without the required first message. - library/XenForo/DataWriter/Discussion.php:308

Stack Trace
#0 /var/www/clients/client180/web812/web/library/XenForo/DataWriter.php(1460): XenForo_DataWriter_Discussion->_preSave()
#1 /var/www/clients/client180/web812/web/library/XenForo/DataWriter.php(1399): XenForo_DataWriter->preSave()
#2 /var/www/clients/client180/web812/web/library/XFA/ForumSales/Extends/ControllerPublic/Thread.php(115): XenForo_DataWriter->save()
#3 /var/www/clients/client180/web812/web/library/XenForo/FrontController.php(351): XFA_ForumSales_Extends_ControllerPublic_Thread->actionSave()
#4 /var/www/clients/client180/web812/web/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#5 /var/www/clients/client180/web812/web/index.php(13): XenForo_FrontController->run()
#6 {main}

Request State
Array
(
    [url] => https://www.xxxxxxxxxxxxxxxxxxxx.com/threads/xxxxxxxxxxxxxxxxxxxx/save
    [_GET] => Array
        (
            [/threads/xxxxxxxxxxxxxxxxxxxx/save] => 
        )

    [_POST] => Array
        (
            [team_id] => 
            [prefix_id] => 73
            [title] => xxxxxxxxxxxxxxxxxxxx
            [discussion_state] => visible
            [showForumLink] => 
            [_xfToken] => ********
            [_returnDiscussionListItem] => 1
            [_xfRequestUri] => /forums/gear-trade/
            [_xfNoRedirect] => 1
            [_xfResponseType] => json
        )

)

In addition to that I get other errors:

Code:
Error Info
Undefined property: XenForo_ControllerResponse_View::$redirectType - library/XFA/ForumSales/Extends/ControllerPublic/Thread.php:54

Stack Trace
#0 /var/www/clients/client180/web812/web/library/XFA/ForumSales/Extends/ControllerPublic/Thread.php(54): XenForo_Application::handlePhpError(8, 'Undefined prope...', '/var/www/client...', 54, Array)
#1 /var/www/clients/client180/web812/web/library/XenForo/FrontController.php(351): XFA_ForumSales_Extends_ControllerPublic_Thread->actionSave()
#2 /var/www/clients/client180/web812/web/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#3 /var/www/clients/client180/web812/web/index.php(13): XenForo_FrontController->run()
#4 {main}

Request State
Array
(
    [url] => https://www.xxxxxxxxxxxxxxxxxxxx.com/threads/xxxxxxxxxxxxxxxxxxxx/save
    [_GET] => Array
        (
            [/threads/xxxxxxxxxxxxxxxxxxxx/save] => 
        )

    [_POST] => Array
        (
            [team_id] => 
            [prefix_id] => 73
            [title] => xxxxxxxxxxxxxxxxxxxx
            [discussion_state] => visible
            [showForumLink] => 
            [_xfToken] => ********
            [_returnDiscussionListItem] => 1
            [_xfRequestUri] => /forums/gear-trade/
            [_xfNoRedirect] => 1
            [_xfResponseType] => json
        )

)

Code:
Error Info
Undefined variable: thread - library/XFA/ForumSales/Extends/ControllerPublic/Thread.php:59

Stack Trace
#0 /var/www/clients/client180/web812/web/library/XFA/ForumSales/Extends/ControllerPublic/Thread.php(59): XenForo_Application::handlePhpError(8, 'Undefined varia...', '/var/www/client...', 59, Array)
#1 /var/www/clients/client180/web812/web/library/XenForo/FrontController.php(351): XFA_ForumSales_Extends_ControllerPublic_Thread->actionSave()
#2 /var/www/clients/client180/web812/web/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#3 /var/www/clients/client180/web812/web/index.php(13): XenForo_FrontController->run()
#4 {main}

Request State
Array
(
    [url] => https://wwwxxxxxxxxxxxxxxxxxxxx.com/threads/xxxxxxxxxxxxxxxxxxxx/save
    [_GET] => Array
        (
            [/threads/xxxxxxxxxxxxxxxxxxxx/save] => 
        )

    [_POST] => Array
        (
            [team_id] => 
            [prefix_id] => 73
            [title] => xxxxxxxxxxxxxxxxxxxx
            [discussion_state] => visible
            [showForumLink] => 
            [_xfToken] => ********
            [_returnDiscussionListItem] => 1
            [_xfRequestUri] => /forums/gear-trade/
            [_xfNoRedirect] => 1
            [_xfResponseType] => json
        )

)

I "Xed-out" private infos...
 
Top