Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

Fixed Errorlog: getMaxAllowedAttachmentsPerItem() on null

Discussion in 'Showcase Resolved Bug Reports' started by Hoib3rgA, Jan 14, 2021.

  1. Hoib3rgA

    Hoib3rgA New Member Showcase

    i run a new installation of XenForo 2.2 an imegrated a vB-forum in XF.
    Today ist my "roll out" with the Board.

    One User uploaded an image to the Showcase, wich get me an error at the acp:

    Error: Call to a member function getMaxAllowedAttachmentsPerItem() on null src/addons/XenAddons/Showcase/Attachment/Item.php:57
    #0 src/XF/Repository/Attachment.php(21): XenAddons\Showcase\Attachment\Item->getConstraints(Array)
    #1 src/addons/XenAddons/Showcase/Pub/Controller/Category.php(491): XF\Repository\Attachment->getEditorData('sc_item', Object(Siropu\KeywordLinking\XenAddons\Showcase\Entity\Item), '252ea63d09344fd...')
    #2 src/XF/Mvc/Dispatcher.php(350): XenAddons\Showcase\Pub\Controller\Category->actionPreview(Object(XF\Mvc\ParameterBag))
    #3 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('XenAddons\\Showc...', 'Preview', Object(XF\Mvc\RouteMatch), Object(XenAddons\Showcase\Pub\Controller\Category), NULL)
    #4 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XenAddons\Showcase\Pub\Controller\Category), NULL)
    #5 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
    #6 src/XF/App.php(2300): XF\Mvc\Dispatcher->run()
    #7 src/XF.php(488): XF\App->run()
    #8 index.php(20): XF::runApp('XF\\Pub\\App')
    #9 {main}
    Status der Anfrage
    array(4) {
      ["url"] => string(49) "/index.php?showcase/categories/zafira-b.3/preview"
      ["referrer"] => string(71) "http://www.zafira-forum.de/index.php?showcase/categories/zafira-b.3/add"
      ["_GET"] => array(1) {
        ["showcase/categories/zafira-b_3/preview"] => string(0) ""
      ["_POST"] => array(17) {
        ["title"] => string(19) "ChiantiĀ“s Zafira B"
        ["description"] => string(41) "gekauft als Familien und Langstreckenauto"
        ["message_html"] => string(0) ""
        ["attachment_hash"] => string(32) "252ea63d09344fd5fd4f602dc7a5fef4"
        ["attachment_hash_combined"] => string(88) "{"type":"sc_item","context":{"category_id":3},"hash":"252ea63d09344fd5fd4f602dc7a5fef4"}"
        ["message_s2_html"] => string(13) "<p>A17DTR</p>"
        ["message_s3_html"] => string(0) ""
        ["message_s4_html"] => string(0) ""
        ["message_s5_html"] => string(86) "<p>Leichtmetallfelge 7,5J x 17 im 5-Breitspeichen-Design</p><p>mit Fulda 225/45R17</p>"
        ["cover_image_above_item"] => string(1) "1"
        ["comments_open"] => string(1) "1"
        ["ratings_open"] => string(1) "1"
        ["poll"] => array(5) {
          ["question"] => string(0) ""
          ["new_responses"] => array(1) {
            [0] => string(0) ""
          ["max_votes_type"] => string(6) "single"
          ["change_vote"] => string(1) "1"
          ["view_results_unvoted"] => string(1) "1"
        ["_xfToken"] => string(8) "********"
        ["_xfRequestUri"] => string(45) "/index.php?showcase/categories/zafira-b.3/add"
        ["_xfWithData"] => string(1) "1"
        ["_xfResponseType"] => string(4) "json"
    Some info about my server:
    PHP-Version    7.3.26
    MySQL-Version    10.3.27 (10.3.27-MariaDB-1:10.3.27+maria~stretch)
    PHP memory_limit    256M
    PHP post_max_size    32M
    PHP upload_max_filesize    32M
    PHP max_input_vars    1000
    PHP max_execution_time    30
  2. Bob

    Bob Developer Staff Member

    This was reported a few days ago and has already been fixed in the upcoming maintenance release (SC 3.2.4). It only happens when creating a new item and clicking on the Preview Function of the editor (it is an error in the preview action only).

    SC 3.2.4 will be rolled out after the upcoming XenForo release (XF 2.2.3) which should be any day now.
    Hoib3rgA likes this.
  3. Hoib3rgA

    Hoib3rgA New Member Showcase

    Thanks for this info!
    Bob likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.