-
Install help
In the very early days of figuring out this whole thing.
But I've followed the installation instructions at
Installing VaultWiki
And now I'm a bit stuck. When I go to the forum that's linked to the default namespace I see two errors. At the top of the page it says:
Code:
Warning: stristr() [function.stristr]: Empty delimiter. in [path]/vault/special_plugins.php on line 458
and then where the forum usually loads it has a VBulletin error message:
Code:
Unable to add cookies, header already sent.
File: /home/thefreek/public_html/vbforum/includes/class_core.php
Line: 3239
Any ideas what's wrong?
-
Well I guess this can happen if any of the following GLOBAL phrases are missing:
- post
- posts
- thread
- threads
- replies
- vault_comment
- vault_comments
- vault_article
- vault_articles
I would first "Search in Phrases" in the AdminCP to make sure these phrases exist.
-
Thanks for your help Pegasus.
I searched for those phrases and:
# post
# posts
# thread
# threads
# replies
all exist in GLOBAL.
# vault_comment
# vault_comments
# vault_article
# vault_articles
don't seem to exist anywhere.
I uninstalled the product and reinstalled it to see if there's any difference but it's still the same error message.
-
Well, it's completely illogical that those phrases would be missing and yet the phrases exactly after them in the product file would be present (ruling out reaching the memory limit during install). So I'm not exactly sure why any of the phrases are empty, but I added some checks to make sure after the vault_special_rephrase hook, which is where admin-generated inconsistencies can begin to happen.
In vault/special_plugins.php, find:
PHP Code:
($pos = stripos($vbphrase["$key"], $vbphrase["$key2"])) !== false
Replace with:
PHP Code:
!empty($vbphrase["$key"]) AND !empty($vbphrase["$key2"]) AND ($pos = stripos($vbphrase["$key"], $vbphrase["$key2"])) !== false
-
I've implemented that change and nothing has changed.
Just to be clear on what has happened:
I cannot find the following phrases when I search for them:
# vault_comment
# vault_comments
# vault_article
# vault_articles
I did find the other phrases listed above but I presume they're already in vbulletin before I installed this product?
Any more ideas?
-
What is the value of the Navbits Compressor Phrases option? If this is not completely empty or there is an accidental line break somewhere, this could also cause that issue.
-
The Additional Navbits Compressor Phrases is empty.
The Activate Navbits Compression? is at Yes.
Should I have something in the first box? And if so, what? Thanks for your help so far Pegasus. Don't fully understand alot of this.
-
Having the same issue as therock67, so I'll keep checking back here and if I manage to find a solution I'll post it here as well.
-
Unshra
In the Wiki Settings menu in the admincp I changed the setting for:
Activate Navbits Compression?
to No.
Then I reloaded the page (maybe I rebuilt the namespaces - can't remember) and it seems to be working for me at the moment. Still only figuring it out though.
-
Well, that extremely narrows down the problem, but I still can't reproduce it. I have added some checks to prevent empty values in the loop in the future, but I'm a bit baffled as to why the compression loop started at all when your option was empty.
What PHP version are you using? Is it running in safe mode?
-
My PHP version is: 5.2.6
Not sure how I'd know if it's Safe Mode or not.