Hi everybody!
Some web hosting services have banned the usage of the glob() function, because of a flaw in it. I would like to know if I can globally replace this function by an other one, with the same name. For example, an hard-coded glob() function in some php file (which contains opendir(), readdir(), and so on...) would replace the one of PHP.
Thanks for any suggestion.
Hi,
I moved my Wiki (1.9) onto an own server (Apache2, php5, mySQL5), which
unfortunately does not have tht much memory (512 MB guaranteed, up to 1 GB
dynamically). For that I finetuned the Apache server processes which use
appr. 40 MB each. So far, so good.
Whenever I edit an article and press 'preview' the memory of one process
explodes to appr. 250 MB, and when I save the article, there's another
proccess using appr. 250 MB. Especially during busy phases (up to 2.000
hits/hour) the server may run out of memery, requiring me to restart the
server.
What actually happens during the preview/saving of an article, that Apache
wants that much memory?
Is there a way to reduce the 'memory hunger'?
Thanks, Udo
--
View this message in context: http://www.nabble.com/Memory-usage-on-webserver-tf3423722.html#a9542544
Sent from the WikiMedia General mailing list archive at Nabble.com.
Hi,
I’m trying to figure out a nasty bug in 1.9.3, which I think may actually be a PHP bug. I’d welcome your thoughts.
The symptom is that since upgrading from 1.6.3 to 1.9.3, some pages in my wiki display as blank. “Some” seems to refer to pages which include certain extended characters, such as the fancy close double quote (but not the open). The historical versions of the same page display as blank too. The page text in the database is still OK, as editing and saving the page fixes it – but where the close quote was, I now have “�?”.
This seems to be a parser bug. Dumping debug statements into the code, and setting $wgEnableParserCache = false, I found that the text was being set to null in the parser at the point where it does this:
$mw = MagicWord::get( 'notoc' );
if( $mw->matchAndRemove( $text ) ) {
Looking into MagicWord.php, at function matchAndRemove, it seems that the text gets blanked by the call to preg_replace_callback, even though there are no matches in this case (the article doesn’t have “__NOTOC__”).
The regular expression being used for this was:
/__NOTOC__/iu
The workaround I found was to remove the “u”; ie. in function initRegex():
< $case = $this->mCaseSensitive ? '' : 'iu';
---
> $case = $this->mCaseSensitive ? '' : 'i';
Note that we don’t use UTF8 much, but some people have pasted the fancy quotes from Windows into some pages.
Any thoughts?
Ian Smith
I hope this is the appropriate forum for such questions.
I installed MediaWiki 1.9.3 this last week. Our hosted server is running PHP
5.1.6 and MySql 5.0.27. Extensions installed so far: Cite, Inputbox, and
now ParserFunctions.
After seeing the Multicol template at work in the Wikipedia tutorial.* I
thought I'd like to add it. Copied: Multicol, Multicol-break, and
Multicol-end. What I don't understand is the variable within the template
that reads like {{{1:20px}}}. Can somebody explain what that is? With it
in I get 3 broken </div> tags. With that entry replaced by just the value
the template works. Is it calling another template?
Be kind to the newbie and use small words,
Thanks!
-Scott
* (
http://en.wikipedia.org/wiki/Wikipedia:Tutorial_%28Wrap-up_and_more_info%29
)
Hello, I seek to be able to migrate my encyclopaedia wiki towards another
waiter. How do I have to proceed? Thank you for your assistance.
--
Nicolas GUERIN.
Bonjour,
Je dispose actuellement de Wikimedia sur http://wiki.freeks-forums.org. Je
compte la migrer sur un serveur dédié. Pourriez vous m'aider pour savoir
comment la migrer.
Merci à vous.
--
Bien à vous.
Nicolas GUERIN.
My wiki unexpectedly became unavailable (no Mainpage displayed). The
error log shows the following sorts of messages. I would very much
appreciate any suggestions on where to start.
The first problem occured when I tried to save edits to a page.
Attempting to save a second time produced no error. (I have plenty of
storage available.) This behaviour happened several times.
[15-Mar-2007 11:38:51] PHP Fatal error: Allowed memory size of
8388608 bytes exhausted (tried to allocate 77824 bytes) in
/home/egnatoff/public_html/wiki/includes/SearchUpdate.php on line 99
. . .
[15-Mar-2007 11:47:23] PHP Fatal error: Allowed memory size of
8388608 bytes exhausted (tried to allocate 19456 bytes) in
/home/egnatoff/public_html/wiki/includes/SearchUpdate.php on line 61
[15-Mar-2007 11:50:28] PHP Fatal error: Allowed memory size of
8388608 bytes exhausted (tried to allocate 77824 bytes) in
/home/egnatoff/public_html/wiki/includes/SearchUpdate.php on line 99
The database then became unavailable.
[15-Mar-2007 13:38:33] PHP Fatal error: Cannot access protected
property DatabaseMysql::$mOut in
/home/egnatoff/public_html/wiki/includes/Database.php on line 429
. . .
The message changed:
[16-Mar-2007 07:00:11] PHP Fatal error: Cannot access protected
property OutputPage::$mParserOptions in
/home/egnatoff/public_html/wiki/includes/OutputPage.php on line 49
. . .
Versions
MediaWiki 1.9.2
My service provider uses
Linux, kernel 2.6.9-023stab040.1-enterprise
Apache 1.3.37 (Unix)
PHP 5.2.1
MySQL 5.0.24-standard
(access to files through cPanels)
Thank you.
Sincerely,
Bill Egnatoff
----------
William J. Egnatoff egnatoff(a)kingston.net
Kingston, Ontario, Canada
613 634-3341
Hi,
I'd like to change the display of the list of files that were uploaded to my
wiki. I'm using 1.6.7. Right now they'r displayed on Special:Imagelist and
if someone wants to check what pages link to a given image they have to
follow the link (desc) in front of a given document.
If possible I'd like to merge both sites (i.e. list with description of what
pages link to a given document) and have sth like:
Name of the document, what wikipages link to it.
Is there a way to achieve it? What should be changed?
Regards,
Aretai