• 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
    • HTML side-block not working

    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: HTML side-block not working

    • Issue Tools
      • View Changes
    1. issueid=4294 May 12, 2015 4:39 AM
      hollosch hollosch is offline
      Senior Member
      HTML side-block not working

      Hi,
      i want to create a new sidebar-block (html) and display this block only in one area.

      But this is not working. After saving, the html-content is not saved an the block is not in the area:

      HTML Code:
      <ul>
        <li><a title="" href="http://geislingen.net/artikel/category/tischtennis-bezirk-staufen.18/">AKTUELLES UND BERICHTE AUS DEM BEZIRK</a><br>
        </li>
        <li>ADRESSEN
          <ul>
            <li>KLASSENLEITER</li>
            <li>VORSTAND</li>
            <li><a data-link-cache="0-vereine" data-link-preview="0_vereine" href="http://geislingen.net/wiki/Vereine" title="VEREINE" target="_blank">VEREINE</a></li>
          </ul>
        </li>
        <li>SERVICE
          <ul>
            <li><a data-link-cache="0-bezirksordnung" data-link-preview="0_bezirksordnung" href="http://geislingen.net/wiki/Bezirksordnung" title="BEZIRKSORDNUNG">BEZIRKSORDNUNG</a></li>
          </ul>
          <ul>
            <li>BILDER</li>
          </ul>
          <ul>
            <li>FORUM</li>
          </ul>
          <ul>
            <li>ERGEBNISSE
              <ul>
                <li>MANNSCHAFTSSPORT</li>
                <li>POKAL</li>
                <li>EINZELWETTBEWERBE</li>
                <li>TURNIERE</li>
                <li>VERBAND</li>
              </ul>
            </li>
            <li>LINKS</li>
          </ul>
        </li>
        <li>TERMINE</li>
      </ul>
      What can be the problem ?
    Issue Details
    Issue Number 4294
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Widgets / Sideblocks
    Status Duplicate
    Priority 1 - Security / Login / Data Loss
    Affected Version 4.0.3
    Fixed Version (none)
    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. May 12, 2015 8:48 AM
      pegasus pegasus is offline
      VaultWiki Team
      Please see this post for a solution: https://www.vaultwiki.org/issues/4290/#note23393
      Reply Reply
    2. May 12, 2015 10:55 AM
      hollosch hollosch is offline
      Senior Member
      Quote Originally Posted by pegasus
      Please see this post for a solution: https://www.vaultwiki.org/issues/4290/#note23393
      Hi, i do the changes,
      then following issue occurs:

      Code:
      ErrorException: Object of class vw_DM_Controller_XF could not be converted to string - vault/core/controller/cp/block/base/vw.php:81
      Generiert durch: hollosch, Vor einem Moment
      Stapelverfolgung
      
      #0 /../vault/core/controller/cp/block/base/vw.php(81): XenForo_Application::handlePhpError(4096, 'Object of class...', '/var/www/vhosts...', 81, Array)
      #1 /../vault/core/controller/cp/block/vw.php(372): vw_CP_Block_Base_Controller->save()
      #2 /../vault/core/controller/cp/block/vw.php(96): vw_CP_Block_Controller->save()
      #3 /../library/vw/XenForo/ControllerAdmin/Wiki.php(113): vw_CP_Block_Controller->execute('save', 'post')
      #4 /../library/XenForo/FrontController.php(347): vw_XenForo_ControllerAdmin_Wiki->actionIndex()
      #5 /../library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
      #6 /../admin.php(13): XenForo_FrontController->run()
      #7 {main}
      
      Benötigter Status
      
      array(3) {
        ["url"] => string(57) "http://geislingen.net/admin.php?wiki/&panel=block&do=save"
        ["_GET"] => array(3) {
          ["wiki/"] => string(0) ""
          ["panel"] => string(5) "block"
          ["do"] => string(4) "save"
        }
        ["_POST"] => array(13) {
          ["panel"] => string(5) "block"
          ["do"] => string(4) "save"
          ["_xfToken"] => string(8) "********"
          ["blockid"] => string(2) "12"
          ["varname"] => string(12) "ttnavigation"
          ["title"] => string(10) "Navigation"
          ["productid"] => string(0) ""
          ["active"] => string(1) "1"
          ["random"] => string(1) "0"
          ["position"] => string(6) "middle"
          ["content"] => string(1025) "<ul>
        <li><a title="" href="http://geislingen.net/artikel/category/tischtennis-bezirk-staufen.18/">AKTUELLES UND BERICHTE AUS DEM BEZIRK</a><br>
        </li>
        <li>ADRESSEN
          <ul>
            <li>KLASSENLEITER</li>
            <li>VORSTAND</li>
            <li><a data-link-cache="0-vereine" data-link-preview="0_vereine" href="http://geislingen.net/wiki/Vereine" title="VEREINE" target="_blank">VEREINE</a></li>
          </ul>
        </li>
        <li>SERVICE
          <ul>
            <li><a data-link-cache="0-bezirksordnung" data-link-preview="0_bezirksordnung" href="http://geislingen.net/wiki/Bezirksordnung" title="BEZIRKSORDNUNG">BEZIRKSORDNUNG</a></li>
          </ul>
          <ul>
            <li>BILDER</li>
          </ul>
          <ul>
            <li>FORUM</li>
          </ul>
          <ul>
            <li>ERGEBNISSE
              <ul>
                <li>MANNSCHAFTSSPORT</li>
                <li>POKAL</li>
                <li>EINZELWETTBEWERBE</li>
                <li>TURNIERE</li>
                <li>VERBAND</li>
              </ul>
            </li>
            <li>LINKS</li>
          </ul>
        </li>
        <li>TERMINE</li>
      </ul>"
          ["submit"] => string(9) "Speichern"
          ["url"] => string(49) "http://geislingen.net/admin.php?wiki/&panel=block"
        }
      }
      I think the problem is not a empty block, but the html-code i insert is NOT saved !!!
      Reply Reply
    3. May 12, 2015 11:04 AM
      pegasus pegasus is offline
      VaultWiki Team
      The HTML code is saved, but it is not readable. It can't read it, so it thinks it's empty.

      The changes in that other post make it readable again. It worked on my site yesterday when I had the problem with Recent Activity not being readable.

      None of the edits convert a DM to a string. I can only guess that you made the edits wrong.
      Reply Reply
    4. May 12, 2015 11:09 AM
      hollosch hollosch is offline
      Senior Member
      OK, i'll check it again....
      Reply Reply
    5. May 12, 2015 11:22 AM
      hollosch hollosch is offline
      Senior Member
      I checked it again - It doesn't work....
      Reply Reply
    6. May 12, 2015 11:25 AM
      hollosch hollosch is offline
      Senior Member
      And now it's not possible to save the block without an error...
      Reply Reply
    7. May 12, 2015 1:46 PM
      pegasus pegasus is offline
      VaultWiki Team
      What is your line 81?
      Reply Reply
    8. May 12, 2015 3:45 PM
      hollosch hollosch is offline
      Senior Member
      Quote Originally Posted by pegasus
      What is your line 81?
      Code:
      $$blockdm->set('data', json_encode($data));
      Reply Reply
    9. May 12, 2015 3:46 PM
      pegasus pegasus is offline
      VaultWiki Team
      You have too many $ at the beginning of the line. There should only be one.
      Reply Reply
    10. May 12, 2015 3:50 PM
      hollosch hollosch is offline
      Senior Member
      Quote Originally Posted by pegasus
      You have too many $ at the beginning of the line. There should only be one.
      Ok, next issue:

      Code:
      ErrorException: array_merge(): Argument #1 is not an array - vault/core/model/block/vw.php:217
      Generiert durch: hollosch, Vor einem Moment
      Stapelverfolgung
      
      #0 [internal function]: XenForo_Application::handlePhpError(2, 'array_merge(): ...', '/var/www/vhosts...', 217, Array)
      #1 /../vault/core/model/block/vw.php(217): array_merge(NULL, Array)
      #2 /../vault/core/model/rebuild/vw.php(100): vw_Block_Model->unpack(Array)
      #3 /../vault/core/controller/dm/block/vw.php(203): vw_Rebuild_Model->blocks()
      #4 /../vault/core/controller/dm/block/vw.php(172): vw_DM_Block_Controller->build_blockcache()
      #5 /../library/vw/XenForo/DataWriter.php(456): vw_DM_Block_Controller->post_save_each()
      #6 /../library/XenForo/DataWriter.php(1409): vw_XenForo_DataWriter->_postSave()
      #7 /../vault/core/controller/dm/xf.php(400): XenForo_DataWriter->save()
      #8 /../vault/core/controller/cp/block/base/vw.php(87): vw_DM_Controller_XF->save()
      #9 /../vault/core/controller/cp/block/vw.php(372): vw_CP_Block_Base_Controller->save()
      #10 /../vault/core/controller/cp/block/vw.php(96): vw_CP_Block_Controller->save()
      #11 /../library/vw/XenForo/ControllerAdmin/Wiki.php(113): vw_CP_Block_Controller->execute('save', 'post')
      #12 /../library/XenForo/FrontController.php(347): vw_XenForo_ControllerAdmin_Wiki->actionIndex()
      #13 /../library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
      #14 /../admin.php(13): XenForo_FrontController->run()
      #15 {main}
      
      Benötigter Status
      
      array(3) {
        ["url"] => string(57) "http://geislingen.net/admin.php?wiki/&panel=block&do=save"
        ["_GET"] => array(3) {
          ["wiki/"] => string(0) ""
          ["panel"] => string(5) "block"
          ["do"] => string(4) "save"
        }
        ["_POST"] => array(13) {
          ["panel"] => string(5) "block"
          ["do"] => string(4) "save"
          ["_xfToken"] => string(8) "********"
          ["blocktypeid"] => string(1) "8"
          ["varname"] => string(12) "ttnavigation"
          ["title"] => string(10) "Navigation"
          ["productid"] => string(0) ""
          ["active"] => string(1) "1"
          ["random"] => string(1) "0"
          ["position"] => string(5) "first"
          ["content"] => string(1025) "<ul>
        <li><a title="" href="http://geislingen.net/artikel/category/tischtennis-bezirk-staufen.18/">AKTUELLES UND BERICHTE AUS DEM BEZIRK</a><br>
        </li>
        <li>ADRESSEN
          <ul>
            <li>KLASSENLEITER</li>
            <li>VORSTAND</li>
            <li><a data-link-cache="0-vereine" data-link-preview="0_vereine" href="http://geislingen.net/wiki/Vereine" title="VEREINE" target="_blank">VEREINE</a></li>
          </ul>
        </li>
        <li>SERVICE
          <ul>
            <li><a data-link-cache="0-bezirksordnung" data-link-preview="0_bezirksordnung" href="http://geislingen.net/wiki/Bezirksordnung" title="BEZIRKSORDNUNG">BEZIRKSORDNUNG</a></li>
          </ul>
          <ul>
            <li>BILDER</li>
          </ul>
          <ul>
            <li>FORUM</li>
          </ul>
          <ul>
            <li>ERGEBNISSE
              <ul>
                <li>MANNSCHAFTSSPORT</li>
                <li>POKAL</li>
                <li>EINZELWETTBEWERBE</li>
                <li>TURNIERE</li>
                <li>VERBAND</li>
              </ul>
            </li>
            <li>LINKS</li>
          </ul>
        </li>
        <li>TERMINE</li>
      </ul>"
          ["submit"] => string(9) "Speichern"
          ["url"] => string(49) "http://geislingen.net/admin.php?wiki/&panel=block"
        }
      }
      Reply Reply
    11. May 12, 2015 3:53 PM
      pegasus pegasus is offline
      VaultWiki Team
      In vault/core/model/block/vw.php, find:
      Code:
      if (!empty($blockinfo['defaults']))
      Before it, add:
      Code:
      $data = array();
      Reply Reply
    12. May 12, 2015 3:57 PM
      hollosch hollosch is offline
      Senior Member
      Now it seems to work! thanks!
      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 7:40 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.