I'm struggling to get the REDIRECT tags to work. Created the article, and the article to redirect from, linked to the article... and I end up only on the article to be redirected from. :S
This occurs because the current code expects the tag to be lowercase as in your example. However, using an uppercase "[REDIRECT]" tag is not caught. Since the editor button would insert an uppercase version of the tag, this problem occurs quite frequently.
Fixed for the next build. Until then you can edit vault/special_class_bbcode.php. Find:
This happens for successful redirects before vBulletin 3.8.0 and after VaultWiki 2.2.2.
The reason is because it attempts to match your user agent with the list of search crawlers, and give a 301 redirect instead of creating a duplicate content page (as a regular user would see). But the list of crawlers is not available globally in 3.7.6, which means we are trying to match an empty string against the user agent (this will be true 100%). On top of this, the 301 redirect creates an empty URL, resulting in a 404. Your server is set up to forward 404's to your home page.
To fix this, open vault/special_class_bbcode.php. Find:
PHP Code:
if (preg_match('#(' . $this->registry->wol_spiders['spiderstring'] . ')#si', $this->registry->session->vars['useragent'], $agent))
Replace with:
PHP Code:
if (empty($this->registry->wol_spiders) AND !empty($this->registry->datastore->dbobject))
{
$this->registry->datastore->do_db_fetch("'wol_spiders'");
}
if (!empty($this->registry->wol_spiders['useragent']) AND preg_match('#(' . $this->registry->wol_spiders['spiderstring'] . ')#si', $this->registry->session->vars['useragent'], $agent))
Ok, tried it, and still not working. Moving me back to the index page.
I've also noticed (on a slightly auxiliary but related point) that the option to 'not create redirect' when renaming an article, doesn't work. It's created a redirect for me.
You made BOTH edits right? Because the second one prevents a server 500 error which may be forwarding to your index. If I erase my wol_spiders in 3.8 (this would match 3.7), I have the same problem and this fix does it for me.
The "do not create redirect" problem is slightly more involved as it involves templates, so you'll have to wait on the next build for that one.
I've got some major problem at the site atm, not sure what's caused it. Did you enable or disable anything to check the contents? Cos now I can't get access to a lot of things, including editing posts, etc.
Ok, got it working. Worked out what you switched to show the content data. Switched it off, and then double checked the file. Not sure what caused the problem, but reuploading eventually worked.
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.