But when I go to a new PC and go to the same page, well:
So what is the 'official' way to acquaint the wiki with your id when you are sitting in front of a previously-unused computer and have no password? Thanks!
Alexis ahuxley at eso dot org
You could go back to the other computer, where you first logged in. Set a password from there which you now can use on the new computer... But I think it would be easier to just get a new id and set your preferences once more. Set a password if you want to share your settings between different computers. You can also set a password later.
You can have different ids from different computers with the same user name.
Change $FooterNote for adding a link to the footer. You may also want to change $UserGotoBar instead.
HTH,
A: Here is an example of using the CSS file on the address bar:
It is generally more useful to put the stylesheet URL in one's preferences, however. You can also use the * character instead of a URL to force the wiki to not use a stylesheet. --CliffordAdams
<quote cite="http://lists.example.org/2002/01.html">We quite agree</quote>With this (X)HTML-bit, one could do some nice CSS(2) rendering. I've seen that something like
[[ text form other source ]] --source
might be usual for quoting within Wikis.
Cheers! ~~~Debaser
A: No, there isn't a rule like that in UseModWiki. --CliffordAdams
Hi, I have a created a UseModWiki site with about 50 different pages which works fine. I need to convert all of these pages to static HTML to run on another machine as well which does not have WIKI installed.
How can I convert WIKI pages to static HTML, whilst maintaining the page links please?
Thanks in advance,
B. Stewart
Answer: The wiki software does not include a feature to export HTML. It may be possible to use other software to download all the pages and translate the links. See WikiSuggestions/Caching for some old discussion. --CliffordAdams
Hi, Has anyone got the LatexPatch working and if so, could they explain how it works? I've made the changes suggested on LatexPatch and it doesn't seem to have broken anything, so how do I put some latex into my pages?
From a quick look, it seems that you either use:
$$ ... Latex stuff here ... $$
(pairs of $$ symbols)
\begin{foo} ... Latex stuff here ...\end{foo}
(using \begin{foo} and \end{foo} to surround the text--apparently "foo" is just a label?)
I haven't tried the patch myself, but this is my best guess as to how it works. --CliffordAdams (who enjoyed TeX a long time ago in college).
I installed a wiki at www.utsuck.com/cgi/wiki.pl and the thing is whenever I edit a page I get an error
Can't locate Socket.pm in @INC (@INC contains: /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at (eval 14) line 1.
[Sat Jan 17 03:01:28 2004] wiki.pl: Can't locate Socket.pm in @INC (@INC contains: /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at (eval 14) line 1. BEGIN failed--compilation aborted at (eval 14) line 1.
Anyways if you check the site you can see. The thing is that even though I get the error, the page is still update with my edits. Any suggestions?
Andrew
eval 'use Socket; $iaddr = inet_aton($ENV{REMOTE_ADDR});' . '$rhost = gethostbyaddr($iaddr, AF_INET)';
...and change them to:
# eval 'use Socket; $iaddr = inet_aton($ENV{REMOTE_ADDR});' # . '$rhost = gethostbyaddr($iaddr, AF_INET)';
...commenting out the offending code. --CliffordAdams
exec of /html/cgi/wiki.pl failed (No such file or directory)
I appreciate your help, and ppl love my site, thx to you. BTW got my local wiki how do I insert links to run cached when I'm not online? They work on the first save, but the next edit results in a broken link--if I'm offline. I use safari.
I repeatedly get this error when I click on the standard "Preferences" link: Could not get user-ID lock at D:\html\users\****\****\cgi-bin\wiki.pl line 3681. [the ****s are site and directory names]
The server runs NT. I used the windows.zip file. Other than that, I have set things up just as related in the install docs.
I'm not sure what happened, but I upgraded my OS X(10.2) to OS X(10.3) and ran into some problems with permissions. I figured I'd just change all the directories to 777, but I still get the following error:
cant write /Users/mho/Sites/testwik/keep/H/HomePage.kp: Permission denied at /Library/WebServer/CGI-Executables/wiki.pl line 2211.
Any suggestions? Thanks in advance.
thank you
Petr Vanek
I just noticed my Diff_Log seems to have every entry ever made. Well... it seems to have the first entry and it's 4.5MB, so i'm guessing it's all there. It has Diff data that doesn't show up in the revisions or diff displays. Maintain function doesn't seem to trim it? Is it all chronological and can I trim it manually? Should this be happening? --MichaelHerman
You can simply delete the diff_log file at any time. The wiki does not ever read this file--it is only a log for recovery from disasters or vandalism. --CliffordAdams
Gorgeous! and Thanks! --mh
i made some stupid mistakes when creating my Wiki. i decided to start over from scratch, but i can't delete my database directory or upload anything to it (example: config file). i tried resetting the permissions but it won't let me do that either.
this turns into a problem because once i get it running the way i want, i plan on using it for a client backend for design projects. i'll have to delete entire Wikis every few weeks.
how can i resolve this? -- NinevoltPlus
It sounds like the files created by the wiki are owned by "nobody", and not by your regular login. Here is a simple CGI script that can remove directories. (Not tested, but slightly modified from a working script.)
#!/usr/bin/perl $| = 1; print "Content-type: text/html\n\n"; print "<html><pre>\n"; print "Output:\n"; print `rm -rf /path/to/wikidb`; print "\n...done.\n</pre></html>\n";
Put the 7 lines above into a file in your cgi-bin directory, and replace /path/to/wikidb with your $DataDir setting. Make sure you really want to remove it before executing this script. Also, after executing it you might want to move or remove the script so you don't later remove a live wiki. --CliffordAdams
Hi is it possible to allow for example .swf or videoformats to be shown in the wiki, by changing some setting somewhere? -or modify Thanks in advance
It is not currently possible to display video or .swf in the wiki. If someone can send me (usemod@usemod.com) an example of HTML code to display video/SWF files, I could probably give you the needed changes to the wiki code. --CliffordAdams
I've got the Admin password set, and "Upload" shows as an option next the Preferences link, so that part works. But when I try to upload I get an "Undefined subroutine CGI::upload" error. I'm wondering if I didn't set my $UploadDir? and $UploadUrl? variables correctly. Any thoughts? Here's what put for these variables, as per my ISP's path instructions:
$UploadDir? = '/usr/local/psa/home/vhosts/greenfx.net/httpdocs/asistwiki/asistdocs'; # Full path (like /foo/www/uploads) for files
$UploadUrl? = 'http://www.greenfx.net/asistwiki/asistdocs'; # Full URL (like http://foo.com/uploads)
Your CGI.pm library is too old. Upgrade it or see WikiBugs/FileUploadFails for a quick workaround. Your setttings look fine.--CliffordAdams
Is it possible for UseMod to display Chinese or other two(multi)-byte characters? When I paste Chinese into the edit field it displays, but upon saving it all turns to question marks.
It should be possible--I think some people are using Chinese wikis. You probably need to set the $HttpCharset to the name of the Chinese character set. If you don't set $HttpCharset, the browser doesn't know that the page is using the 2-byte charset, and probably defaults to an 8-bit set. --CliffordAdams
# Replace Bill's_pw (etc) with real passwords. # Note that each password must *not* have any spaces. $EditPass = qw(Bill's_pw Jane's_pw Peter's_pw);
UseModWiki does not support read-access control. (I prefer to leave this job to the webserver.) If you need more fine-grained access control you might want to look at [TWiki] which supports group-based access control (both read and edit). --CliffordAdams
I'd be happy with leaving the job to the web server if it were my own hands-on machine. But I have hosted web space (supanames.co.uk) and I don't think I have such control over the server. Or, if I do, I need a good tutorial. :-) Likewise, even if I'm capable of going through the Twiki learning process, I believe it uses things that aren't available to me, that's one of the reasons why I like UseMod. --John W
Newbie http://hawthorn.csse.monash.edu.au/newbie/
...and then make links like this: Newbie:anotherpage
. --CliffordAdams
Local:anotherpage
or LocalWiki:anotherpage
option built in. -- MikeCastle
Some of the Magic Commands (including Category and WantedPages?) trash the contents of $Text('text') passed to WikiToHTML and maybe other stuff as well. You should make sure WikiToHTML is called before the call to MagicContentMaker?->MakeSection?.
I encountered this problem when I did my enhancement to this patch - so if you happened to use an early posting of my suggestion it might be my fault :-( If so, the latest version of the code will fix things. --DavidClaughton.
Have now got it working fine, will put details on WikiPatches/MagicContent if anyone's having similar problems.
thx for answers
$UserGotoBar = '<a href="https://www.usemod.org/cgi-bin/wiki.pl?SandBox">SandBox</a>';...would add a link to SandBox. (Change the URL for your own wiki.) You could also add more than one link, like:
$UserGotoBar = '<a href="https://www.usemod.org/cgi-bin/wiki.pl?SandBox">SandBox</a> | ' . '<a href="https://www.usemod.org/cgi-bin/wiki.pl?PageTwo">PageTwo</a> | ' . '<a href="http://www.yahoo.com/">Go to Yahoo!</a>';...would create a link bar with links to SandBox, PageTwo?, and [Yahoo!]. --CliffordAdams
Hi, I've been trying to get free links to work, but it ain't happening. Was this feature available in version .90? Also, on perhaps a related note, I note that there is a check at the start of wiki.pl for the "Use Config" variable and a config file. I have Use Config set, but I don't have a config file. I didn't see anything about a config file here, but I may have missed something. My hope is that free links is something I might be able to configure in this file, but until I know more about the file, I can't say. Any pointers would be appreciated. --RandyNovick
Answer: Free links were available in 0.90, and are enabled by setting $FreeLinks to 1. The wiki package that you downloaded contains a sample "config" file that you can copy to your $DataDir and edit there. --CliffordAdams
I would like (for various reasons) to create many wikis in one account. Is such a thing possible with UseMod, or does it by default use a single DB? Is there a different kind of wiki that allows this? --Jessica
UseModWiki does not directly support many wikis, but it is easy to just copy the "wiki.pl" file to a new name and change the $DataDir to another directory. (You will also want to set the wiki name to be different--see the INSTALL directions for details.) I use this method to support several wikis on usemod.com. --CliffordAdams
Now my wiki is having terrible problems. I've chmoded things back to what looks like sensible settings - but I'm still having problems locking files for new users and for editing pages.
What file permissions should I have on the files, especially within the data directory? My site is at www.clickoldham.com if you need to look at it. (and yeah, I know my css needs fixing)
-- Richard Kirkcaldy
The owner of the files was changed from nobody to my username - scripts create files owned by nobody on the server.
I've tried removing temp, that didn't help.
drwxrwxrwx 6 clickold clickold 4096 Feb 5 23:53 . drwxr-xr-x 7 clickold clickold 4096 Feb 4 14:29 .. -rw-rw-rw- 1 clickold clickold 11990 Jan 29 15:44 diff_log drwxr-xr-x 9 clickold clickold 4096 Jan 29 15:37 keep -rw-rw-rw- 1 clickold clickold 44 Jan 28 23:43 maintain drwxrwxrwx 14 clickold clickold 4096 Jan 29 15:31 page -rw-rw-rw- 1 clickold clickold 3936 Jan 29 15:44 rclog drwxr-xr-x 3 99 nobody 4096 Feb 5 23:53 temp drwxrwxrwx 12 clickold clickold 4096 Jan 28 23:27 user
#!/usr/bin/perl print "Content-Type: text/plain\n\n"; # The quotes below are back-quotes (below ~ on most (US) keyboards) print `cp -R /big/dom/xusemod/olddb /big/dom/xusemod/newdb`; print "done.\n";
I got usemod up and running on our site as far as the homepage shows up, I can call the "edit this page" screen and so on. But when I say "Save" for example or call the "Preferences" screen I only get a HTTP 500 internal server error. Any idea what's wrong? -- MickSchmidt?
Given by myself a day later, so if anybody is interested ...
While it's fine if one has a specific user for ftp to upload stuff to the webserver for security reasons ... one should still keep in mind that the webserver itself usually runs under a different account. And if the mywikidb directory belongs to the ftp user and the webserver user has no write access it can't create any files there ...
Giving rights for the webuser for the wikidb and ... magic! ;-)
Hi, I had a wiki installation that used the same directory for the Wiki Db-path and the CGI. I also put in a http-refresh that forwarded a call of /wiki/ to wiki.wiki.pl .
Now I had to move the CGI to /cgi-bin/wiki/ while I guess the wiki-DB should stay at /wiki/ (or is it safe to put in in the cgi-directory?)
I (think I did ;) did change the reqired paths etc. in the wiki.p�l and in the config-file.
When I save a changed wiki-page now I get a directory-view of the /wiki/directory instead of the refreshed page,
So how do I convince wiki to call the refreshed page?
The wikidb is at http://carpe.com/wiki/ the wiki.pl at www.carpe.com/cgi-bin/wiki/wiki.pl
Thanks
OliverG?, 2002-10-23
You should use your web-server's url rewrite mechanism instead of http-refresh. http refresh is probably not passing the parameters to the cgi and there is a bug (actually they call it standard compliance) with Perl's CGI implementation where POST redirect does not work. -- ManpreetSingh [10/23]
Well, ok, HOW do I do this? I am a writer, not a programmer ;)
(The Wiki Installation is OK now, cause they allowed CGI in all directories again, but now the forward sometimes does not work.)
OliverG?, 2002-12-5
The code that does this transformation is in all GetXXXLink? subroutines. The line
<;;pre>
$name =~ s/_/ /g;</pre>
needs to be changed to
# $name =~ s/_/ /g;
or be removed altogether. Note that it is an untested solution -- ManpreetSingh
Suggestions? (08-23-02) -- MonstoBrukes?
Don't know where to post this. I have brand new patched french versions based on UseMod-0.92, on which I've done the following :
As of today, these patched french versions are now available on Internet. A Working wiki site is on http://mkfs.freesurf.fr However, cookies are not availables, so it doesn't work so well. Another prototype site is on http://cmic.freeshell.org/wiki.pl . Fully functional !
For any doc and download, see my Wiki page on http://mkfs.free.fr/wiki.
Updated on 2003-02-12 by cmic@caramail.com
<a href="blahblah"><img src="foo.png"></a>
)?
''Not in the current version. It's not easy to think of syntax for that either; perhaps something like
[http://example.com/foo.png http://example.net/blah A picture of foo]
<a href="http://example.net/blah"><img src="http://example.com/foo.png" alt="A picture of foo"></a>
.
Sounds good to me, shame the existing syntax doesn't work now, viz [https://www.usemod.org/].
I read on the AdminFeatures page, that I can edit-lock the whole wiki and give editor access to those I want to be able to make any changes.
Where do I specify the editor password?
$EditPass = "wikipass";
(If you want to allow more than one password, separate them with spaces like $EditPass = "wikipassone wikipasstwo wikipassthree";
One advantage of multiple passwords is that you can give semi-trusted users a different password than the fully-trusted users.)
Due to a bug in version 0.92, you will also need to set the $AdminPass
before your users will be able to enter an admin password. (The 0.92 code will not display the "Administrator Password" part of the form unless $AdminPass
is non-empty. It should also check $EditPass
, but it currently doesn't.)
Next, to lock the wiki, set $EditAllowed to 0, like $EditAllowed = 0;
(You can also use one of the admin actions to lock the wiki.)
Finally, each editor will need to visit the Preferences page, and type their editor password into the "Administrator Password" field. If this password matches the $EditPass
setting, they should see "User has editor abilities." when they save their preferences. Note that the password is saved (not a flag), so if you change the $EditPass
setting the users will need to enter the new password.
If you have any questions, please feel free to email me (see my user page). --CliffordAdams
WikiWithCascadingStyleSheet may help
Thanks OliverG?
How do I lock my wiki for everybody except the machines on my local network?
I tried installing the UseMod wiki on a webserver, and so far it worked. However, the server is accessible from the outside. I would like to have the wiki writeable ONLY for people on the local network. The ban list seems to assume that I only want to ban a few IPs, but I want it the other way around: banning the world and only letting in a few selected people.
In the future I may want to set it up so that at least part of the wiki is at least viewable from the outside, but another part cannot even be seen from the outside.
I am sure that these things are very easy to do, but I have searched this site for over an hour and have not found a way. Probably I am overlooking something very basic. Who can help?--branko
This needs to be done at the webserver configuration end, not at the Wiki end. Consult your webserver's documentation on how to do that. The facility does not exist in UseMod. A simple patch could make the UseMod code do checks like that too, but again, it's the wrong point for where to do this kind of access control. -- ManpreetSingh
I run german, english and French for a wiki on www.eekma.org/wiki/ with the same special topic, elephants. Most files will be identical but in the the two langauges, and of course interlingua crosslinked. The database as such could theoretically be seperatad, or in the same mapping structure, although they will remain at the same server, for sure. (I had to answer some of my questions myself later, in Italics)
- What is the advantages or disadvantages to mix respectively separate the databases? - Must there be two pearlscripts running in the cgi-bin mapp? - or is it possible to run both on one? - In what way is the speed affected in the two cases?
- If they have to be divided in two, what may be integrated? RecentChanges, HomePage? - can I put the path to the same directory (accepting "shared" bilingual files) or must they be separated? - If I use two programs will it be enough to be logged in once or does one have to login on both? (Obviously not, since the name of the cookie must be different)
If they are in the same structure a probem will apear with words which are identically written in German and English, can this be override in any way?
As for me, I see no other way then to run two different scripts and with two different directory areas...--Dan Koehl
And Ps, how do I configure the lines in the $UserGotoBar = "here?"; ( I have tried to do html links there (like between different languages on the wiki) but nothing except a short text string works for me? What are the possibilties? -- Dan
I tried something like this:
This wiki belongs to <a href="http://www.eekma.org" target="top">EEKMA</a>
$UserGotoBar = 'This wiki belongs to <a href="http://www.eekma.org" target="top">EEKMA</a>';
Regarding my question above about having two different scripts sharing the same page directory. With the present code what will happen? Will there be conflicts? Will pages be deleted? Or, didnt anyone try? I find it worth to consider as a alterantive when you do want to keepe a wiki multilingual, and still not separate the files and the material into different directories, which means pages with identical names would automtaically be multilingual. If I try this now, moving all files to one directory, and ponting all perlscripts to this directory, can anything go wrong, will material be destroyed? (Or do I think wrong, creating unnessesary problems since theres much better always seperating directoris?) Dan Koehl
English Wiki:
sub DoWikiRequest { do "/some/directory/en_config";
French Wiki:
sub DoWikiRequest { do "/some/directory/fr_config";
With UseMod 0.92 under Perl 5.6.1 and 5.8.0, our statements involving action=version, action=login, etc., do nothing. I've copied & pasted statements from the edited pages of UseMod wiki sites where "action=version" works, pasted them into mine, and had no luck. Such statements are displayed without processing the square-brackets or the text they surround. In case it matters, hyperlinks do work. What have I missed? TIA!
This also occurs in UseMod 1.0 against Perl 5.8.0. I create a new, empty wiki page, and paste into it the source of contents of the the UseModWiki "System" page, which contains several cool "action=" statements. After doing so, the new page is *displayed* like this:
BULLET OPENBRACKET UseModQUESTION?:action=login login CLOSEBRACKET - Login as known user
BULLET OPENBRACKET UseModQUESTION?:action=newlogin newlogin CLOSEBRACKET - Login as new user
BULLET OPENBRACKET UseModQUESTION?:action=editprefs editprefs CLOSEBRACKET - Edit user-preferences
... and so on, where I have put WORDS here in place of the symbols that are displayed. So my installation of Perl must be missing something, but I don't know what. Perhaps my Apache server's config isn't? :-) Its logfile is clear, however.
Serving this very generic configuration from a RH 9.0 Linux pentium box, using the perl & apache that comes with the install, produces the same effect.
TIA, again!
How to build an eBook Wiki
Does anyone know what I can correct in the code so it gets accpeted as Valid HTML4? Dan Koehl
Yes. You can fix the markup rules. Just be aware that this is a lot of work, and usually displays the same. -- AlexSchroeder.
Reply: I presume you want to use server side includes (SSI) on wiki pages. I don't think a renaming approach would work, but you might be able to do something with local configuration (like .htaccess in Apache) to make the cgi output also be processed for SSI statements. --CliffordAdams
Isn't this trying to save your wiki pages to the root directory where you're running the perl script? Am new at this, so it's only a guess, but as nobody else has given you an answer, try changing the $DataDir variable in your perl script (wiki.pl). Presumably there's somewhere on the server where you would put normal html files - try setting $DataDir to that. You can then shove a config file in this directory so you don't need to alter the .pl file again. (I think...feel free to correct me if this is rubbish!)
Was following installation instruction but do not get the thing running. Do I really need Apache? By the way couldn't found "htdocs" where to put wiki.gif into. For 1 second prompt is opened, then closed. Browser cannot find page. What could have went wrong? -Mark-
09/17/03 - I have found it is not browser or OS specific, nor wiki 1.0 specific. I had moved the scripts to a new server and it appears to be related to the new server which is Apache 2.0, perl 5.80 on RH9.0. Looked at LimitRequest? directives but that did not seem to be it (size being sent is smaller than the compiled or configured limits). --elly
09/17/03 - I spent all day working on this problem and found that it is an issue with the mod_perl rpm that is installed by default with RedHat-9 and there is no available upgrade/fix in rpm available yet. Instead of compiling another version of mod_perl/apache, I removed the reference to the mod_perl module in the httpd.conf and it will now save > 8190 bytes. I am surprised there are not more people running into this. -elly
Q: Is there a way to review the files uploaded with version 1.0? Let's say I have 30 new images to write up content about, but I've forgotten which ones I did, or lost track of where I was in the list I was uploading. Is there anyway through the wiki to find out? I suppose I can alway browse the directory through the web browser, but I was hoping for an in-wiki solution. Thanks. -- MikeCastle
A: There is no way to do this within the wiki. (The upload feature was a last-minute addition with minimal functionality.) --CliffordAdams
A: Maybe WikiPatches/DirView can help you. --BernhardZechmann
You can do this with the file uploading feature--see UseModWiki/NewFeatures for some (minimal) documentation to get started. --CliffordAdams
Have got a wiki up and running and can change some elements of its appearance using an external .css file. Can't seem to change the colour of the main heading though. How do you do it? Anyone fancy donating some example .css files for their wikis that I can have a look at, I've never used them before.Cheers, Cxx.
After using a wiki for a few days i want to add some admin rights. Ive added a password in $AdminPass? = # Set to non-blank to enable password(s)
signed up as a new user and entered the password http:....../wiki.pl?action=editlinks gives : This operation is restricted to administrators only...
Ive deleted the cookie and tried the same thing with both a new name and an existing one.
How do i debug this? Ive set a password in $AdminPass?
I am helping out my local soccer club with their website, and my understanding is their site is hosted, and they have approx 25mb of space. Won't know final details for a couple of weeks.
1a) Is it possible to run a wiki when you do not have actual access to the Server (except FTP) only some webspace??
1b) If as per 1a it is possible, do I have to ask the hosting site for anything special. Looks like they are running Apache, but not sure.
1c) Do I need any special files, only the hosting site can provide? Files that will allow the wikki to be processed correcly by their server?
2) UseMod looks like it uses flatfiles as a database, which is why I am looking at it, as I can't install a DB in webspace. I do not think it will cause a problem, but has anybody else had problems.
I have searched for the details, but they all assume you know about CGI, PHP, etc, and how they interact with the server. I apologise for the newbie questions, but if I can set up a wikki for the club it will save many hours work for all the voluntary members and let team managers upload results etc.
Thank You John
The main thing that you need is to be able to use "CGI scripts". Your hosting provider should be able to tell you whether you can use "CGI scripts" or not. Many inexpensive web hosts do not allow CGI scripts because they can use more resources than simple web sites.
You should not need any special files. In a few cases, it may help to rename the "wiki.pl" file to "wiki.cgi" before uploading it to the server (using FTP). --CliffordAdams
(2003-10-14) I've recently downloaded UseMod wiki because I was very interested in its upload feature. However, it doesn't quite work as well as I was hoping.
UseMod is installed on a Windows XP SP1 system with Apache2. When I upload a binary file, however, somehow all 'linebreaks' get converted to Windows format. That is, all 0A bytes get replaces with 0A0D (or 0D0A, I'm not very good at that stuff :-) ). What can I do about this? Should I tweak some Apache setting? Is there anything else I can do?
Thanks a lot in advance --OnnoBroekmans
I did some research on my own, and I found a solution. The !SaveUpload? function in wiki.pl seems to contain a bug - well, in any case the ActivePerl FAQ for Windows states that, in order to handle binary files, one should call binmode before writing to a file. Otherwise, linebreaks characters will be messed up in those binary files. Since uploading files only makes sense with binary files, I suggest the following change: --OnnoBroekmans
sub SaveUpload { # Line nr. 4920 my ($filename, $printFilename, $uploadFilehandle); ... $uploadFilehandle = $q->upload('file'); open UPLOADFILE, ">$UploadDir$filename"; binmode UPLOADFILE; # <----- THIS LINE IS ADDED while (<$uploadFilehandle>) { print UPLOADFILE; } close UPLOADFILE; ... }
Your answer is here WikiBugs/UploadOnWindowsNeedsBinmode --MarkButler
Sorry Mark, I should have stated that I already made that change, there are several pages refering to it. I triple-checked it but sadly, it still doesn't work. /me puzzled --VinceBaker
Humm, when I did upload code for myself I had lots of error messages to see if the file create etc succeeded. I am not sure if the same is true here. Best next guess is that you need to look at where the default locations are for upload and make sure that the user can write to it. Normally this is not the case as it can be a security hole. --MarkButler
I probably did something wrong the first time I defined access to the upload directory. I removed the share and the directory, and redo the whole thing on the server:
Create a new directory Right click, Sharing... / Web Sharing / Share this folder Access Permissions: Read Application Permissions: ScriptsThat works perfectly now. Thks. --VinceBaker
I'm not sure whether this should have gone in developer questions, sorry if it's wrong.
I have bunch of text files in a directory structure, and I am in the process of wiki-ising them all, from these files I have produced a new bunch of files which are formated in wikicode. The only thing I have left to do is to somehow shove them into the database.
I tried to do this. perl index.cgi title=Test&oldtime=1070050017&oldconflict=0&text=This%0Ais%20a%0Atest&summary=Test%20test&Save=Save
This results in:-
9658 9659 9660 9661 9662 # Content-Type: text/html; charset=ISO-8859-1 <H2>Invalid URL.</H2></body></html>
is what I'm trying to do impossible, if not, where am I going wrong?
What I was doing is of course very silly when you realise that & will end the command.
perl index.cgi "title=Test&oldtime=1070050017&oldconflict=0&text=This%0Ais%20a%0Atest&summary=Test%20test&Save=Save
" works fine, but should be run from the same user as the database is stored as to prevent permission denied style problems.
=OldPageName=NewPageName?
...which will rename OldPageName to NewPageName? (case sensitive!) throughout the wiki. (The linkbacks will be changed if the checkbox "Substitute text for rename" is checked.) The editlinks action will also (by default) edit the RecentChanges list to use the new name. --CliffordAdams
juanmampurl@NOSPAMhotmail.com.
Thanks.
It sounds like your IIS installation isn't recognizing that wiki.pl is a CGI script. Visit UseModWiki/InstallWindows for some tips on using the wiki with IIS.