• 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
    • ErrorException: Cannot use a scalar value as an array

    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: ErrorException: Cannot use a scalar value as an array

    • Issue Tools
      • View Changes
    1. issueid=4677 June 23, 2016 7:24 AM
      hollosch hollosch is offline
      Senior Member
      ErrorException: Cannot use a scalar value as an array

      Code:
      Fehlerinformation
      ErrorException: Cannot use a scalar value as an array - vault/core/model/permissions/vw.php:668
      Generiert durch: Unbekanntes Benutzerkonto, Gestern um 14:25 Uhr
      Stapelverfolgung
      #0 ../httpdocs/vault/core/model/permissions/vw.php(668): XenForo_Application::handlePhpError(2, 'Cannot use a sc...', '/var/www/vhosts...', 668, Array)
      #1 ../httpdocs/vault/core/model/permissions/vw.php(396): vw_Permissions_Model->process_flatten()
      #2 ../httpdocs/vault/core/model/permissions/vw.php(137): vw_Permissions_Model->process(4289, Array)
      #3 ../httpdocs/vault/core/model/parser/instance/vw.php(182): vw_Permissions_Model->get('Comment', 4289, Array)
      #4 ../httpdocs/vault/core/model/parser/instance/xf.php(61): vw_Parser_Instance_Model->item_options(107, '21', 4289)
      #5 ../httpdocs/vault/core/view/factory/comment/vw.php(664): vw_Parser_Instance_Model_XF->item_options(107, '21', 4289)
      #6 ../httpdocs/vault/core/view/factory/comment/vw.php(175): vw_Factory_Comment_View->parse_bbcode()
      #7 ../httpdocs/vault/core/view/ui/comment/vw.php(556): vw_Factory_Comment_View->commentbit()
      #8 ../httpdocs/vault/core/view/ui/discussion/vw.php(803): vw_UI_Comment_View->get_commentbits(Object(vw_UI_Discussion_View_XF), Array)
      #9 ../httpdocs/vault/core/controller/ui/discussion/vw.php(1785): vw_UI_Discussion_View->view(Object(vw_UI_Discussion_Controller_XF), false)
      #10 ../httpdocs/vault/core/controller/ui/discussion/vw.php(141): vw_UI_Discussion_Controller->view()
      #11 ../httpdocs/vault/core/controller/ui/discussion/xf.php(72): vw_UI_Discussion_Controller->execute()
      #12 ../httpdocs/vault/core/view/ui/page/vw.php(273): vw_UI_Discussion_Controller_XF->execute()
      #13 ../httpdocs/vault/core/controller/ui/page/vw.php(744): vw_UI_Page_View->get_comments(Object(vw_UI_Page_Controller_XF), true)
      #14 ../httpdocs/vault/core/controller/ui/page/vw.php(175): vw_UI_Page_Controller->comments()
      #15 ../httpdocs/vault/core/controller/ui/page/xf.php(58): vw_UI_Page_Controller->execute()
      #16 ../httpdocs/vault/core/controller/ui/stack/vw.php(220): vw_UI_Page_Controller_XF->execute()
      #17 ../httpdocs/library/vw/XenForo/ControllerPublic/Wiki.php(68): vw_UI_Stack_Controller->execute()
      #18 ../httpdocs/library/XenForo/FrontController.php(351): vw_XenForo_ControllerPublic_Wiki->actionIndex()
      #19 ../httpdocs/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
      #20 ../httpdocs/index.php(13): XenForo_FrontController->run()
      #21 {main}
      Benötigter Status
      array(3) {
        ["url"] => string(82) "http://regio-portal.wiki/wiki/Wikigardening_27-11-2015?do=comments&discussionid=82"
        ["_GET"] => array(2) {
          ["do"] => string(8) "comments"
          ["discussionid"] => string(2) "82"
        }
        ["_POST"] => array(0) {
        }
      }
    Issue Details
    Issue Number 4677
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Unknown
    Status Not a Bug
    Priority 1 - Security / Login / Data Loss
    Affected Version 4.0.12
    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. June 23, 2016 11:59 AM
      pegasus pegasus is offline
      VaultWiki Team
      Does this error continue after upgrading? I would expect this error to occur if you visit some wiki pages while you are still uploading the updated files, and vw_Permissions_Model is already uploaded but not vw_Hard_Core.

      There is no way to prevent that case on the code side. The only way would be to complicate the upgrade process more:
      1. Disable the VaultWiki add-on.
      2. Upload the new files.
      3. Re-enable the VaultWiki add-on.
      4. Run the VaultWiki upgrade script.

      For convenience, admins can just do #2 and #4, but the trade-off is that there might be some errors while #2 is taking place.

      Completing the 4.0.12 upgrade is supposed to remove the scalars from the database.
      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 10:40 AM.
    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.