All,
I run a corporate intranet Wiki. It's replacing an ageing Twiki install.
Currently I have set MediaWiki to accept file types of doc, xls, vsd, mdb
etc.
However when I refer to a non image file like:
[[image:plan.doc|Plan for making plans]]
The link appears as a broken link -- e.g. displays the Red "X" and the Alt
Text (although clicking the link actually does link to the correct file).
Right now I'm making pages like this:
== Project to save the world ==
[[image:process_flow.vsd|How to save the world - process flow]]
[[image:role.doc|How to define your role in saving the world]]
[[image:cost.xls|Current Budget for Saving the world]]
<b> Editors note, please go ahead and click the above links. They appear to
be broken but are not. </b>
Now I do have small .gif files for each file type (e.g. the little green X
for excel sheets) but cannot figure out how to get MediaWiki to display the
correct generic thumb nail.
Any help would be appreciated!!
Sam Stern
Baltimore, MD, USA
Hello,
Mail is probably mostly intended for brion and tim as well as other
developers.
It looks like our .plan is to get 1.4 by the end of the year. I believe
we should call for a "feature freeze" soon and launch the beta at the
beginning of december.
Given that most dev will probably be out during the last weeks of
december that will let us until ~ december 20th to fix the most
important bugs. Then in January we can work toward the release candidate
/ 1.4.0.
There is two huge patch as far as I know:
- Enotif : bring email notification in MediaWiki
_ Database schema change.
Enotif can probably be commited by the end of november and be shipped in
the first 1.4 beta. Database schema changes is probably too much work
yet (note: I didn't have a look at SCHEMA branche).
In conclusion:
November:
* add Enotif
* try to update languages files
December:
* launch beta
* fix major bugs reported
* happy xmas
January:
* Release candidate (1.4.0)
Then we can work on having plugins and schema changes.
--
Ashar Voultoiz - WP++++
http://en.wikipedia.org/wiki/User:Hashar
Several weeks ago, I installed mediawiki in my /home/john/public_html
directory and then decided to move it, reinstalling it. I wiped out the
original directory (/home/john/public_html/wiki), deleted the wikidb
database, untarred mediawiki to /srv/www/htdocs/wiki. I ran the config
script, which worked fine. When I try to go to the new wiki, I get this:
Warning: main(/home/john/public_html/wiki/PHPTAL-NP-0.7.0/libs/GetText.php):
failed to open stream: No such file or directory
in /tmp/tpl_0_7_0_19cad7a9135c88ef3048c7649d8c62ba.php on line 1
Fatal error: main(): Failed opening required
'/home/john/public_html/wiki/PHPTAL-NP-0.7.0/libs/GetText.php' (include_path='.:/srv/www/htdocs/wiki:/srv/www/htdocs/wiki/includes:/srv/www/htdocs/wiki/languages')
in /tmp/tpl_0_7_0_19cad7a9135c88ef3048c7649d8c62ba.php on line 1
Where is it getting this old info about the old installation location? I've
repeated the whole thing several times, restarting myqld before reinstalling.
Any ideas??
--
John M. Norvell
Department of Anthropology
William James Hall 314
33 Kirkland St.
Harvard University
Cambridge, MA 02138
Telephone: (617) 496-5690
Fax: (617) 496-8355
Email: norvell(a)fas.harvard.edu
How can I get the really nice URLs? eg,
index.php/Special:Search?search=foo or
[[Special:Search|search=foo|Search for foo]]. I see Wikipedia using
this, but I don't know how I can.
-- Jamie
-------------------------------------------------------------------
http://endeavour.zapto.org/astro73/
Thank you to JosephM for inviting me to Gmail!
On the main documentation page http://meta.wikipedia.org/Enotif , I
opened a section "Reference list ..." where users, who actually use my
patch, ***can place their comments and their name as references for my
patch***.
Please take note, that there are more pages such as one for reporting
bugs. This should not go to the main page.
Moreover - and this as a suggestion to all developers - my pages (at
least) try to show a framework, how a good documentation can look like
from the very beginning (Enotif is still in the beginning phase): a
bugzilla listing for tracking, _and_ a meta-wiki documentation for
reading and shameless editing for improvements.
Tom
hi,
i get for some pages:
[pear_error: message="failed to open stream: Permission denied" code=0
mode=return level=notice prefix="" info=""]
and for others not.
the only thing i did was:
1. upload an image.
2. forget to check the copyright box
3. it came back with a title, but no filename filled in
4. i checked the copyright an pressed ok with an empty filename
5. upgrade from 1.3.3 or 1.3.6 (can't remember) to 1.3.7 by copying
the tar file over the old one
what could be the cause of the error, or how can i track this further
down? i already checked /tmp permissions, images permission.
-solo.
ps:
can you pls respond personally too, as i'm not yet subscribed to the list.
Hello,
at the moment I'm trying to get rewriting to work. although, there seems
to be a problem.
when i open //domain.tld/wiki -> it rewrites to //domain.tld/wiki/
and therefore opens //domain.tld/wiki/Main_Page
when i open this site in Mozilla there is nothing wrong... everything
works. but when I try in IE, I get the Main_Page without any stylesheet.
for some reason it tries to resolve these from: /stylesheets/ instead of
/wiki/stylesheets/. when i change the page name to Main_Pag it does open
correctly with stylesheets from /wiki/stylesheets/
in mozilla the page reads:
Retrieved from "<a
href="http://home.survion.com/wiki/Main_Page">http://home.survion.com/wiki/Main_Page</a>"
in IE the same page reads:
Retrieved from "<a
href="http://home.survion.com//wiki/Main_Page">http://home.survion.com//wiki/Main_Page</a>"
acces.log output:
defiance - - [05/Nov/2004:14:07:49 +0100] "GET /wiki/Main_Page HTTP/1.1"
304 26
defiance - - [05/Nov/2004:14:07:52 +0100] "GET
/stylesheets/commonPrint.css HTTP/1.1" 404 1182
defiance - - [05/Nov/2004:14:07:52 +0100] "GET
/stylesheets/monobook/main.css HTTP/1.1" 404 1182
defiance - - [05/Nov/2004:14:07:52 +0100] "GET
/stylesheets/monobook/IEFixes.css HTTP/1.1" 404 1182
defiance - - [05/Nov/2004:14:07:52 +0100] "GET /stylesheets/IEFixes.js
HTTP/1.1" 404 1182
defiance - - [05/Nov/2004:14:07:54 +0100] "GET /stylesheets/wikibits.js
HTTP/1.1" 404 1182
defiance - - [05/Nov/2004:14:07:54 +0100] "GET
/stylesheets/images/poweredby_mediawiki_88x31.png HTTP/1.1" 404 1182
defiance - - [05/Nov/2004:14:07:54 +0100] "GET /wiki/upload/wiki.png
HTTP/1.1" 304 -
defiance - - [05/Nov/2004:14:07:55 +0100] "GET /favicon.ico HTTP/1.1" 404 994
and when I try to open a different page in IE, it reads:
Retrieved from "<a
href="http://home.survion.com/wiki/Main_Pag">http://home.survion.com/wiki/Main_Pag</a>"
and the access.log output:
defiance - - [05/Nov/2004:13:50:08 +0100] "GET /wiki/Main_Pag HTTP/1.1"
200 1672
defiance - - [05/Nov/2004:13:50:11 +0100] "GET
/wiki/stylesheets/monobook/main.css HTTP/1.1" 304 -
defiance - - [05/Nov/2004:13:50:11 +0100] "GET
/wiki/stylesheets/commonPrint.css HTTP/1.1" 304 -
defiance - - [05/Nov/2004:13:50:11 +0100] "GET
/wiki/stylesheets/monobook/IEFixes.css HTTP/1.1" 304 -
defiance - - [05/Nov/2004:13:50:11 +0100] "GET
/wiki/stylesheets/IEFixes.js HTTP/1.1" 304 -
defiance - - [05/Nov/2004:13:50:11 +0100] "GET
/wiki/stylesheets/monobook/null?\"{ HTTP/1.1" 304 -
defiance - - [05/Nov/2004:13:50:12 +0100] "GET
/wiki/stylesheets/monobook/IE60Fixes.css HTTP/1.1" 304 -
defiance - - [05/Nov/2004:13:50:12 +0100] "GET
/wiki/stylesheets/wikibits.js HTTP/1.1" 304 -
defiance - - [05/Nov/2004:13:50:12 +0100] "GET
/wiki/stylesheets/monobook/bullet.gif HTTP/1.1" 304 -
defiance - - [05/Nov/2004:13:50:13 +0100] "GET
/wiki/stylesheets/monobook/user.gif HTTP/1.1" 304 -
defiance - - [05/Nov/2004:13:50:13 +0100] "GET
/wiki/stylesheets/images/wiki.png HTTP/1.1" 304 -
defiance - - [05/Nov/2004:13:50:13 +0100] "GET
/wiki/stylesheets/images/poweredby_mediawiki_88x31.png HTTP/1.1" 304 -
defiance - - [05/Nov/2004:13:50:14 +0100] "GET
/wiki/stylesheets/images/wiki.png HTTP/1.1" 304 -
defiance - - [05/Nov/2004:13:50:14 +0100] "GET /favicon.ico HTTP/1.1" 404 994
the following is in the vhost-domain.tld.conf (part of the full apache
httpd.conf):
<VirtualHost forum:80>
php_flag register_globals off
ServerName domain.tld
ServerAlias www.domain.tld home.domain.tld
ServerAdmin someone(a)domain.tld
DocumentRoot /home/sites/domain.tld/home/web/
RewriteEngine on
RewriteLogLevel 0
#RewriteCond %{REQUEST_URI} !^/misc/.*
#RewriteCond %{REQUEST_URI} !^/images/.*
RewriteRule ^/site(.*)
/home/zope/zope.fcgi/VirtualHostBase/http/%{HTTP_HOST}:80/Sites/domain.tld/home/VirtualHostRoot/_vh_site/$1
[L]
# rewrite to Main_Page
#RewriteCond %{REQUEST_URI} ^/wiki$
#RewriteRule ^/wiki(.*)
/wiki/index.php?tile=Main_Page [L]
# no rewrite for subdirectories
RewriteCond %{REQUEST_URI}
!^/wiki/(stylesheets|images|skins|upload)/
RewriteCond %{REQUEST_URI}
!^/wiki/(redirect|texvc|index).php
RewriteCond %{REQUEST_URI}
!^/wiki/error/(40(1|3|4)|500).html
RewriteCond %{REQUEST_URI} !^/wiki/favicon.ico
RewriteCond %{REQUEST_URI} !^/wiki/robots.txt
# query string
RewriteCond %{QUERY_STRING} ^$ [OR]
RewriteCond %{REQUEST_URI} ^/wiki/Special:Search
# main rewrite rule
RewriteRule ^/wiki/(.*) /wiki/index.php/$1 [L]
RewriteLog
/home/sites/domain.tld/home/log/rewrite.log
ErrorLog
/home/sites/domain.tld/home/log/error.log
CustomLog
/home/sites/domain.tld/home/log/access.log common
</VirtualHost>
and this is in the LocalSettings.php from mediawiki:
$wgScriptPath = "/wiki";
$wgScript = "$wgScriptPath/";
$wgRedirectScript = "redirect.php";
$wgArticlePath = "$wgScript$1";
$wgStylePath = "$wgScriptPath/stylesheets";
$wgStyleDirectory = "$IP/stylesheets";
$wgLogo = "$wgStylePath/images/wiki.png";
$wgUploadPath = "$wgScriptPath/images";
$wgUploadDirectory = "$IP/images";
does anyone have an idea of what might go wrong? this is a IE only matter
as it seems... any help would be appreciated.
greets,
Gerard
--
Gerard Braad - 'Smartass with attitude'
http://gbraad.spotsnel.nl/
mailto:g_braad@spotsnel.nl
jabber:g_braad@spotsnel.nl
telephone: +31 87 1901 799
Hey all,
I'm still having trouble installing MediaWiki on a Solaris machine. I've got someone with more coding experience helping me out. I've posted his latest problem below, please advise.
Thanks
The installation seems to be working now.
The problem with those "constant already defined" and duplicate
namespace warnings and errors seems to be an issue with relative
pathnames and the require_once statement.
I made these changes to config/index.php:
# require_once( "../includes/DefaultSettings.php" );
# require_once( "../includes/MagicWord.php" );
# require_once( "../includes/Namespace.php" );
require_once( "/absolute/path/to/includes/DefaultSettings.php" );
require_once( "/absolute/path/to/includes/MagicWord.php" );
require_once( "/absolute/path/to/includes/Namespace.php" );
And then the configure/install started working.
Here's the output (on Solaris/SunOS 5.9):
MediaWiki 1.3.7 installation
Please include all of the lines below when reporting installation problems.
Checking environment...
* PHP 4.3.8: ok
* Warning: PHP's register_globals option is enabled. MediaWiki will work correctly, but this setting increases your exposure to potential
security vulnerabilities in PHP-based software running on your server. You should disable it if you are able.
* PHP server API is apache; ok, using pretty URLs (index.php/Page_Title)
* Have XML / Latin1-UTF-8 conversion support.
* PHP's memory_limit is 16M. If this is too low, installation may fail! Attempting to raise limit to 20M... ok.
* Have zlib support; enabling output compression.
* Found GD graphics library built-in, image thumbnailing will be enabled if you enable uploads.
* Installation directory: XXX/mediawiki
* Script URI path: /mediawiki
* MySQL error 1045: Access denied for user: 'root(a)207.228.226.7' (Using password: NO)
* Trying regular user... ok.
* Connected to database... 4.0.20-log; enabling MySQL 4 enhancements
* Database XXX exists
* Creating tables... done.
* Initializing data...
* Created sysop account XXX.
* Initialising log pages...
*
Initialising "MediaWiki" namespace...
Clearing message cache...Done.
Creating LocalSettings.php...
Success! Move the LocalSettings.php file into the parent directory, then follow this link to your wiki.
When move LocalSettings.php and follow that link, first I get the expected
redirect to http://ourdomain/mediawiki/index.php/Main_Page, but then when I
go to that page, I don't get anything back.
Here's the exact output from the server:
$ curl -i http://domain/mediawiki/index.php/Main_Page
HTTP/1.1 200 OK
Date: Thu, 28 Oct 2004 20:08:39 GMT
Server: Apache/1.3.31 (Unix) mod_jk/1.2.5 FrontPage/5.0.2.2635 mod_fastcgi/2.4.2 mod_throttle/3.1.2 PHP/4.3.8 mod_ssl/2.8.18 OpenSSL/0.9.7d
X-Powered-By: PHP/4.3.8
Vary: Accept-Encoding,Cookie
Expires: -1
Cache-Control: private, must-revalidate, max-age=0
Last-modified: Thu, 28 Oct 2004 19:13:27 GMT
Content-language: en
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=utf-8
And that's it. No html, no body, no errors.
I've enabled mediawiki debugging, and here's the log:
Start request
GET /mediawiki/index.php/Main_Page
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Host: domain
Pragma: no-cache
User-Agent: curl/7.10.8 (sparc-sun-solaris2.9) libcurl/7.10.8 OpenSSL/0.9.7d ipv6 zlib/1.1.4
SQL: SELECT cur_text FROM cur WHERE cur_namespace='8' AND cur_title='Linktrail'
LIMIT 1
SQL: DELETE FROM objectcache WHERE exptime<'2004-10-28 20:08:41'
SQL: SELECT value,exptime FROM objectcache WHERE
keyname='our_db:messages'
SQL: SELECT 1 FROM user_newtalk WHERE user_ip='XXX.XXX.XXX.XXX'
Servr: http://domain
SQL: BEGIN
SQL: SELECT cur_id FROM cur WHERE cur_namespace=0 AND cur_title='Main_Page'
SQL: SELECT cur_touched,cur_is_redirect FROM cur WHERE cur_id=5
We're confused.
tryFileCache() - not cacheable
SELECT cur_text,cur_timestamp,cur_user,cur_user_text,cur_comment,cur_counter,cur_restrictions,cur_touched FROM cur WHERE cur_id=5
SQL: SELECT
cur_text,cur_timestamp,cur_user,cur_user_text,cur_comment,cur_counter,cur_restrictions,cur_touched
FROM cur WHERE cur_id=5
SQL: SELECT lcc_cacheobj FROM linkscc WHERE lcc_pageid = 5
SQL: SELECT ss_total_views, ss_total_edits, ss_good_articles FROM site_stats
WHERE ss_row_id=1
SQL: UPDATE cur SET cur_counter = cur_counter + 1 WHERE cur_id = 5
SQL: COMMIT
** private caching; Thu, 28 Oct 2004 19:13:27 GMT **
SQL: SELECT cur_id FROM cur WHERE cur_namespace=2 AND cur_title='XXX.XXX.XXX.XXX'
SQL: SELECT cur_id FROM cur WHERE cur_namespace=1 AND cur_title='Main_Page'
SQL: BEGIN
SQL: UPDATE LOW_PRIORITY site_stats SET
ss_total_views=(ss_total_views+1),ss_total_edits=(ss_total_edits),ss_good_artic\
les=(ss_good_articles)
WHERE ss_row_id=1
SQL: COMMIT
SQL: BEGIN
SQL: COMMIT
Request ended normally
I've also enabled PHP error logging, but nothing is written there. There
don't appear to be any PHP errors.
The SQL database access seems to be working. If I run the queries
manually, I see the data. The site stats (ss_total_views) are being
updated, even though the page isn't actually rendered.
I've repeated the whole thing with language set to "en - English - Unicode"
and to "en - English - Latin-1". Same results.
And, finally, if I run the PHP from the command line, then it totally
works! Something like this:
$ export PATH_INFO="/Main_Page"
$ php index.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<meta name="KEYWORDS" content="Main Page" />
<meta name="robots" content="index,follow" />
<link rel="shortcut icon" href="/favicon.ico" />
<title>Main Page - OurWiki</title>
<style type="text/css" media="screen,projection">/*<![CDATA[*/ @import "/mediawiki/stylesheets/monobook/main.css"; /*]]>*/</style>
<link rel="stylesheet" type="text/css" media="print" href="/mediawiki/stylesheets/commonPrint.css"/>
...
So it must be something to do with the environment where the web
server is running (user "www", group "other"), but I have no idea
how to debug this further.
We don't have root access on the server, so I can't su to www and
rerun the script from the command line.
--
Rich Points
Rich(a)RichPoints.com
http://RichPoints.com
--
Rich Points
Rich(a)RichPoints.com
http://RichPoints.com
Hi!
On #mediawiki <irc://irc.freenode.net/mediawiki> I was told that there
is an option to activate compression on the data stored in the database.
But the user didn't know how to activate that.
Does someone of you know, where I can find this option?
greets, Daniel