• 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
    • New post on a thread results in error

    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: New post on a thread results in error

    • Issue Tools
      • View Changes
    1. issueid=3209 July 17, 2013 1:15 PM
      rizwank rizwank is offline
      New Member
      New post on a thread results in error

      Code:
      ErrorException: Undefined index: max - /var/www/html/forum/vault/core/model/block/similar/xf.php:52
      Generated By: ***, 31 minutes ago
      Stack Trace
      #0 /var/www/html/forum/vault/core/model/block/similar/xf.php(52): XenForo_Application::handlePhpError(8, 'Undefined index...', '/var/www/html/f...', 52, Array)
      #1 /var/www/html/forum/vault/core/model/block/similar/xf.php(23): vw_Block_Similar_Model_XF->similar_ids('thread', 'Wiki Test Threa...')
      #2 /var/www/html/forum/vault/core/model/block/similar/vw.php(52): vw_Block_Similar_Model_XF->similar_threads(Array)
      #3 /var/www/html/forum/vault/core/view/factory/block/vw.php(99): vw_Block_Similar_Model->make(Array)
      #4 /var/www/html/forum/vault/core/view/factory/block/vw.php(61): vw_Factory_Block_View->make('similar', Array, Array)
      #5 /var/www/html/forum/vault/core/view/ui/stack/vw.php(240): vw_Factory_Block_View->single('similar', Array)
      #6 /var/www/html/forum/vault/core/controller/ui/stack/vw.php(168): vw_UI_Stack_View->sidebar(Object(vw_UI_Stack_Controller), Array)
      #7 /var/www/html/forum/wiki_index.php(92): vw_UI_Stack_Controller->execute()
      #8 {main}
      Request State
      array(3) {
        ["url"] => string(91) "http://****.****.com/wiki_index.php?title=Wiki-Test-Thread:-ADMIN-TEST-TEST-TEST"
        ["_GET"] => array(1) {
          ["title"] => string(38) "Wiki-Test-Thread:-ADMIN-TEST-TEST-TEST"
        }
        ["_POST"] => array(0) {
        }
      }
      =
    Issue Details
    Issue Number 3209
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Widgets / Sideblocks
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 4.0.0 Beta 3
    Fixed Version 4.0.0 Beta 4
    Milestone VaultWiki 4 Beta X
    Software DependencyAny
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. July 17, 2013 5:21 PM
      rizwank rizwank is offline
      New Member
      Also
      Code:
      [Wed Jul 17 09:40:53 2013] [error] [client 139.76.224.66] File does not exist: /var/www/html/forum/vault/resources/js/area-switch.js, referer: http://xxx/wiki_tools.php?do=integrate&action=edit&nodetypeid=21&nodeid=3656
      [Wed Jul 17 09:43:11 2013] [error] [client 139.76.224.66] File does not exist: /var/www/html/forum/vault/resources/js/area-switch.js, referer: http://xxx/wiki_index.php?title=Wiki-Test-Thread:-ADMIN-TEST-TEST-TEST&do=edit&url=http://xxx/threads/the-wiki-test.3656/
      [Wed Jul 17 09:43:30 2013] [error] [client 139.76.224.66] File does not exist: /var/www/html/forum/vault/resources/js/area-switch.js, referer: http://xxx/wiki_index.php?title=Wiki-Test-Thread:-ADMIN-TEST-TEST-TEST&do=edit&url=http://forum.farearchitects.com/threads/the-wiki-test.3656/
      [Wed Jul 17 12:27:59 2013] [error] [client 139.76.224.66] File does not exist: /var/www/html/forum/vault/resources/js/area-switch.js, referer: http://xxx//wiki_tools.php?do=integrate&action=edit&nodetypeid=21&nodeid=357
      Reply Reply  
    2. July 17, 2013 10:18 PM
      pegasus pegasus is offline
      VaultWiki Team
      In vault/core/model/block/similar/xf.php, find:
      Code:
      $limit = intval($this->definition['max']);
      Replace with:
      Code:
      		$limit = 0;
      
      		if (!empty($this->definition['max']))
      		{
      			$limit = intval($this->definition['max']);
      		}
      You can also save the Similar Content block in Admin Panel > Content > Sidebar Blocks > Similar Content which should create the missing array index.
      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 12:25 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.