Last modified: 2010-05-15 15:33:24 UTC
During setup I am getting these warnings. Setup was fine on test box but had local mysql server. Actual install for our use has networked mysql server. All settings in LocalSettings.php are equal, except "localhost versus server_name" Note, install could not complete the writing of LocalSettings.php. I copied it over from test box and made appropriate changes. These errors below were logged after turning on php errors. PHP Warning: Illegal offset type in /home/cvs/support/mwiki/includes/Skin.php on line 95 PHP Warning: array_key_exists(): The first argument should be either a string or an integer in /home/cvs/support/mwiki/includes/User.php on line 716
The error messages you report, checking against code in 1.4.8 release, look very strange indeed, to the degree that I don't see how they could possibly happen unless PHP is broken/corrupted or the files have been altered or corrupted. in Skin.php: $options = array( 'highlightbroken', 'hover' ); foreach( $options as $opt ) { global $wgUser; $this->mOptions[$opt] = $wgUser->getOption( $opt ); } The array index used can only by one of the strings 'highlightbroken' or 'hover', both of which are perfectly legal offset types. in User.php: function getOption( $oname ) { $this->loadFromDatabase(); if ( array_key_exists( $oname, $this->mOptions ) ) { Called from the above, $oname will again be a perfectly valid string index. As a test hack, you could add a var_dump( $opt ); line into the first section, inside the foreach look, to see what it thinks it has. Also, can you try with 1.5rc3?