• 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
    • Error and missing text/attachments after upgrade

    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 and missing text/attachments after upgrade

    • Issue Tools
      • View Changes
    1. issueid=2918 January 9, 2013 5:05 AM
      Feathers&Photos Feathers&Photos is offline
      New Member
      Error and missing text/attachments after upgrade

      Just upgraded from 3.0.19 to 3.0.20 and I'm now getting serious problems. Attachments and any text from articles has now disappeared and there's an error line at the top of the screen:
      Code:
      Warning: preg_replace_callback() [function.preg-replace-callback]: Modifier /e cannot be used with replacement callback in [path]/vault/class/bbcode/obfuscate.php on line 104
    Issue Details
    Issue Number 2918
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Wiki Pages
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 3.0.20
    Fixed Version 3.0.20
    Milestone (none)
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. January 9, 2013 6:03 AM
      Feathers&Photos Feathers&Photos is offline
      New Member
      The errors seem to occur in any articles where I'm using templates. It also throws up this error on a few different lines...

      Code:
      Warning: preg_replace() [function.preg-replace]: Parameter mismatch, pattern is a string while replacement is an array in [path]/vault/class/bbcode/template.php on line 547
      Reply Reply  
    2. January 9, 2013 9:28 AM
      ricktas ricktas is offline
      Junior Member
      We get this when the [TEMPLATE] tag is used on 3.0.20r1
      Code:
      Warning: preg_replace() [function.preg-replace]: Parameter mismatch, pattern is a string while replacement is an array in [path]/vault/class/bbcode/template.php on line 547
      We are using PHP 5.3
      Reply Reply  
    3. January 9, 2013 9:43 AM
      ricktas ricktas is offline
      Junior Member
      Workaround:

      Redacted due to post below.
      Reply Reply  
    4. January 9, 2013 12:37 PM
      pegasus pegasus is offline
      VaultWiki Team
      Do not change the lines as ricktas suggests. The only thing that needs to occur is the /e modifier needs to be removed. It was removed in PHP 5.5, so we had to switch to preg_replace_callback in VaultWiki. It seems we missed one or two instances.

      Please follow these instructions if you are running 3.0.20 ONLY and if you are experiencing this issue. Only 3.0.20 contains an updated $obfuscater->undo format which supports these changes. See below...

      In vault/class/bbcode/obfuscate.php, find:
      Code:
      '#\[[^\[]*\]#sUe'
      Replace with:
      Code:
      '#\[[^\[]*\]#sU'
      In vault/class/bbcode/template.php, find:
      Code:
      $name = preg_replace(
      Replace with:
      Code:
      $name = preg_replace_callback(
      Find:
      Code:
      $value = preg_replace(
      Replace with:
      Code:
      $value = preg_replace_callback(
      These changes have been folded into the existing 3.0.20 ZIP, so that future downloads don't get this issue. If you are already experiencing this issue, you can apply the changes outlined above in this post, or you can download 3.0.20 again and simply replace the files on your server.

      Note: You may also need to use AdminCP > VaultWiki > Wiki Maintenance Tools > Clean Article Post Cache in order to apply the fix to some articles that were affected.
      Reply Reply  
    5. January 9, 2013 7:15 PM
      Feathers&Photos Feathers&Photos is offline
      New Member
      Thanks guys! replaced the affected files and it's looking good again.
      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 1:06 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 © 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.