• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
    • Wiki
    • Support
      • Manage Subscriptions
      • FAQ
      • Support For
        • VaultWiki 4.x Series
        • VaultWiki.org Site
    • What's New?
    • Buy Now
    • Manual
    • 
    • Support
    • VaultWiki 4.x Series
    • Bug
    • Icon data insufficient application layer error handling

    1. Welcome to VaultWiki.org, home of the wiki add-on for vBulletin and XenForo!

      VaultWiki allows your existing forum users to collaborate on creating and managing a site's content pages. VaultWiki is a fully-featured and fully-supported wiki solution for vBulletin and XenForo.

      The VaultWiki Team encourages you to join our community of forum administrators and check out VaultWiki for yourself.

    Issue: Icon data insufficient application layer error handling

    • Issue Tools
      • View Changes
    1. issueid=5700 April 4, 2019 2:17 AM
      expanserpb expanserpb is offline
      Junior Member
      Icon data insufficient application layer error handling

      Think there needs to be something here to tell users what is wrong before they get given server errors. Happens quite frequently that users copy the wrong format Url with a session token etc and presented with a generic server error.
      Code:
      Zend_Db_Statement_Mysqli_Exception: Mysqli statement execute error : Data too long for column 'icondata' at row 1 - library/Zend/Db/Statement/Mysqli.php:214
      Generated By: Hera, Tuesday at 7:33 PM
      Stack Trace
      #0 /var/www/html/library/Zend/Db/Statement.php(297): Zend_Db_Statement_Mysqli->_execute(Array)
      #1 /var/www/html/library/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
      #2 /var/www/html/library/Zend/Db/Adapter/Abstract.php(574): Zend_Db_Adapter_Abstract->query('INSERT INTO `vw...', Array)
      #3 /var/www/html/library/XenForo/DataWriter.php(1638): Zend_Db_Adapter_Abstract->insert('vw_revision', Array)
      #4 /var/www/html/library/XenForo/DataWriter.php(1627): XenForo_DataWriter->_insert()
      #5 /var/www/html/library/vw/XenForo/DataWriter.php(373): XenForo_DataWriter->_save()
      #6 /var/www/html/library/XenForo/DataWriter.php(1419): vw_XenForo_DataWriter->_save()
      #7 /var/www/html/vault/core/controller/dm/xf.php(431): XenForo_DataWriter->save()
      #8 /var/www/html/vault/core/controller/dm/page/vw.php(1949): vw_DM_Controller_XF->save()
      #9 /var/www/html/vault/core/controller/dm/page/vw.php(1549): vw_DM_Page_Controller->save_revision()
      #10 /var/www/html/library/vw/XenForo/DataWriter.php(515): vw_DM_Page_Controller->post_save_each()
      #11 /var/www/html/library/XenForo/DataWriter.php(1423): vw_XenForo_DataWriter->_postSave()
      #12 /var/www/html/vault/core/controller/dm/xf.php(431): XenForo_DataWriter->save()
      #13 /var/www/html/vault/core/controller/ui/edit/vw.php(228): vw_DM_Controller_XF->save()
      #14 /var/www/html/vault/core/controller/ui/create/vw.php(303): vw_UI_Edit_Controller->save(Object(vw_UI_Area_Controller))
      #15 /var/www/html/vault/core/controller/ui/area/vw.php(152): vw_UI_Create_Controller->publish(Object(vw_UI_Area_Controller))
      #16 /var/www/html/vault/core/controller/ui/area/vw.php(44): vw_UI_Area_Controller->publish()
      #17 /var/www/html/vault/core/controller/ui/stack/vw.php(276): vw_UI_Area_Controller->execute()
      #18 /var/www/html/library/vw/XenForo/ControllerPublic/Wiki.php(70): vw_UI_Stack_Controller->execute()
      #19 /var/www/html/library/XenForo/FrontController.php(369): vw_XenForo_ControllerPublic_Wiki->actionIndex()
      #20 /var/www/html/library/XenForo/FrontController.php(152): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
      #21 /var/www/html/index.php(13): XenForo_FrontController->run()
      #22 {main}
      Request State
      array(3) {
        ["url"] => string(68) "https://chroniclesrp.net/Folklore/Characters?do=publish&itemtypeid=1"
        ["_GET"] => array(2) {
          ["do"] => string(7) "publish"
          ["itemtypeid"] => string(1) "1"
        }
        ["_POST"] => array(23) {
          ["message_html"] => string(1327) "<p>[template]Infobox_character</p><p>|image= https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/f/cf910194-d9dd-4526-b254-320c95b137db/dba8x01-e81487e6-45cf-4d6f-a17b-673bb40cc140.png/v1/fill/w_1095,h_730,q_70,strp/portrait_study_by_minnhsg_dba8x01-pre.jpg?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1cm46YXBwOjdlMGQxODg5ODIyNjQzNzNhNWYwZDQxNWVhMGQyNmUwIiwiaXNzIjoidXJuOmFwcDo3ZTBkMTg4OTgyMjY0MzczYTVmMGQ0MTVlYTBkMjZlMCIsIm9iaiI6W1t7ImhlaWdodCI6Ijw9MTA2NyIsInBhdGgiOiJcL2ZcL2NmOTEwMTk0LWQ5ZGQtNDUyNi1iMjU0LTMyMGM5NWIxMzdkYlwvZGJhOHgwMS1lODE0ODdlNi00NWNmLTRkNmYtYTE3Yi02NzNiYjQwY2MxNDAucG5nIiwid2lkdGgiOiI8PTE2MDAifV1dLCJhdWQiOlsidXJuOnNlcnZpY2U6aW1hZ2Uub3BlcmF0aW9ucyJdfQ.8EPbv6qNtVdOfj1GFuHvQOnUp-KkEY7Zf8Vo7bn6bu8</p><p>|name= Hera</p><p>|birthplace=</p><p>|age=20's</p><p>|home=The road</p><p>|race= Human</p><p>|gender= Female</p><p>|height= Medium</p><p>|mass= Soft</p><p>|hair= Ashy </p><p>|eyes= Blue</p><p>|skin= Cream</p><p>|affiliation= We need a name, guys</p><p>|occupation=Wild card psion/con artist</p><p>|writer=</p><p>|created=</p><p>|avatar= <a href="https://www.deviantart.com/minnhsg/art/Portrait-Study-682340113" target="_blank" class="externalLink ProxyLink" data-proxy-href="https://www.deviantart.com/minnhsg/art/Portrait-Study-682340113" rel="nofollow">Source</a></p><p>[/template]</p>
      "
          ["_xfRelativeResolver"] => string(68) "https://chroniclesrp.net/Folklore/Characters?do=publish&itemtypeid=1"
          ["query"] => string(0) ""
          ["prefixid"] => string(1) "0"
          ["edittitle"] => string(4) "Hera"
          ["typelist"] => array(1) {
            [14] => string(1) "0"
          }
          ["itemlangid"] => string(1) "1"
          ["fonticon"] => string(4) "f016"
          ["icontype"] => string(1) "u"
          ["iconurl"] => string(686) "https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/f/cf910194-d9dd-4526-b254-320c95b137db/dba8x01-e81487e6-45cf-4d6f-a17b-673bb40cc140.png/v1/fill/w_1095,h_730,q_70,strp/portrait_study_by_minnhsg_dba8x01-pre.jpg?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1cm46YXBwOjdlMGQxODg5ODIyNjQzNzNhNWYwZDQxNWVhMGQyNmUwIiwiaXNzIjoidXJuOmFwcDo3ZTBkMTg4OTgyMjY0MzczYTVmMGQ0MTVlYTBkMjZlMCIsIm9iaiI6W1t7ImhlaWdodCI6Ijw9MTA2NyIsInBhdGgiOiJcL2ZcL2NmOTEwMTk0LWQ5ZGQtNDUyNi1iMjU0LTMyMGM5NWIxMzdkYlwvZGJhOHgwMS1lODE0ODdlNi00NWNmLTRkNmYtYTE3Yi02NzNiYjQwY2MxNDAucG5nIiwid2lkdGgiOiI8PTE2MDAifV1dLCJhdWQiOlsidXJuOnNlcnZpY2U6aW1hZ2Uub3BlcmF0aW9ucyJdfQ.8EPbv6qNtVdOfj1GFuHvQOnUp-KkEY7Zf8Vo7bn6bu8"
          ["_xfToken"] => string(8) "********"
          ["do"] => string(7) "publish"
          ["itemtypeid"] => string(1) "1"
          ["areaid"] => string(1) "6"
          ["section"] => string(1) "0"
          ["posthash"] => string(32) "fe097b657a40d37c88fb7538ec146804"
          ["poststarttime"] => string(10) "1554230025"
          ["revparentid"] => string(1) "0"
          ["loggedinuser"] => string(3) "968"
          ["sbutton"] => string(15) "Create New Page"
          ["parseurl"] => string(1) "1"
          ["notifytype"] => string(1) "0"
          ["sub_options"] => array(2) {
            ["item_edits"] => string(1) "1"
            ["item_comments"] => string(1) "1"
          }
        }
      }
    Issue Details
    Issue Number 5700
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Unknown
    Status Fixed
    Priority 4 - Warnings / Script Errors
    Affected Version 4.0.25
    Fixed Version 4.1.0 Beta 1
    Milestone (none)
    Software DependencyXenForo 1.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. April 4, 2019 10:37 AM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed in 4.0.26 by truncating URLs longer than the column length (253), which emulates the vBulletin behavior in XenForo.

      In the next 4.1.x release, we increase the length to 2,047 which is just below the maximum length URL that can be included in a sitemap, according to sitemap specifications. URLs larger than this will throw an error.

      In vault/core/controller/dm/base/vw.php, find:
      Code:
      curl_setopt($ch, CURLOPT_URL, $icon);
      BEFORE it, add:
      Code:
      $icon = substr($icon, 0, 253);
      Reply Reply  
    2. April 7, 2019 11:12 AM
      expanserpb expanserpb is offline
      Junior Member
      That change just does this

      The url was: https://i.imgur.com/qupfzCr.png
      Reply Reply  
    3. April 7, 2019 7:26 PM
      pegasus pegasus is offline
      VaultWiki Team
      Edited above add code, sorry for the typo.
      Reply Reply  
    + Reply

    Assigned Users
    Loading Please Wait
    Tags
    Loading Please Wait
    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 1:28 PM.
    This site uses cookies to help personalize content, to 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.
    Learn more… Accept Remind me later
  • striker
    Powered by vBulletin® Version 4.2.5 Beta 2
    Copyright © 2025 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
    Copyright © 2008 - 2024 VaultWiki Team, Cracked Egg Studios, LLC.