I have tried running them from the command line, then i commented out the bit in commandline.inc and tried running them from a brouser and all i get is this message,
"Warning: The argument needs to be an array in c:\phpdev\www\cmawiki\maintenance\commandLine.inc on line 27
Warning: Variable passed to reset() is not an array or object in c:\phpdev\www\cmawiki\maintenance\commandLine.inc on line 34 A copy of your installation's LocalSettings.php must exist in the source directory. "
What am i doing wrong here? I have a copy of localsettings.php in the root directory of my wiki and i have set adminsetting.php.
As a side point im still getting the following errors , plus not getting any errors when i save just a page not availible every time i commit and edit!
But i think i need to get these maintenance files to run before i try anything else? or can anyone help?
please? not enjoying being the wiki monkey anymore!
regards caspar
[Mon Jul 18 16:25:36 2005] [error] [client 172.28.84.50] Filename is not valid: c:/phpdev/www/special:randompage [Mon Jul 18 17:04:24 2005] [error] [client 172.28.84.50] Filename is not valid: c:/phpdev/www/special:specialpages [Mon Jul 18 17:04:28 2005] [error] [client 172.28.84.50] Filename is not valid: c:/phpdev/www/special:recentchanges [Mon Jul 18 17:04:30 2005] [error] [client 172.28.84.50] Filename is not valid: c:/phpdev/www/special:randompage
=============================================================== National Australia Group Europe Limited (Company Number 02108635, Registered Office 88 Wood Street, London EC2V 7QQ) (NAGE) is a subsidiary of National Australia Bank Limited (an Australian registered company). The following UK companies are authorised and regulated by the Financial Services Authority: Clydesdale Bank PLC (trading as Clydesdale Bank and Yorkshire Bank), MLC Savings Limited, MLC Trust Management Company Limited, Clydesdale Bank Insurance Brokers Limited, Yorkshire Bank Financial Services Limited, National Australia Insurance Services Limited and Custom Fleet Limited.
The views and opinions expressed in this email may not reflect the views and opinions of any member of the group of which NAGE forms part. The information contained in this message is confidential and may also be privileged. It is intended only for the addressee named above. The unauthorised use, disclosure, copying or alteration of this message is strictly prohibited. If you are not the addressee (or responsible for delivery of the message to the addressee), please notify the originator immediately by return message and destroy the original message. This message and any attachments have been scanned for viruses prior to leaving the NAGE network. However, NAGE does not guarantee the security of this message and will not be responsible for any damages arising as a result of any virus being passed on or arising from any alteration of this message by a third party. NAGE may monitor emails sent to and from the NAGE network.
casper.levy@eu.nabgroup.com wrote:
I have tried running them from the command line, then i commented out the bit in commandline.inc and tried running them from a brouser and all i get is this message,
Maintenance scripts need to be ran from the command line, not the browser ! So you should let them call commandline.inc and use the php client to run them.
Example when refreshing the cache for special pages:
hashar:/v/w/m/maintenance$ php updateSpecialPages.php Ancientpages got 143 rows in 0.15s BrokenRedirects got 3 rows in 0.07s Deadendpages got 81 rows in 0.09s Disambiguations got 1 rows in 0.11s <snip> hashar@bihash:/v/w/m/maintenance$
That's really not meant to be run from a browser.
Ashar Voultoiz wrote:
Maintenance scripts need to be ran from the command line, not the browser ! So you should let them call commandline.inc and use the php client to run them.
Not only that, but remember that the PHP command line interface executable is probably not the same as the web executable. I keep all my development in Linux, so I can't help you--you'll have to actually read the PHP documentation. But I believe I've heard that php-cli.exe is the proper way to run PHP scripts from the command line under Windows.
Hínandil
On 7/19/05, casper.levy@eu.nabgroup.com casper.levy@eu.nabgroup.com wrote:
I have tried running them from the command line, then i commented out the bit in commandline.inc and tried running them from a brouser and all i get is this message,
"Warning: The argument needs to be an array in c:\phpdev\www\cmawiki\maintenance\commandLine.inc on line 27
Warning: Variable passed to reset() is not an array or object in c:\phpdev\www\cmawiki\maintenance\commandLine.inc on line 34 A copy of your installation's LocalSettings.php must exist in the source directory. "
What am i doing wrong here? I have a copy of localsettings.php in the root directory of my wiki and i have set adminsetting.php.
As a side point im still getting the following errors , plus not getting any errors when i save just a page not availible every time i commit and edit!
But i think i need to get these maintenance files to run before i try anything else? or can anyone help?
please? not enjoying being the wiki monkey anymore!
There are a number of differences between running a script CLI and web.
I actually wrote a adaptor script for the update, seeing as I can't get my CLI working. It also does some primitive conversion from CGI to argv.
The script is at http://endeavour.zapto.org/astro73/upgrade.txt. Be sure to look at it before running.
Warning: Do not leave this enabled in a production enviroment. It is a hack and should be treated as such. If someone finds it from the outside, it can lead to serious trouble.
-- Jamie ------------------------------------------------------------------- http://endeavour.zapto.org/astro73/ Thank you to JosephM for inviting me to Gmail! Have lots of invites. Gmail now has 2GB.
mediawiki-l@lists.wikimedia.org