Q: How do I create a new page in Tavi Wikki ?
A: You add a new WikiWord, which is a several words with capital letters all squished together. After saving the page, you will see a question mark beside your new WikiWord. If you click on the question mark, you will create and edit the new page.
Q: How do I delete a new page that I have created with the previous metod (the WikiWorkd? method)?
Q: How do you get the document history link to work when you get this message; Warning: fopen() [function.fopen]: SAFE MODE Restriction in effect. The script whose uid is 502 is not allowed to access /tmp owned by uid 0 in /var/www/html/tavi/lib/diff.php on line 14
Warning: fopen(/tmp/wiki_3055_1.txt) [function.fopen]: failed to create stream: No such file or directory in /var/www/html/tavi/lib/diff.php on line 14
Error creating temporary file.
Please contact the administrator for assistance.
A: I just put the source of a modified diff.php on NoExecuteOnServer. This uses native php code for the diff functionality. I hope the developers make this optional in next release.
Q: How to create a link that will pop up and open a new window?
A: It's believed that users who wants to pop up links in another windows knows their browsers shortcut to do so. It's not Tavi's responsibility to open other windows, and thus not available. It's possible to write patches to accomplish this, but they are often not crossbrowser compatible, and/or depends on javascript.
Q: Is it possible to restrict the editing/saving actions of the wiki to certain users (with a login/password) ?
A: Not really, but some people think this is a good thing!
A clumsy hack is available if you run your own apache server, and is as listed below:
AuthType Basic AuthUserFile /etc/httpd/passwd <LimitExcept GET> AuthName Tavi Require valid-user </LimitExcept>
This could be set in a .htaccess file if AllowOverride AuthConfig is set for your web space. See the [Apache Documentation]
I agree, though, that if you believe in the Wiki:WikiWay? this control should be intentionally left out.
There is always a way! --AndrewJorgensen
Q: Sometimes I get messages similar to the following:
A: Check your config.php file. Are there any lines or spaces before the <?php at the top? Are there any spaces or lines after the ?> at the bottom of the file (even a seemingly harmless blank line)? If so, delete them.
A2: There is also the possibility that you have already sent some form of output to the browser. In this case simply placing the line <? ob_start(); ?> will correct this problem.
A3: I have met the same thing when I install Tavi at the first time, and it is because the <? ?> tag was not allowed in the php.ini(only <?php ?>).
Q: What are the minimum mysql database permissions for Tavi?
A: INSERT, SELECT, UPDATE, and DELETE should be sufficient for day-to-day usage of the script. That excludes the creation of the database itself and the database tables, which is a one-time operation.
Q: My document history seems to be clean up too frequent. How to setup system so pages are kept for ever?
A: This should easily be accomplished by setting $ExpireLen=0. However due to a bug in versions previous to 0.25, this didn't happen. In fact any version of pages older than a day (except for the newest version) was deleted, when $ExpireLen=0. See TaviBugsFixed/ExpireLenBug.
Q: Does Tavi support using HTML in a page? If so, how? If not, is this planned?
A: See EnablingRawHTML..
Q: I just installed Tavi and some pages (in particular submitting a newly edited page) are taking a ridiculously long time to load. What's wrong?
A: This could well be a problem with Tavi using gethostbyaddr() in several places throughout the script, which on some servers causes a major performance hit. A "quick hack" solution is to remove all calls to gethostbyaddr($REMOTE_ADDR) and replace them with $REMOTE_ADDR on its own. In Tavi 0.22 you need to edit lib/category.php line 46, action/admin.php line 80 and action/save.php lines 32 and 53.
Q: OK so I just made these recommended changes, but I'm still having performance problems. Now what?
A: I was able to gain a lot on latency time by using a static .css instead of calling the main script with ?action=style .
A: I found that when I changed my configuration so that it didn't use the logo (in the upper right corner) from sourceforge, it sped things up tremendously.
Q: TaviFeatures says it's possible for the administrator to secure a page to prevent editing. How is this done?
A: Go to the /admin page and use the lock/unlock feature. Be sure to have the admin enabled (in config.php)
Q: How do you embed graphics other than including a link to a graphic on another Web site?
A: I sure hope someone will come up with the answer. I have noticed that most Wiki sites are free of graphics yet sometimes only a map, photo, or diagram will do. Twiki allows you to upload a graphic, which initially embeds at the foot of the page. But the link can be cut and pasted in where you want it.
A2: As of 0.22 - which I just recently installed - using the URL of the graphic syntax works for me.
A3: As of 0.25 - soon to be released - enables you to use InterWiki references to graphics.
A4: No you can't upload a graphic. You can put the graphic somewhere else and link to it as A2 says, but you can't upload an image to the wiki. I also agree this would be a very nice feature to have.
Perhaps somebody here can help me, I do not know where to ask questions about Tavi.
Q: When I edit the page and save, the page nevertheless is blank, even though the text is saved in the database. When I edit again the text is displayed in the text field.
A1: Probably your browser displays the cached version of the page. Hit the Shift+Refresh! (Ctrl+Refresh in IE.) I got the same problem. Is this a bug? I think it is. There should be a way to fix this, as for example UseMod does not have this problem.
A2: OK, I had to find a solution to this problem, and I finally came up with this hack: Change ./lib/headers.php to say:
// header("Expires: $now GMT");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: $now GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
Q: When I click View document history I get Error creating temporary file.
A: That is a permission problem, fix it with chmod 777 /tmp.
A: Actualy the command should be chmod 1777 /tmp or chmod u=rwx,g=rwx,o=rwxt /tmp.
Q: How come when I type "'" it looks ok from preview, and in MySQL database, but afer I saved the document it changed to "\'". Why has is there a backslash? It's not there in MySQL!
So what's wrong with my system? How can I fix it?
Q: I wanna edit the footer of my page ( in the same place of search, edit, etc ) like as this web, it have the sourceforge logo... i wanna do the same thing...
A: Take a gander at template/common.php and look down near the bottom of the file.
Q: I'm getting strange errors when using safe mode?
A: See the page TaviBugs/PhpSafeMode. This will hopefully be adressed shortly... ;)
Q: When excuting "http://mysite/tavi/index.php?action=style", My Apache server sent out "text/html" header but not "text/css" one.And then the wiki.css failed to take effects on my Tavi.How can I do?
A: I just tested this against the latest version, and it does send the "text/css"-header. Which version are you using? If not the latest, please upgrade.
Q: When cutting and pasting the InterWiki page from tavi into my own tavi I only see the first two InterWiki links listed in the db, what have I done wrong?
A:...
Q: My "Document last modified" timestamp in the footer is always giving bogus dates and times. Not just a timezone issue: All the pages are showing that they were last modified on Wed, 03 Dec 2003! please see http://disco.nnected.com/wiki I'm using the latest version .25 from sourceforge. Is there something that needs to be changed in the template? I know very little about PHP but can read it somewhat. It is acting as if nothing is ever setting/updating the argument 'timestamp' when the page is saved, or if it did it it only did it once.
A:
Q: I have been looking like crazy through the code before bothering you with this question: How can I switch off the visibility of visitors' IPs? They, (just like me) appreciate a relative privacy, and I don't want to show their IPs to the world! I feel that is an intrusion into their lives (and I have the Apache records anyway, so in case of probleme I can check & take action if necessary).
Even when they register, their nick name will show, but when you hover over that, the IP still shows up.
Thank you in advance for your help/counsel/ideas.
PS: Even better: how can I completely erase IP info from the Tavi database, or replace them with 198.137.240.92 (whitehouse.gov). Legislation in several countries frowns on keeping "private" data (even if it's dynamic IPs, and yes I know this is contrary to what I said about keeping Apache log data, go figure ;) ).
A: (by author of Q): OK, I found this quick and dirty solution. It's kludgy, but it seems to work: modify the file pagestore.php (in /lib), and replace all occurences of "author" (the field in the mySQL base which contains the IP) with "username" (which contains the handle, or empty). Sorry for the massacre of your code, but hey, it works!