bdImage, Widget Framework

Discussion in '[bd] Widget Framework' started by janslu, Dec 14, 2015.

  1. janslu

    janslu New Member

    Hi,
    I want to use Widget Framework's Feed parser to get last updates from the blog and display them on the forum. I also want to have thumbnails included. But it seems that I cannot use bdimage. I have a huge board and long, long time ago I have lost some attachments in an array disaster. bdImages still tries to rebuild thread thumbnails and throws an error:

    Code:
    XenForo_Exception: bdImage_XenForo_Model_Post::bdImage_getCachedPostById could not find the first post. Please contact pony at xfrocks dot com. array ( 'postId' => 7551, 'posts' => array ( 0 => 1, 1 => 3, 2 => 5, 3 => 7, 4 => 13, 5 => 20, 6 => 31, 7 => 32, 8 => 59, 9 => 60, 10 => 73, 11 => 94, 12 => 95, 13 => 104, 14 => 114, 15 => 134, 16 => 160, 17 => 176, 18 => 181, 19 => 238, 20 => 247, 21 => 280, 22 => 338, 23 => 340, 24 => 343, 25 => 348, 26 => 349, 27 => 408, 28 => 420, 29 => 429, 30 => 434, 31 => 465, 32 => 468, 33 => 480, 34 => 496, 35 => 502, 36 => 541, 37 => 547, 38 => 598, 39 => 675, 40 => 682, 41 => 700, 42 => 708, 43 => 735, 44 => 802, 45 => 885, 46 => 890, 47 => 913, 48 => 924, 49 => 952, 50 => 959, 51 => 961, 52 => 964, 53 => 1020, 54 => 1024, 55 => 1157, 56 => 1166, 57 => 1167, 58 => 1265, 59 => 1545, 60 => 1592, 61 => 1601, 62 => 1620, 63 => 1630, 64 => 1664, 65 => 1667, 66 => 1677, 67 => 1691, 68 => 1752, 69 => 1755, 70 => 1807, 71 => 1826, 72 => 1904, 73 => 1915, 74 => 1954, 75 => 1957, 76 => 1959, 77 => 1960, 78 => 1964, 79 => 1970, 80 => 1982, 81 => 2087, 82 => 2097, 83 => 2098, 84 => 2135, 85 => 2136, 86 => 2158, 87 => 2212, 88 => 2272, 89 => 2279, 90 => 2280, 91 => 2303, 92 => 2325, 93 => 2447, 94 => 2454, 95 => 2455, 96 => 2491, 97 => 2537, 98 => 2539, 99 => 2548, 100 => 2560, 101 => 2581, 102 => 2588, 103 => 2615, 104 => 2703, 105 => 2717, 106 => 2811, 107 => 2831, 108 => 2867, 109 => 2870, 110 => 2884, 111 => 2969, 112 => 3047, 113 => 3151, 114 => 3193, 115 => 3200, 116 => 3290, 117 => 3291, 118 => 3343, 119 => 3386, 120 => 3388, 121 => 3418, 122 => 3461, 123 => 3481, 124 => 3547, 125 => 3813, 126 => 3893, 127 => 3921, 128 => 3922, 129 => 3976, 130 => 3984, 131 => 4003, 132 => 4135, 133 => 4178, 134 => 4302, 135 => 3882, 136 => 4443, 137 => 4798, 138 => 4813, 139 => 4846, 140 => 5040, 141 => 5214, 142 => 5236, 143 => 5238, 144 => 5322, 145 => 5358, 146 => 1195, 147 => 5488, 148 => 5513, 149 => 5516, 150 => 5656, 151 => 5691, 152 => 5714, 153 => 5717, 154 => 5922, 155 => 6071, 156 => 6203, 157 => 6240, 158 => 6338, 159 => 6351, 160 => 6464, 161 => 6559, 162 => 6684, 163 => 6731, 164 => 6850, 165 => 6890, 166 => 7027, 167 => 7098, 168 => 7290, 169 => 7393, 170 => 7530, 171 => 7545, 172 => 7550, ), ) - library/bdImage/XenForo/Model/Post.php:29
    Generated By: janslu, 7 minut temu
    [B]Stack Trace[/B]
    #0 /var/www-testy/test.babyboom.pl/forum/library/bdImage/XenForo/DataWriter/Discussion/Thread.php(22): bdImage_XenForo_Model_Post->bdImage_getCachedPostById(7551)
    #1 /var/www-testy/test.babyboom.pl/forum/library/XenForo/Deferred/Thread.php(44): bdImage_XenForo_DataWriter_Discussion_Thread->rebuildDiscussionCounters()
    #2 /var/www-testy/test.babyboom.pl/forum/library/XenForo/Model/Deferred.php(295): XenForo_Deferred_Thread->execute(Array, Array, 7.4614918231964, '')
    #3 /var/www-testy/test.babyboom.pl/forum/library/XenForo/Model/Deferred.php(429): XenForo_Model_Deferred->runDeferred(Array, 7.4614918231964, '', false)
    #4 /var/www-testy/test.babyboom.pl/forum/library/XenForo/Model/Deferred.php(374): XenForo_Model_Deferred->_runInternal(Array, 7.4614939689636, '', false)
    #5 /var/www-testy/test.babyboom.pl/forum/library/XenForo/ViewRenderer/Abstract.php(352): XenForo_Model_Deferred->run(true, 7.4614939689636)
    #6 /var/www-testy/test.babyboom.pl/forum/library/XenForo/ViewRenderer/Json.php(147): XenForo_ViewRenderer_Abstract::hasManualDeferredToRun()
    #7 /var/www-testy/test.babyboom.pl/forum/library/XenForo/ViewRenderer/Json.php(185): XenForo_ViewRenderer_Json::_addDefaultParams(Array)
    #8 /var/www-testy/test.babyboom.pl/forum/library/XenForo/ViewRenderer/Json.php(37): XenForo_ViewRenderer_Json::jsonEncodeForOutput(Array)
    #9 /var/www-testy/test.babyboom.pl/forum/library/XenForo/FrontController.php(616): XenForo_ViewRenderer_Json->renderRedirect(4, 'http://test.bab...', NULL, Array)
    #10 /var/www-testy/test.babyboom.pl/forum/library/XenForo/FrontController.php(158): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_Redirect), Object(XenForo_ViewRenderer_Json), Array)
    #11 /var/www-testy/test.babyboom.pl/forum/admin.php(13): XenForo_FrontController->run()
    #12 {main}
    [B]Request State[/B]
    array(3) {
    ["url"] => string(54) "http://test.babyboom.pl/forum/admin.php?add-ons/toggle"
    ["_GET"] => array(1) {
    ["add-ons/toggle"] => string(0) ""
    }
    ["_POST"] => array(6) {
    ["exists"] => array(15) {
    ["AvatarGallery"] => string(1) "1"
    ["DevKit"] => string(1) "1"
    ["dpImageProxy"] => string(1) "1"
    ["dpSearch"] => string(1) "1"
    ["metro_theme_management"] => string(1) "1"
    ["PostRating"] => string(1) "1"
    ["tapatalk"] => string(1) "1"
    ["vB4Redir"] => string(1) "1"
    ["XenES"] => string(1) "1"
    ["XenGallery"] => string(1) "1"
    ["adwikipost"] => string(1) "1"
    ["ApanticBestAnswer"] => string(1) "1"
    ["bdImage"] => string(1) "1"
    ["widget_framework"] => string(1) "1"
    ["nobita_Teams"] => string(1) "1"
    }
    ["id"] => array(14) {
    ["AvatarGallery"] => string(1) "1"
    ["DevKit"] => string(1) "1"
    ["dpImageProxy"] => string(1) "1"
    ["dpSearch"] => string(1) "1"
    ["metro_theme_management"] => string(1) "1"
    ["PostRating"] => string(1) "1"
    ["tapatalk"] => string(1) "1"
    ["vB4Redir"] => string(1) "1"
    ["XenES"] => string(1) "1"
    ["XenGallery"] => string(1) "1"
    ["adwikipost"] => string(1) "1"
    ["ApanticBestAnswer"] => string(1) "1"
    ["widget_framework"] => string(1) "1"
    ["nobita_Teams"] => string(1) "1"
    }
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(16) "/forum/admin.php"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
    }
    }
    
    
    Is there any way to
    1. limit bdImage functionality to widgets ONLY
    or
    2. use a different function to create thumbnails?
     
Loading...