Last modified: 2014-06-23 16:05:43 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T62172, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 60172 - Missing ; in importdump.php
Missing ; in importdump.php
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Maintenance scripts (Other open bugs)
1.21.x
All All
: Unprioritized major with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-17 17:53 UTC by Juan de Vojníkov
Modified: 2014-06-23 16:05 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Juan de Vojníkov 2014-01-17 17:53:50 UTC
I try to run importDump in the specified version about, but it comes with an error, that there is missing ";" at line 6
Comment 1 Aravind K N 2014-01-18 08:42:38 UTC
Could someone assign this to me?
Comment 2 Bawolff (Brian Wolff) 2014-01-18 09:01:24 UTC
(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
Comment 3 Andre Klapper 2014-01-18 15:44:54 UTC
Aravind: Feel free to work on bugs if you think that you have enough information. In this case I doubt.
Comment 4 Juan de Vojníkov 2014-01-22 17:38:17 UTC
> 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.
Comment 5 Andre Klapper 2014-01-22 22:18:27 UTC
Please paste your line 6.
Comment 6 Jesús Martínez Novo (Ciencia Al Poder) 2014-01-22 22:27:24 UTC
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
[16:35:35] <Juandev>	 looks easy:-)

----
[1] http://bots.wmflabs.org/~wm-bot/logs/%23mediawiki/20140116.txt
Comment 7 Andre Klapper 2014-01-22 23:33:58 UTC
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.
Comment 9 Juan de Vojníkov 2014-01-23 13:25:49 UTC
(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.
Comment 10 Andre Klapper 2014-01-23 14:28:24 UTC
=> Not a valid bug.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links