Tim Starling <tstarling <at> wikimedia.org> writes:
On 13/08/10 08:06, Natasha Brown wrote:
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"
Line221: "function smwfEncodeMessages( array
$messages, $icon = 'warning',
$seperator = ' <!--br-->' ) {
Array type hinting is supported in PHP 5.1+. You say you have 5.2.9
but you probably don't, you probably have 5.0. The version you see on
the command line doesn't have to be the same as the one it uses for
the web.
Thanks Tim and Aryeh,
My hosting have sorted it out! Apparently I had to pay attention to the error
that was saying:
Cannot get command line arguments, register_argc_argv is set to false
To resolve the problem they have created a php.ini file with the following line:
register_argc_argv = true. After that the update.php script has been executed
and completed successfully.
I am grateful for your help and support. I have only started the project because
I have read somewhere that it was easy. I have forgot where I have read it, but
I am ever so thankful for the person who wrote it: he gave me chance to discover
things. I am so impressed with the work that you have done and still doing. I
hope that I can be of any use, but I am old and my brain is a bit rusty.
I am lucky with the hosting as well, they have been very patient with me. I can
only hope that the next update I will run by myself.
Natasha Brown
http://wikiTranslate.org