Hi All,
I have tried this upgrade twice now, carefully reviewing each step as described here: http://www.mediawiki.org/wiki/Manual:Upgrading and both times, I get stuck at what appears to be the exact same place.
I have enabled $wgShowExceptionDetails = true; in LocalSettings.php but nothing is displayed in the web browser. The only message I get is in the apache logs and the fatal message is:
PHP Fatal error: Call to undefined method ACTION::getActionName() in /var/www/wiki/includes/Wiki.php on line 317
I have some php experience but get lost quick in this code. There are methods/functions/tools that I've never used before so I'm having difficulty following it.
I've done everything it told me to on the upgrade page.
Download new Remove old Move new to web root Copied old LocalSettings.php to new Turned on wgShowExceptionDetails Updated extensions etc.
However, I get a blank web page when I browse to index.php and the error log shows the error pasted above. If this helps, here's where "getActionName" is found in the code base:
../includes/Action.php: public final static function getActionName( IContextSource $context ) { ../includes/OutputPage.php: $bodyAttrs['class'] .= ' action-' . Sanitizer::escapeClass( Action::getActionName( $this->getContext() ) ); ../includes/OutputPage.php: 'wgAction' => Action::getActionName( $this->getContext() ), ../includes/Wiki.php: $action = Action::getActionName( $this->context );
Any ideas?
Thanks in advance, Pete
Try this: Dont copy the old localsettings. Use the webinstaller, it will create a new localsettings, and copy every line you need out of the old localsettings into the new one.
Am 26.09.2012 22:33, schrieb Pete:
Hi All,
I have tried this upgrade twice now, carefully reviewing each step as described here: http://www.mediawiki.org/wiki/Manual:Upgrading and both times, I get stuck at what appears to be the exact same place.
I have enabled $wgShowExceptionDetails = true; in LocalSettings.php but nothing is displayed in the web browser. The only message I get is in the apache logs and the fatal message is:
PHP Fatal error: Call to undefined method ACTION::getActionName() in /var/www/wiki/includes/Wiki.php on line 317
I have some php experience but get lost quick in this code. There are methods/functions/tools that I've never used before so I'm having difficulty following it.
I've done everything it told me to on the upgrade page.
Download new Remove old Move new to web root Copied old LocalSettings.php to new Turned on wgShowExceptionDetails Updated extensions etc.
However, I get a blank web page when I browse to index.php and the error log shows the error pasted above. If this helps, here's where "getActionName" is found in the code base:
../includes/Action.php: public final static function getActionName( IContextSource $context ) { ../includes/OutputPage.php: $bodyAttrs['class'] .= ' action-' . Sanitizer::escapeClass( Action::getActionName( $this->getContext() ) ); ../includes/OutputPage.php: 'wgAction' => Action::getActionName( $this->getContext() ), ../includes/Wiki.php: $action = Action::getActionName( $this->context );
Any ideas?
Thanks in advance, Pete
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Stip,
That was the trick. Thanks!
Pete
On Thu, Sep 27, 2012 at 1:40 AM, Stip stipen.treublatt@gmx.net wrote:
Try this: Dont copy the old localsettings. Use the webinstaller, it will create a new localsettings, and copy every line you need out of the old localsettings into the new one.
Am 26.09.2012 22:33, schrieb Pete:
Hi All,
I have tried this upgrade twice now, carefully reviewing each step as described here: http://www.mediawiki.org/wiki/Manual:Upgrading and both times, I get stuck at what appears to be the exact same place.
I have enabled $wgShowExceptionDetails = true; in LocalSettings.php but nothing is displayed in the web browser. The only message I get is in the apache logs and the fatal message is:
PHP Fatal error: Call to undefined method ACTION::getActionName() in /var/www/wiki/includes/Wiki.php on line 317
I have some php experience but get lost quick in this code. There are methods/functions/tools that I've never used before so I'm having difficulty following it.
I've done everything it told me to on the upgrade page.
Download new Remove old Move new to web root Copied old LocalSettings.php to new Turned on wgShowExceptionDetails Updated extensions etc.
However, I get a blank web page when I browse to index.php and the error log shows the error pasted above. If this helps, here's where "getActionName" is found in the code base:
../includes/Action.php: public final static function getActionName( IContextSource $context ) { ../includes/OutputPage.php: $bodyAttrs['class'] .= ' action-' . Sanitizer::escapeClass( Action::getActionName( $this->getContext() ) ); ../includes/OutputPage.php: 'wgAction' => Action::getActionName( $this->getContext() ), ../includes/Wiki.php: $action = Action::getActionName( $this->context );
Any ideas?
Thanks in advance, Pete
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Any idea of what was wrong in the old LocalSettings? And old was it: what version of MediaWiki? Thanks
Nicolas Le 27 sept. 2012 à 14:11, Pete a écrit :
Stip,
That was the trick. Thanks!
Pete
On Thu, Sep 27, 2012 at 1:40 AM, Stip stipen.treublatt@gmx.net wrote:
Try this: Dont copy the old localsettings. Use the webinstaller, it will create a new localsettings, and copy every line you need out of the old localsettings into the new one.
Am 26.09.2012 22:33, schrieb Pete:
Hi All,
I have tried this upgrade twice now, carefully reviewing each step as described here: http://www.mediawiki.org/wiki/Manual:Upgrading and both times, I get stuck at what appears to be the exact same place.
I have enabled $wgShowExceptionDetails = true; in LocalSettings.php but nothing is displayed in the web browser. The only message I get is in the apache logs and the fatal message is:
PHP Fatal error: Call to undefined method ACTION::getActionName() in /var/www/wiki/includes/Wiki.php on line 317
I have some php experience but get lost quick in this code. There are methods/functions/tools that I've never used before so I'm having difficulty following it.
I've done everything it told me to on the upgrade page.
Download new Remove old Move new to web root Copied old LocalSettings.php to new Turned on wgShowExceptionDetails Updated extensions etc.
However, I get a blank web page when I browse to index.php and the error log shows the error pasted above. If this helps, here's where "getActionName" is found in the code base:
../includes/Action.php: public final static function getActionName( IContextSource $context ) { ../includes/OutputPage.php: $bodyAttrs['class'] .= ' action-' . Sanitizer::escapeClass( Action::getActionName( $this->getContext() ) ); ../includes/OutputPage.php: 'wgAction' => Action::getActionName( $this->getContext() ), ../includes/Wiki.php: $action = Action::getActionName( $this->context );
Any ideas?
Thanks in advance, Pete
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
-- N. Brouard
Maybe nothing. Using the webinstaller updates the database though, plus it creates a localsettings which will work, thus I always do updates this way.
Am 28.09.2012 11:22, schrieb Nicolas Brouard:
Any idea of what was wrong in the old LocalSettings? And old was it: what version of MediaWiki? Thanks
Nicolas Le 27 sept. 2012 à 14:11, Pete a écrit :
Stip,
That was the trick. Thanks!
Pete
I ran "php upgrade.php" from the maintenance folder, which alters the DB. I had two code bases looking at the same DB, one with the old version (1.17 I think?) and one with the new version and after running upgrade.php from the command line, the old wiki stopped working and all of the messages printed to the screen said something about altering DB, etc. Also has these lines, along with others that actually perform the DB calls:
$this->output( "Going to run database updates for " . wfWikiID() . "\n" ); $this->output( "Depending on the size of your database this may take a while!\n" );
$updater = DatabaseUpdater::newForDb( $db, $shared, $this ); $updater->doUpdates( $updates );
foreach( $updater->getPostDatabaseUpdateMaintenance() as $maint ) { if ( $updater->updateRowExists( $maint ) ) { continue; } $child = $this->runChild( $maint ); $child->execute(); $updater->insertUpdateRow( $maint ); }
$this->output( "\nDone.\n" );
Etcetera, etcetera.
What caused the wiki to fail to load was something in these lines. I haven't gone through to discover which one exactly. I may not even bother with it at all since I like what I have now.
#$wgStylePath = $wgScriptPath.'/bluespice-skin'; #$wgStyleDirectory = $IP.'/bluespice-skin'; #require_once( dirname(__FILE__).'/bluespice-core/index.php' );
#BsCore::getInstance('MW')->setup(); // MediaWiki extensions #require_once( BsConfig::get('MW::AdapterPath').DS.'ext-dist/Lockdown/Lockdown.php' ); #require_once( BsConfig::get('MW::AdapterPath').DS.'ext-dist/Quiz/Quiz.php' ); #require_once( BsConfig::get('MW::AdapterPath').DS.'ext-dist/Poem/Poem.php' ); #require_once( BsConfig::get('MW::AdapterPath').DS.'ext-dist/CategoryTree/CategoryTree.php' ); #require_once( BsConfig::get('MW::AdapterPath').DS.'ext-dist/ImageMap/ImageMap.php' ); #require_once( BsConfig::get('MW::AdapterPath').DS.'ext-dist/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php' ); #require_once( BsConfig::get('MW::AdapterPath').DS.'ext-dist/ParserFunctions/ParserFunctions.php' ); #require_once( BsConfig::get('MW::AdapterPath').DS.'ext-dist/InputBox/InputBox.php' ); #require_once( BsConfig::get('MW::AdapterPath').DS.'ext-dist/Nuke/Nuke.php' ); #require_once( BsConfig::get('MW::AdapterPath').DS.'ext-dist/DynamicPageList/DynamicPageList.php' ); #require_once( BsConfig::get('MW::AdapterPath').DS.'ext-dist/Cite/Cite.php' ); #require_once( BsConfig::get('MW::AdapterPath').DS.'ext-dist/RSS/RSS.php' );
On Fri, Sep 28, 2012 at 5:34 AM, Stip stipen.treublatt@gmx.net wrote:
Maybe nothing. Using the webinstaller updates the database though, plus it creates a localsettings which will work, thus I always do updates this way.
Am 28.09.2012 11:22, schrieb Nicolas Brouard:
Any idea of what was wrong in the old LocalSettings? And old was it: what version of MediaWiki? Thanks
Nicolas Le 27 sept. 2012 à 14:11, Pete a écrit :
Stip,
That was the trick. Thanks!
Pete
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org