• 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 Lite
    • Bug
    • fetch_seo_url() Error When Leaving a Comment

    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: fetch_seo_url() Error When Leaving a Comment

    • Issue Tools
      • View Changes
    1. issueid=2197 January 19, 2011 11:13 AM
      Digital Jedi Digital Jedi is offline
      New Member
      fetch_seo_url() Error When Leaving a Comment
      Error when commenting on articles.

      Just installed the Wiki on vB 3.8.5 and on my Test Article I'm getting errors when leaving comments in the discussion page.

      Fatal error: Call to undefined function fetch_seo_url() in /***/public_html/cogonline/forums/vault/tabs/special_tab_discussion.php on line 434

      This only occurs when hitting New Reply and not when using AJAX Quick Reply. The comment does post, but the poster sees a white page with this error when that happens. Also, the discussion page's HTML seems a little off when posted. But I guess I can fix that in the templates?
    Issue Details
    Issue Number 2197
    Issue Type Bug
    Project VaultWiki 3.x Lite
    Category Non-Wiki Threads and Replies
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 3.0.8 Lite
    Fixed Version 3.0.8 Lite
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. January 19, 2011 12:16 PM
      pegasus pegasus is offline
      VaultWiki Team
      To fix the alignment of the comments you would remove all mentions of $spacer_open and $spacer_close from template vault_discussion_main

      To fix the white page, in vault/tabs/special_tab_discussion.php, find:
      Code:
      if ($thread['lastpost'] > $threadview AND $thread['replycount'] > 0)
      {
      	if ($firstnew)
      	{
      		$firstunread = fetch_seo_url('thread', $threadinfo, array('page' => $vbulletin->GPC['pagenumber'])) . '#post' . $firstnew;
      		$show['firstunreadlink'] = true;
      	}
      	else
      	{
      		$firstunread = fetch_seo_url('thread', $threadinfo, array('goto' => 'newpost'));
      			//$threadinfo['url'] . $vbulletin->session->vars['vw_sessionurl'] . 'goto=newpost';
      		$show['firstunreadlink'] = true;
      	}
      }
      Replace with:
      Code:
      if ($thread['lastpost'] > $threadview AND $thread['replycount'] > 0)
      {
      	if ($firstnew)
      	{
      		if (VAULT_40X_COMPAT)
      		{
      			$firstunread = fetch_seo_url('thread', $threadinfo, array('page' => $vbulletin->GPC['pagenumber']));
      		}
      		else
      		{
      			$firstunread = $threadinfo['url'];
      
      			if ($vbulletin->GPC['pagenumber'] > 1)
      			{
      				$firstunread = $threadinfo['url'] . $vbulletin->session->vars['vw_sessionurl'] . 'do=comments&page=' . $vbulletin->GPC['pagenumber'];
      			}
      		}
      
      		$firstunread .= '#post' . $firstnew;
      		$show['firstunreadlink'] = true;
      	}
      	else
      	{
      		if (VAULT_40X_COMPAT)
      		{
      			$firstunread = fetch_seo_url('thread', $threadinfo, array('goto' => 'newpost'));
      		}
      		else
      		{
      			$firstunread = $threadinfo['url'] . $vbulletin->session->vars['vw_sessionurl'] . 'goto=newpost';
      		}
      
      		$show['firstunreadlink'] = true;
      	}
      }
      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 6:13 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.