I try to run importDump in the specified version about, but it comes with an error, that there is missing ";" at line 6
Version: 1.21.x
Severity: major
I try to run importDump in the specified version about, but it comes with an error, that there is missing ";" at line 6
Version: 1.21.x
Severity: major
(In reply to comment #0)
I try to run importDump in the specified version about, but it comes with an
error, that there is missing ";" at line 6
Can you verify your copy of importDump.php is exactly the same as the official copy downloadable from MediaWiki.org (Link 6 is a code comment, so its unlikely to be missing a semi-colon)
Please also include:
*The exact error message (Is the missing semi-colon in importDump.php, or did the error just happen while running the script)
*What version of php you are using on the command line (e.g. do php --version). Remember that your command line php might be a different version than your web server's php
Aravind: Feel free to work on bugs if you think that you have enough information. In this case I doubt.
Can you verify your copy of importDump.php is exactly the same as the
official
copy downloadable from MediaWiki.org (Link 6 is a code comment, so its
unlikely
to be missing a semi-colon)
Yes, I was not manipulated MW scripts.
Please also include:
*The exact error message (Is the missing semi-colon in importDump.php, or did
the error just happen while running the script)
The exact error message is: "-bash: line 6 syntax error near unexpected token ;". I dont know, whether is the error in the script itself. This was told me on IRC channel. Due to this error, I am not able to run the script. I am using WinSCP 5.1.7 console to run scripts.
*What version of php you are using on the command line (e.g. do php
--version).
PHP 5.4.24
Remember that your command line php might be a different version than your
web
server's php
Well, server's php is 5.4.
Juan de Vojníkov: Do you have still issues with update.php? From the IRC channel conversation [1], I guess it was already resolved. Apparently, you executed update.php directly by the shell instead of passing it to php:
[16:31:57] <Juandev> hi
[16:32:19] <Juandev> I am trying to execute commond of update.php, but there is a following error:
[16:32:27] <Juandev> -bash: line 6: $: command not found
[16:32:31] <Juandev> what the problem?
[16:32:48] <MatmaRex> Juandev: run it with php, not bash
[16:33:07] <Juandev> what does it mean?
[16:33:17] <MatmaRex> php maintenance/update.php
[16:33:24] <MatmaRex> !upgrade
[16:33:25] <wm-bot> http://www.mediawiki.org/wiki/Manual:Upgrading
[16:33:32] <Juandev> umm
[16:33:53] <Juandev> another error: Cannot get command line arguments, register_argc_argv is set to false
[16:34:42] <MatmaRex> Juandev: https://www.mediawiki.org/wiki/Manual:Upgrading#What_to_do_in_case_of_.27register_argc_argv_is_set_to_false.27_error
[16:35:08] * Juandev looks\x01
[16:35:35] <Juandev> looks easy:-)
[1] http://bots.wmflabs.org/~wm-bot/logs/%23mediawiki/20140116.txt
We need a copy and paste of the command entered and the complete output given. Paraphrasing or only providing partial output can lead to confusion.
(In reply to comment #5)
Please paste your line 6.
Yep, I have a comment there too: * http://www.mediawiki.org/
(In reply to comment #6)
Juan de Vojníkov: Do you have still issues with update.php? From the IRC
channel conversation [1], I guess it was already resolved. Apparently, you
executed update.php directly by the shell instead of passing it to php:
Thank you Jesús, this problem was resolved. Well, I dont know how to pass it to php.