• 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 3.x Series
    • Bug
    • Fatal error: Cannot use string offset 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: Fatal error: Cannot use string offset as an array

    • Issue Tools
      • View Changes
    1. issueid=1759 July 3, 2010 5:36 PM
      pingelich pingelich is offline
      Junior Member
      Fatal error: Cannot use string offset as an array

      Hi!

      I get this error if I want to update the forum informations
      Code:
      Warning: Invalid argument supplied for foreach() in [path]/vault/wiki/field.php (Zeile 359)
      
      Fatal error: Cannot use string offset as an array in /var/www/vault/wiki/field.php on line 49
    Issue Details
    Issue Number 1759
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Admin Panel
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 3.0.1
    Fixed Version 3.0.2
    Milestone VaultWiki 3.0.5
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. July 3, 2010 5:57 PM
      pegasus pegasus is offline
      VaultWiki Team
      What page exactly were you on and what exactly did you try to change? Based on the error itself, I can't see any way that this would happen...
      Reply Reply  
    2. July 3, 2010 6:27 PM
      pingelich pingelich is offline
      Junior Member
      Hm, I do not know how this function is named in english. It's a maintenance function: /admincp/misc.php?do=updateforum
      Reply Reply  
    3. July 3, 2010 6:51 PM
      pegasus pegasus is offline
      VaultWiki Team
      In vault/admin/forum.php, find:
      Code:
      		$vault->field->get('displayorder', $newparent) != $data->fetch_field('displayorder')
      Add after:
      Code:
       AND 0 == 1
      Reply Reply  
    4. July 4, 2010 4:11 AM
      pingelich pingelich is offline
      Junior Member
      Hi!

      hm.. same problem..

      Code:
      	if (
      		$newparent != ISLAND_SPACE AND
      		$vault->field->get('displayorder', $newparent) !== null AND
      		$vault->field->get('forumid', $newparent) == $data->fetch_field('forumid') AND
      		$vault->field->get('displayorder', $newparent) != $data->fetch_field('displayorder') AND 0 == 1
      	)
      Reply Reply  
    5. July 4, 2010 10:58 AM
      pegasus pegasus is offline
      VaultWiki Team
      Try editing vault/wiki/field.php. Find:
      Code:
      		if (!$ready)
      Replace with:
      Code:
      		if (!$ready OR !is_array($GLOBALS['vbulletin']->options['vault_namespaces']))
      Reply Reply  
    6. July 4, 2010 11:37 AM
      pingelich pingelich is offline
      Junior Member
      That's it! Thank you!
      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:34 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 © 2023 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2023 DragonByte Technologies Ltd.
    Copyright © 2008 - 2013 VaultWiki Team, Cracked Egg Studios, LLC.