• 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
    • Unsupported operand types in /vault/core/controller/dm/attach/thumb/vw.php on line 254

    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: Unsupported operand types in /vault/core/controller/dm/attach/thumb/vw.php on line 254

    • Issue Tools
      • View Changes
    1. issueid=4618 April 3, 2016 9:29 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Unsupported operand types in /vault/core/controller/dm/attach/thumb/vw.php on line 254

      Step 13

      Importing wiki pages

      An exception occurred: Unsupported operand types in /vault/core/controller/dm/attach/thumb/vw.php on line 254

      vw_DM_Attach_Thumb_Controller->post_save_each() in library/vw/XenForo/DataWriter.php at line 470
      vw_XenForo_DataWriter->_postSave() in library/XenForo/DataWriter.php at line 1423
      XenForo_DataWriter->save() in vault/core/controller/dm/xf.php at line 408
      vw_DM_Controller_XF->save() in vault/core/controller/dm/attach/file/vw.php at line 878
      vw_DM_Attach_File_Controller->create_thumbnails() in vault/core/controller/dm/attach/file/vw.php at line 394
      vw_DM_Attach_File_Controller->post_save_each() in library/vw/XenForo/DataWriter.php at line 470
      vw_XenForo_DataWriter->_postSave() in library/XenForo/DataWriter.php at line 1423
      XenForo_DataWriter->save() in vault/core/controller/dm/xf.php at line 408
      vw_DM_Controller_XF->save() in vault/core/controller/import/handle/vw3/attach/vw.php at line 671
      vw_Import_Handle_VW3_Attach_Controller->create_attachment() in vault/core/controller/import/handle/vw3/attach/vw.php at line 149
      vw_Import_Handle_VW3_Attach_Controller->do_item_attachments() in vault/core/controller/import/handle/vw3/page/vw.php at line 744
      vw_Import_Handle_VW3_Page_Controller->add_page() in vault/core/controller/import/handle/vw3/page/vw.php at line 492
      vw_Import_Handle_VW3_Page_Controller->do_page() in vault/core/controller/import/handle/vw3/page/vw.php at line 222
      vw_Import_Handle_VW3_Page_Controller->do_pages() in vault/core/controller/import/steps/vw3/vw.php at line 275
      vw_Import_Steps_VW3_Controller->{closure}() in vault/core/controller/progress/steps/vw.php at line 76
      vw_Progress_Steps_Controller->call() in vault/core/controller/progress/steps/vw.php at line 49
      vw_Progress_Steps_Controller->execute() in vault/core/controller/progress/vw.php at line 92
      vw_Progress_Controller->exec_script() in vault/core/controller/progress/vw.php at line 74
      vw_Progress_Controller->execute() in vault/core/controller/cp/progress/vw.php at line 34
      vw_CP_Progress_Controller->process() in vault/core/controller/cp/impex/vw.php at line 108
      vw_CP_ImpEx_Controller->import() in vault/core/controller/cp/impex/vw.php at line 33
      vw_CP_ImpEx_Controller->execute() in library/vw/XenForo/ControllerAdmin/Wiki.php at line 118
      vw_XenForo_ControllerAdmin_Wiki->actionIndex() in library/XenForo/FrontController.php at line 351
      XenForo_FrontController->dispatch() in library/XenForo/FrontController.php at line 134
      XenForo_FrontController->run() in admin.php at line 13
    Issue Details
    Issue Number 4618
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Attachments
    Status Fixed
    Priority 1 - Security / Login / Data Loss
    Affected Version 4.0.10
    Fixed Version 4.0.10
    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 3, 2016 9:44 PM
      pegasus pegasus is offline
      VaultWiki Team
      In vault/core/controller/dm/attach/file/vw.php, find:
      Code:
      		$already_used = vw_Hard_Core::model('Datastore')->get('vw_attach_usage');
      After it, add:
      Code:
      if (!$already_used) $already_used = 0;
      In vault/core/controller/dm/attach/thumb/vw.php, do the same thing.
      Reply Reply
    2. April 3, 2016 10:02 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      There are several instances of that line.
      Reply Reply
    3. April 3, 2016 10:42 PM
      pegasus pegasus is offline
      VaultWiki Team
      If there are, then it should be added after every one.

      I believe one of the instances is in a delete method. In that scope, it would be non-zero, so you shouldn't need it there, but adding it won't hurt anything.
      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:01 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.