• 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
    • Error: [] operator not supported for strings

    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: Error: [] operator not supported for strings

    • Issue Tools
      • View Changes
    1. issueid=6043 May 22, 2020 10:10 AM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Error: [] operator not supported for strings

      Error: [] operator not supported for strings - library/vw/XenForo/Model/User.php:42
      Generated By: Alfa, A moment ago
      Stack Trace

      #0 /library/XenResource/Listener/Proxy/ModelUser.php(7): vw_XenForo_Model_User->prepareUserConditions(Array, Array)
      #1 /library/Borbole/Reputation/Model/User.php(97): XenResource_Listener_Proxy_ModelUser->prepareUserConditions(Array, Array)
      #2 /library/NFLJ/UBS/XenForo/Model/User.php(7): Borbole_Reputation_Model_User->prepareUserConditions(Array, Array)
      #3 /library/NFLJ/RMS/XenForo/Model/User.php(7): NFLJ_UBS_XenForo_Model_User->prepareUserConditions(Array, Array)
      #4 /library/NFLJ/AMS/XenForo/Model/User.php(7): NFLJ_RMS_XenForo_Model_User->prepareUserConditions(Array, Array)
      #5 /library/XenForo/Model/User.php(385): NFLJ_AMS_XenForo_Model_User->prepareUserConditions(Array, Array)
      #6 /library/XenForo/ControllerAdmin/User.php(132): XenForo_Model_User->countUsers(Array)
      #7 /library/XenForo/FrontController.php(369): XenForo_ControllerAdmin_User->actionList()
      #8 /library/XenForo/FrontController.php(152): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
      #9 /admin.php(13): XenForo_FrontController->run()
      #10 {main}

      Request State

      array(3) {
      ["url"] => string(44) "/admin.php?users/list"
      ["_GET"] => array(1) {
      ["users/list"] => string(0) ""
      }
      ["_POST"] => array(4) {
      ["criteria"] => array(21) {
      ["username"] => string(3) "trd"
      ["email"] => string(0) ""
      ["gender"] => array(3) {
      [0] => string(4) "male"
      [1] => string(6) "female"
      [2] => string(11) "unspecified"
      }
      ["user_group_id"] => string(1) "0"
      ["no_secondary_group_ids"] => string(1) "0"
      ["register_date_start"] => string(0) ""
      ["register_date_end"] => string(0) ""
      ["last_activity_start"] => string(0) ""
      ["last_activity_end"] => string(0) ""
      ["message_count_start"] => string(1) "0"
      ["message_count_end"] => string(2) "-1"
      ["vw_usercount"] => array(14) {
      ["vw_contribs"] => array(2) {
      ["start"] => string(1) "0"
      ["end"] => string(1) "0"
      }
      ["vw_comments"] => array(2) {
      ["start"] => string(1) "0"
      ["end"] => string(1) "0"
      }
      ["vw_uploads"] => array(2) {
      ["start"] => string(1) "0"
      ["end"] => string(1) "0"
      }
      ["vw_categorizes"] => array(2) {
      ["start"] => string(1) "0"
      ["end"] => string(1) "0"
      }
      ["vw_chapters"] => array(2) {
      ["start"] => string(1) "0"
      ["end"] => string(1) "0"
      }
      ["vw_disambiguates"] => array(2) {
      ["start"] => string(1) "0"
      ["end"] => string(1) "0"
      }
      ["vw_redirects"] => array(2) {
      ["start"] => string(1) "0"
      ["end"] => string(1) "0"
      }
      ["vw_templates"] => array(2) {
      ["start"] => string(1) "0"
      ["end"] => string(1) "0"
      }
      ["vw_islands"] => array(2) {
      ["start"] => string(1) "0"
      ["end"] => string(1) "0"
      }
      ["vw_translates"] => array(2) {
      ["start"] => string(1) "0"
      ["end"] => string(1) "0"
      }
      ["vw_feeds"] => array(2) {
      ["start"] => string(1) "0"
      ["end"] => string(1) "0"
      }
      ["vw_feedposts"] => array(2) {
      ["start"] => string(1) "0"
      ["end"] => string(1) "0"
      }
      ["vw_ratings"] => array(2) {
      ["start"] => string(1) "0"
      ["end"] => string(1) "0"
      }
      ["vw_reports"] => array(2) {
      ["start"] => string(1) "0"
      ["end"] => string(1) "0"
      }
      }
      ["trophy_points_start"] => string(1) "0"
      ["trophy_points_end"] => string(2) "-1"
      ["user_state"] => array(5) {
      [0] => string(5) "valid"
      [1] => string(13) "email_confirm"
      [2] => string(18) "email_confirm_edit"
      [3] => string(12) "email_bounce"
      [4] => string(9) "moderated"
      }
      ["is_banned"] => array(2) {
      [0] => string(1) "0"
      [1] => string(1) "1"
      }
      ["is_discouraged"] => array(2) {
      [0] => string(1) "0"
      [1] => string(1) "1"
      }
      ["is_staff"] => array(2) {
      [0] => string(1) "0"
      [1] => string(1) "1"
      }
      ["ban_reason"] => string(0) ""
      ["custom_exact"] => array(1) {
      ["wantdonate"] => string(1) "1"
      }
      ["custom"] => array(15) {
      ["favourite_forum_s_or_sect"] => string(0) ""
      ["education"] => string(0) ""
      ["favorite_music"] => string(0) ""
      ["movies"] => string(0) ""
      ["books"] => string(0) ""
      ["favorite_quotes"] => string(0) ""
      ["aim"] => string(0) ""
      ["icq"] => string(0) ""
      ["insta"] => string(0) ""
      ["facebook"] => string(0) ""
      ["skype"] => string(0) ""
      ["twitter"] => string(0) ""
      ["telegram"] => string(0) ""
      ["yahoo"] => string(0) ""
      }
      }
      ["order"] => string(8) "username"
      ["direction"] => string(3) "asc"
      ["_xfToken"] => string(8) "********"
      }
      }
    Issue Details
    Issue Number 6043
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Admin Panel
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 4.1.0 RC 3
    Fixed Version 4.1.0
    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 22, 2020 1:27 PM
      pegasus pegasus is offline
      VaultWiki Team
      In library/vw/XenForo/Model/User.php, find:
      Code:
      		$sqlConditions = parent::prepareUserConditions($conditions, $fetchOptions);
      
      		if (!empty($conditions['vw_usercount']))
      		{
      			foreach ($conditions['vw_usercount'] AS $field => $value)
      			{
      				if (!empty($value) AND is_array($value))
      				{
      					$sqlConditions[] = $this->getCutOffCondition('vw.' . $field, $value);
      				}
      			}
      		}
      
      		return $sqlConditions;
      Replace with:
      Code:
      		$sqlConditions = array();
      		$sqlConditions[] = parent::prepareUserConditions($conditions, $fetchOptions);
      
      		if (!empty($conditions['vw_usercount']))
      		{
      			foreach ($conditions['vw_usercount'] AS $field => $value)
      			{
      				if (!empty($value) AND is_array($value))
      				{
      					$sqlConditions[] = $this->getCutOffCondition('vw.' . $field, $value);
      				}
      			}
      		}
      
      		return $this->getConditionsForClause($sqlConditions);
      Reply Reply  
    2. May 22, 2020 6:27 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Thanks!
      Reply Reply  
    3. June 16, 2020 3:58 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      This bug has reappeared after upgrade to RC3 PL1. I assume I need to re-edit the files?
      Reply Reply  
    4. June 17, 2020 11:25 AM
      pegasus pegasus is offline
      VaultWiki Team
      Yes. If it is the same exact error message, then it should be resolved by performing the steps above.
      Reply Reply  
    5. June 20, 2020 8:08 AM
      Alfa1 Alfa1 is offline
      Distinguished Member
      While this file change does fix the error, I am still encountering another issue which may or may not be related:
      When I search for a user I get a popup that the user cannot be found. But there search result is there. The popup is produced in error.
      Reply Reply  
    6. June 20, 2020 1:15 PM
      pegasus pegasus is offline
      VaultWiki Team
      In library/vw/XenForo/ControllerHelper/UserCriteria.php, find:
      Code:
      				'vw_contribs' => -1,
      				'vw_comments' => -1,
      				'vw_uploads' => -1,
      				'vw_categorizes' => -1,
      				'vw_chapters' => -1,
      				'vw_redirects' => -1,
      				'vw_templates' => -1,
      				'vw_islands' => -1,
      				'vw_translates' => -1,
      				'vw_feeds' => -1,
      				'vw_feedposts' => -1,
      				'vw_reports' => -1,
      				'vw_ratings' => -1,
      				'vw_disambiguates' => -1
      Replace with:
      Code:
      				'vw_contribs' => array('end' => -1),
      				'vw_comments' => array('end' => -1),
      				'vw_uploads' => array('end' => -1),
      				'vw_categorizes' => array('end' => -1),
      				'vw_chapters' => array('end' => -1),
      				'vw_redirects' => array('end' => -1),
      				'vw_templates' => array('end' => -1),
      				'vw_islands' => array('end' => -1),
      				'vw_translates' => array('end' => -1),
      				'vw_feeds' => array('end' => -1),
      				'vw_feedposts' => array('end' => -1),
      				'vw_reports' => array('end' => -1),
      				'vw_ratings' => array('end' => -1),
      				'vw_disambiguates' => array('end' => -1)
      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 3:51 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.