I can not run update.php, I did it php5 update.php as well. It gives me :
"parse error, unexpected T_ARRAY, expecting '&' or T_VARIABLE in
.../w/extensions/SemanticMediaWiki/includes/SMW_GlobalFunctions.php on line
221"
MediaWiki 1.16.0, PHP 5.2.9 (cgi), MySQL 5.0.91mm-log, Semantic MediaWiki
(Version 1.5.1.1)
/**
* Formats an array of message strings so that it appears as a tooltip.
* $icon should be one of: 'warning' (default), 'info'.
*
* @param array $messages
* @param string $icon Acts like an enum. Callers must ensure safety, since
this value is used directly in the output.
* @param string $seperator
*
* @return string
*/
Line221: "function smwfEncodeMessages( array $messages, $icon = 'warning',
$seperator = ' <!--br-->' ) {
if ( count( $messages ) > 0 ) {
SMWOutputs::requireHeadItem( SMW_HEADER_TOOLTIP );
foreach( $messages as &$message ) $message = htmlspecialchars(
$message );
$messageString = implode( $seperator, $messages );
return '<span class="smwttpersist"><span class="smwtticon">' . $icon
. '.png</span><span class="smwttcontent">' . $messageString . '</span>
</span>';
} else {
return '';
}
}"
What is wrong?
--
Natasha Brown skype: russian_natasha
Hi all,
We are currently relocating some servers internally in the datacenter.
As a consequence, search snippets, "did you mean..." and interwiki
search are going to be turned off during this time, and only bare
results shown. This will affect all WMF wikis. I expect, if everything
goes well, that in around 4-5h things are going to go back to normal.
Cheers, Robert
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
svn.wikimedia.org says that [0] should have dumps of the repository, but
there's nothing there. Is that intended? If so, the link should perhaps
be removed. Otherwise, it appears there may be missing backups.
- -Mike
[0] http://svn.wikimedia.org/dumps/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAkxjVioACgkQst0AR/DaKHtbQgCeLBhUxo175TP6o64mynzGnd0b
RZgAniBSdRNEaEmMMz102LcVME/QGsov
=OcGF
-----END PGP SIGNATURE-----
en.wikipedia.org says upon saving an edit:
This wiki has a problem
Sorry! This site is experiencing technical difficulties.
Try waiting a few minutes and reloading.
(Cannot contact the database server: Unknown error (10.0.6.26))
Hello,
In order to test SMW, I would like to try out your Selenium testing framework, as described here [1].
Two things are not that clear to me:
- "As of now, you have to manually add the test file to maintenance/tests/RunSeleniumTests.php. This will be replaced by a command line argument in the future." What exactly is one supposed to do here?
- Also, in section "Architecture" some files are mentioned, that I cannot find in /trunk/phase3, e.g., selenium/SimpleSeleniumTest oder selenium/LocalSeleniumSettings.php.sample. Why is this not the case?
Regards,
Benedikt
[1] http://www.mediawiki.org/wiki/SeleniumFramework
--
Karlsruhe Institute of Technology (KIT)
Institute of Applied Informatics and Formal Description Methods (AIFB)
Benedikt Kämpgen
Research Associate
Kaiserstraße 12
Building 11.40
76131 Karlsruhe, Germany
Phone: +49 721 608-7946
Fax: +49 721 608-6580
Email: benedikt.kaempgen(a)kit.edu
Web: http://www.kit.edu/
KIT - University of the State of Baden-Wuerttemberg and
National Research Center of the Helmholtz Association
I'm wondering if anybody still maintains the Interwiki Link Checker
http://toolserver.org/~flacus/IWLC/
I noticed recently there are heaps of pages on sh.wp whose titles and
subjects match up to articles on other Wikis but which have no links.
Is there any way we could revive this project?
-m.
I've got an instance of phpUnderControl <http://phpundercontrol.org/> up
and running at
http://ci.tesla.usability.wikimedia.org/
In any case, it runs several code-analysis tools on the MediaWiki core,
produces the documentation, using PHPDocumentor, and then runs the unit
tests (including the parser tests, but not, at this point, the Selenium
tests).
If any of the tools produces warnings or errors, they're stored in the
log and can be accessed via the web UI.
After a run, the server waits 5 minutes, checks the SVN repo to see if
any modifications have been made, and, if so, runs the process again.
The UI has the following tabs:
* Tests
http://ci.tesla.usability.wikimedia.org/cruisecontrol/buildresults/mw?tab=t…
A list of the tests performed and whether or not they passed. The
parser tests don't (yet) have their titles here, but they are run.
* Metrics
http://ci.tesla.usability.wikimedia.org/cruisecontrol/buildresults/mw?tab=m…
Various charts showing when tests were passing or not, the level of
code coverage, etc.
* Coverage
http://ci.tesla.usability.wikimedia.org/cruisecontrol/buildresults/mw?tab=c…
This shows what sort of coverage the tests are providing. You can
drill down to the individual line, etc.
* Documentation
http://ci.tesla.usability.wikimedia.org/cruisecontrol/buildresults/mw?tab=d…
The output of PHPDocumentor. (http://www.phpdoc.org/)
* CodeSniffer
http://ci.tesla.usability.wikimedia.org/cruisecontrol/buildresults/mw?tab=p…
CodeSniffer does style checks on the code. Since we don't have a
plugin describing our coding style for CodeSniffer written yet, it
is using the PEAR coding guidelines.
Note that it can analyze CSS and JS as well as PHP.
* PHPMD
http://ci.tesla.usability.wikimedia.org/cruisecontrol/buildresults/mw?tab=p…
PHP Mess Detector (http://phpmd.org/) does for PHP what PMD
(http://pmd.sf.net) does for Java. It takes a given PHP source code
base and look for several potential problems within that
source. These problems can be things like:
* Possible bugs
* Suboptimal code
* Overcomplicated expressions
* Unused parameters, methods, properties
* PHP CPD
http://ci.tesla.usability.wikimedia.org/cruisecontrol/buildresults/mw?tab=c…
PHP Copy Paste Detector. The goal of phpcpd is not to replace more
sophisticated tools such as phpcs, pdepend, or phpmd, but rather to
provide an alternative to them when you just need to get a quick
overview of duplicated code in a project.
(Descriptions copied from the respective software's websites.)
Right now, because of the memory requirements of some of the tools, I've
restricted them to the includes/api directory. I've run the whole suite
of tools against the code on my own laptop — the memory simply isn't
available on the server.
So, this is a first start. Give it a look and let me know what you
think.
Mark.
--
http://hexmode.com/
Embrace Ignorance. Just don't get too attached.
> In reply to:
> Message: 4
> Date: Sun, 8 Aug 2010 23:34:36 +0000 (UTC)
> From: Natasha Brown <learnrussianspeakrussian(a)gmail.com>
> Subject: [Wikitech-l] I need an extra tab.
> To: wikitech-l(a)lists.wikimedia.org
> Message-ID: <loom.20100809T012506-814(a)post.gmane.org>
> Content-Type: text/plain; charset=us-ascii
> Thanks,
>
> I do not know php yet, but I have tryed it anyway, it gives me syntax mistake
> [...]
You could also try http://www.mediawiki.org/wiki/Extension:CommentPages
-bawolff
It sounds so perfect: you can post your snarky comments to the mailing list
without having to really be subscribed. Just use this handy form!
It turns out that Gmane has two rigid limits in its posting form: (1) lines
can't be longer than 80 characters and (2) you can't have "too much" quoted
material in your reply. These aren't warnings, mind you, they're imposed
limits that prevent the mail from being submitted.
And it now appears that it also mangles subject lines containing quotation
marks.
So much for that noise. I've properly subscribed now. Apologies for the
foul-up.
MZMcBride