• 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
    • Lost Article

    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: Lost Article

    • Issue Tools
      • View Changes
    1. issueid=1967 September 5, 2010 5:31 AM
      Moses Moses is offline
      Junior Member
      Lost Article

      Hello,

      I've found something strange going on in my wiki, and was hoping you could point me in the right direction.

      There was an article called "James O'Connor" that seems to have disappeared. When I type the guys name in the forums, it still auto-links to the original article. Example here.

      The auto-link should take me to this url, however it instead takes me to a different article, "David Pocock".

      I recently moved a lot of articles into sub-forums, perhaps something happened in the move? I also installed the Header and Book namespaces yesterday.

      Cheers,
      Moses.
    Issue Details
    Issue Number 1967
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Admin Panel
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 3.0.3
    Fixed Version 3.0.4
    Milestone VaultWiki 3.0.5
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 1
    Assigned Users (none)
    Tags (none)




    1. September 5, 2010 11:38 AM
      pegasus pegasus is offline
      VaultWiki Team
      Make sure that there are not two James O'Connor articles in your wiki. Go to VaultWiki > Wiki URL Manager, and see if it appears in the list. If it does, probably one of them was turned into a vBulletin (not a wiki) redirect when you moved the original to a sub-forum. Typically this should result in an infinite redirect, and not what you have here. You would want to delete the redirect that was left behind in the move.

      If this doesn't work, what makes this especially confusing is that the AJAX pop-up for the link actually shows the correct article. So it doesn't look like this falls under the normal "missing article" possible-fix list.

      Did you create any plugins where you rewrite wiki URLs? i.e. hook locations vault_url_generate or vault_url_interpret
      Reply Reply  
    2. September 6, 2010 3:54 AM
      Moses Moses is offline
      Junior Member
      Thanks for the quick response as always Pegasus.
      I notice 4 URLs in the conflicted area, however when I click [Edit] I get an error on the page.

      Edit Conflicting Pages for /showwiki/David+Pocock
      Two or more pages in the wiki have the URL /showwiki/David+Pocock. Since only the first version will be visible, you should modify the live page to reflect the content of all the pages.

      Use the link to the right to edit the Live version. The text for each version is listed below for your convenience. You can only delete the excess pages using this form.
      [Edit Live Page]



      Fatal error: Call to undefined function construct_prefix_options() in /home/public_html/greenandgoldrugby.com/public/forum/admincp/vaultwiki_url.php on line 1158
      Help
      Title: David Pocock (Live Version)
      Article:
      James OC.jpg Name: James D. O'Connor Born: 5th July, 1990 Position(s): Fullback, wing, inside centre, fly-half. Official Nickname(s): Rabbit [1] G&GR Nickname(s): Bieber, JOC.

      Rugby Career

      Schoolboys

      O'Connor appeard for St Joseph's Nudgee College on Brisbane's north side. For two years O'Connor terrorized the defences in the Queensland schools GPS. In 2006 he was selected in an Australian Under-16 ‘merit’ side after appearing for the Queensland Under-16s in the national championships in Sydney. O'Connor appeared for Nudgee at fly half in 2006 and seeing as this was his first year in his new code O'Connor showed extreme potential by appearing for the Queensland U16 side. 2007 appeared to be a promising year for both O'Connor and Nudgee. He appeared alongside future stars such as Joe Tomane, Dominic Shipperley and Stefano Hunt. O'Connor was selected at 12 for the season and both his dazzling footwork and incisive running led Nudgee to a succesful season. With losses against TSS and ACGS a very talented Nudgee side unfortunately didn't fulfil its ambitions. A particular lowlight of the year was O'Connor's last minute missed kick against ACGS which would have put Nudgee in the lead however O'Connor made up for this against IGS where a last minute re-kick conversion ensured a Nudgee victory against spirited opposition. James was rewarded for his performances in the GPS and featured prominently for the Queensland I side which won the Australian Schools Division I championships at Canberra in July 2007. His performances for Queensland as well as Nudgee led to O'Connor being selected for the Australian Schools team which played the England Under-18s in August and then Samoa Schools in September. He also appeared off of the bench against the New Zealand Schools side where Australia recorded a rare win against their illustrious rivals. O'Connor was unfortunate enough to be selected for the Schoolboys in a year that contained prestigous talents such as Matt Toomua, Rob Horne, Aidan Toua and Ben Tapuai. This ensured that the brilliantly talented but occasional "Campese esque mercurial brain farts" led to O'Connor riding the pine for the Schoolboy Internationals.

      Club

      Provincial

      O'Connor plays for the Western Force. A prodigious talent of the rarest order, O’Connor belied his diminutive stature to make an immediate impact for the Emirates Western Force after becoming the youngest ever debutant in tournament history when he was sent on as replacement against the Reds in Brisbane in 2008. [4] He was the second youngest player ever to represent the Wallabies when he made his Test debut against Italy in Padova later that year. After four caps in 2008 he played 10 matches in 2009 and scored five tries to be the club’s second leading try scorer that season (tied with Ryan Cross). He continued to grow in stature on the test scene as well and became the first Australian player to score a hat-trick of tries in his run-on debut for the Wallabies (2009 v Italy in Canberra). He took home the Emirates Western Force 2009 ‘Rookie of the Year’ award and was also named the Wallabies ‘Rookie of the Year’ at the 2009 John Eales Medal dinner. Possessing a dangerous sidestep and sublime ball skills O’Connor is one of the most exciting young talents in world rugby and has committed his future to the Emirates Western Force. [5]

      International

      O'Connor made his debut for Australia against Italy in 2008 was off the bench at fullback where he became Australia’s second youngest representative in making his Test debut, and earning the Wallaby number 832 in the All-Time list [7]. In an international against Italy on the 13th of June 2009, O'Connor started at fullback, and scored three tries. In October 2009, O'Connor was named 2009 rookie of the year at the John Eales medal awards night. O'Connor was eligible for all 3 Tri Nations teams because of his New Zealand born parents and South African born Grandmother.[8]

      2008

      2009

      2010

      Discipline

      Off Field

      Injuries

      [CATEGORY]Western Force[/CATEGORY] [CATEGORY]Wallabies[/CATEGORY]

      References

      1. ^http://www.rugbywa.com.au/players/james_oconnor,52366.html/section/58577
      2. ^http://www.rugbywa.com.au/players/james_oconnor,52366.html/section/58577
      3. ^http://www.rugby.com.au/players/wallabies/2010_squad/oconnor,_james,139017.html
      4. ^http://www.rugbywa.com.au/players/james_oconnor,52366.html/section/58577
      5. ^http://www.rugbywa.com.au/players/james_oconnor,52366.html/section/58577
      6. ^http://www.rugbywa.com.au/players/james_oconnor,52366.html/section/58577
      7. ^http://rugby.com.au/players/wallabies/2010_squad/oconnor,_james,139017.html
      8. ^http://en.wikipedia.org/wiki/James_O'Connor_(rugby)
      9. ^http://www.perthnow.com.au/sport/western-force-fullback-james-oconnor-ruled-out-of-crusaders-clash/story-e6frg1wu-1225856422848

      Increase Size Decrease Size

      * This version has been edited 31 times.
      Reply Reply  
    3. September 6, 2010 3:59 AM
      Moses Moses is offline
      Junior Member
      I haven't touched any of the hooks, mostly a default install apart from being on nginx proxying to apache
      Reply Reply  
    4. September 7, 2010 9:29 AM
      Moses Moses is offline
      Junior Member
      If I look at the sub-forum that I moved them too, there are now two "David Pocock" articles. If I mouse over the title, one has the James O'Connor preview show in the browser tooltip.

      Any suggestions on how I could change it back to a normal wiki article? It's happened to four articles now..
      Reply Reply  
    5. September 7, 2010 11:43 AM
      pegasus pegasus is offline
      VaultWiki Team
      Unfortunately inline title edits from the sub-forum view don't currently work as expected, so you'll have to try a different method.

      In admincp/vaultwiki_url.php, find:
      Code:
      			$prefix_options = construct_prefix_options($dupe['forumid'], $dupe['prefixid'], ($dupe['prefixid'] == '' OR !($foruminfo['options'] & $vbulletin->bf_misc_forumoptions['prefixrequired'])));
      Add before:
      Code:
      			require_once(DIR . '/includes/adminfunctions_prefix.php');
      At that point you should be able to use the tools in the URL Manager to change the title of the "David Pocock" article that should be "James O'Connor".
      Reply Reply  
    6. September 7, 2010 8:11 PM
      Moses Moses is offline
      Junior Member
      Thanks Pegasus, that's fixed the screen, however when I fill in the renamed articles and click update I get an error
      "No pages were selected for deletion."

      I've attached a screenshot if this helps.
      Reply Reply  
    7. September 8, 2010 12:10 AM
      pegasus pegasus is offline
      VaultWiki Team
      In admincp/vaultwiki_url.php, find:
      Code:
      		if (empty($threadids))
      		{
      			print_cp_message(fetch_error('vault_delete_conflict_error'));
      		}
      
      		$threads = $db->query_read("
      			SELECT *
      			FROM " . TABLE_PREFIX . "thread
      			WHERE threadid IN (" . implode(',', $threadids) . ")
      		");
      
      		$delinfo = array(
      			'userid' => $vbulletin->userinfo['userid'],
      			'username' => $vbulletin->userinfo['username'],
      			'reason' => '',
      			'keepattachments' => false,
      		);
      		$physicaldel = true;
      
      		while ($thread = $db->fetch_array($threads))
      		{
      			$foruminfo = fetch_foruminfo($thread['forumid']);
      			$countposts = ($foruminfo['options'] & $vbulletin->bf_misc_forumoptions['countposts']);
      
      			$threadman =& datamanager_init('Thread', $vbulletin, ERRTYPE_SILENT, 'threadpost');
      			$threadman->set_existing($thread);
      			$threadman->delete($countposts, $physicaldel, $delinfo);
      
      			unset($threadman);
      			unset($vbulletin->GPC['pagetext'][$thread['threadid']]);
      			unset($vbulletin->GPC['rename'][$thread['threadid']]);
      			unset($vbulletin->GPC['prefixid'][$thread['threadid']]);
      		}
      		$db->free_result($threads);
      		unset($thread);
      Replace with:
      Code:
      		if (!empty($threadids))
      		{
      			$threads = $db->query_read("
      				SELECT *
      				FROM " . TABLE_PREFIX . "thread
      				WHERE threadid IN (" . implode(',', $threadids) . ")
      			");
      
      			$delinfo = array(
      				'userid' => $vbulletin->userinfo['userid'],
      				'username' => $vbulletin->userinfo['username'],
      				'reason' => '',
      				'keepattachments' => false,
      			);
      			$physicaldel = true;
      
      			while ($thread = $db->fetch_array($threads))
      			{
      				$foruminfo = fetch_foruminfo($thread['forumid']);
      				$countposts = ($foruminfo['options'] & $vbulletin->bf_misc_forumoptions['countposts']);
      
      				$threadman =& datamanager_init('Thread', $vbulletin, ERRTYPE_SILENT, 'threadpost');
      				$threadman->set_existing($thread);
      				$threadman->delete($countposts, $physicaldel, $delinfo);
      
      				unset($threadman);
      				unset($vbulletin->GPC['pagetext'][$thread['threadid']]);
      				unset($vbulletin->GPC['rename'][$thread['threadid']]);
      				unset($vbulletin->GPC['prefixid'][$thread['threadid']]);
      			}
      			$db->free_result($threads);
      			unset($thread);
      		}
      Reply Reply  
    8. September 8, 2010 5:01 AM
      Moses Moses is offline
      Junior Member
      Now when I click update I get

      Code:
      Fatal error: Existing data passed is not an array
      Called set_existing in [path]/vault/functions/rollback.php on line 44
      Called revision_quick_update in [path]/admincp/vaultwiki_url.php on line 883
      in [path]/includes/class_dm.php on line 265
      #0 vb_error_handler(256, Existing data passed is not an array
      Called set_existing in /home/public_html/greenandgoldrugby.com/public/forum/vault/functions/rollback.php on line 44
      Called revision_quick_update in /home/public_html/greenandgoldrugby.com/public/forum/admincp/vaultwiki_url.php on line 883
      , /home/public_html/greenandgoldrugby.com/public/forum/includes/class_dm.php, 265, Array ([existing] => ,[line] =>
      Called set_existing in /home/public_html/greenandgoldrugby.com/public/forum/vault/functions/rollback.php on line 44
      Called revision_quick_update in /home/public_html/greenandgoldrugby.com/public/forum/admincp/vaultwiki_url.php on line 883
      ...
      ...
      Reply Reply  
    9. September 8, 2010 11:11 AM
      pegasus pegasus is offline
      VaultWiki Team
      In vault/functions/rollback.php, find all:
      Code:
      revdata
      Replace all with:
      Code:
      rolldata
      Find all:
      Code:
      $revision['threadid']
      Replace all with:
      Code:
      $threadinfo['threadid']
      Reply Reply  
    10. September 9, 2010 9:22 AM
      Moses Moses is offline
      Junior Member
      now I'm getting this
      Fatal error:

      * A required field called threadid is missing or has an invalid value.

      Unable to proceed with save while $errors array is not empty in class vB_WikiRevision_Manager in [path]/includes/class_dm.php on line 849
      #0 vb_error_handler(256,

      * A required field called threadid is missing or has an invalid value.
      Reply Reply  
    11. September 9, 2010 6:36 PM
      pegasus pegasus is offline
      VaultWiki Team
      In admincp/vaultwiki_url.php, find:
      Code:
                      'title' => $newtitle,
      Add before:
      Code:
                      'threadid' => $threadid,
      Reply Reply  
    12. September 10, 2010 7:55 PM
      Moses Moses is offline
      Junior Member
      I've just deleted and re-created the threads, so the problem has gone for now. Figure I'll wait for the next release to fix it.
      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 12:49 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.