• 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
    • I'm Totally Lost - Gallery Tags

    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: I'm Totally Lost - Gallery Tags

    • Issue Tools
      • View Changes
    1. issueid=2339 June 11, 2011 7:12 AM
      palmpedia palmpedia is offline
      Junior Member
      I'm Totally Lost - Gallery Tags

      Any pages with gallery tags on them give me a fatal error.
      Code:
      Fatal error: Call to a member function fetch_instance() on a non-object in /home/ptest/public_html/test-forum/vault/functions/bbcode/image.php on line 402
      I've tried every option and configuration I can think of. Any suggestions?
    Issue Details
    Issue Number 2339
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category BB-Code Parsing
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 3.0.11
    Fixed Version 3.0.11
    Milestone (none)
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. June 11, 2011 10:19 AM
      pegasus pegasus is offline
      VaultWiki Team
      In vault/functions/bbcode/image.php, find:
      Code:
      	// caption="Sample gallery" widths="100px" heights="100px" perrow="6"
      Add before:
      Code:
      	global $vault;
      Reply Reply  
    2. June 11, 2011 7:23 PM
      palmpedia palmpedia is offline
      Junior Member
      My point is being missed. I sent a PM explaining my difficulty with even posting a new simple gallery. But the larger problem that may be related to this and everything else that was imported or edited, is as follows.

      Just for example: If I have an existing article with something like the following and with a title and category all in caps as well

      Code:
      CHECK OUT THESE PICS
      [IMAGE]SLD.JPG[/IMAGE]
      [IMAGE]INL.JPG[/IMAGE]
      [IMAGE[JSL.JPG[/IMAGE]
      and I turn on the "shouting rule" set to 3 - if I click on edit and save, without making any changes, everything in the article is changed to lowercase. The first letter of the title remains a cap. The first letter of the next line (CHECK) remains a cap. And the bracket at the beginning of the third line does not have cap/lowercase. That accounts for all 3 caps in the "shouting rule" settting. This must also have happened during the import when each page/article was "saved."

      In the above example, all the image descriptions are changed to lower case (problematic???), as well as the title and category. (because more than 3 caps appear in each line) And turning the shouting rule off does not change it back, or even allow the created category to be changed back.

      So I'm trying to explain that most of my issues may have to do with having the shouting rule on during import, because aren't all those pages being "edited" and saved? But in fact, even the simple saving without editing does the same thing.

      In addition, this will apparently happen with any VaultWiki installation, to any page that is edited after someone would turn this 'rule' on. And to further complicate things, this 'rule' only works line my line. So an image on its own line with the description "DSC000045.JPG" would be changed. But it appears as if "dogwithspots.JPG" would not. (If rule is set to 3) So results and symptoms are inconsistent.

      So could this be why I had so much trouble with my import, and with goofy stuff happening now? Of course I will keep the 'rule' off and probably try another import. I just want to understand and work out as many issues as I can before I so.
      Reply Reply  
    3. June 11, 2011 9:36 PM
      pegasus pegasus is offline
      VaultWiki Team
      I think you meant to post this reply here, which is about the shouting rules and their implications on article contents, but that is still open: https://www.vaultwiki.org/issues/2334/

      The thread above was just about a fatal error, which is fixed with the provided edit.
      Reply Reply  
    4. June 12, 2011 3:42 AM
      palmpedia palmpedia is offline
      Junior Member
      Quote Originally Posted by pegasus
      I think you meant to post this reply here, which is about the shouting rules and their implications on article contents, but that is still open: https://www.vaultwiki.org/issues/2334/

      The thread above was just about a fatal error, which is fixed with the provided edit.
      Not really, but I'll leave this as is. I am trying a new import with the shouting off.

      What I was getting at was the implications of this shouting rule on the galleries, not just the articles - because if the parameter <caption= "ALL CAPS"> or if there is one or more images with all caps in the description, I was suggesting this might be an issue with the galleries - possibly crashing the whole gallery with an error message.
      Reply Reply  
    5. June 12, 2011 3:54 PM
      palmpedia palmpedia is offline
      Junior Member
      Is this correct?
      Code:
      function special_bbcode_gallery(&$parser, $value)
      {   global $vault;
      	// caption="Sample gallery" widths="100px" heights="100px" perrow="6"
      	require_once(DIR . '/vault/functions/bbcode/image.php');
      	$gallery = explode('|', $value, 2);
      Reply Reply  
    6. June 12, 2011 4:48 PM
      pegasus pegasus is offline
      VaultWiki Team
      Yes that looks correct.
      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 9:58 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.