From: S P. <in...@sk...> - 2007-10-19 02:38:40
|
張致信 wrote: I just tried on SMW 0.7 and it works for me. That error is 33: SMWFactbox::$semdata = new SMWSemanticData($title); coming from 26: SMWFactbox::initStorage($parser->getTitle(),$parser->getOptions()->getSkin()); But if you look at SMW_refreshData.php, it checks for a null title in its own way and won't call the parser. Perhaps the page table has a title but the parser can't get it. Maybe your Wiki really does have an article with a problematic title. Or maybe one of the title tests isn't accounting for Chinese multibyte characters. Examine the page table in your Wiki DB, see what page_title looks like. Normally the page with id 1 has title "Main_Page", what's yours? You could modify SMW_refreshData.php line 41 to set $start to start at a higher page_id and see if SMW_refreshData gets any further. Good luck! -- =S Page ---- original to end ---- > First, I used the command "cd > D:\AppServ\www\mediawiki-1.10.2\maintenance" > Than, I used the command "D:\AppServ\php5\php.exe > SMW_refreshData.php -d 10000 -v" > Finally, the result are followed: > > D:\AppServ\www\mediawiki-1.10.2\maintenance>D:\AppServ\php5\php.exe > D:\AppServ\w > ww\mediawiki-1.10.2\maintenance\SMW_refreshData.php -d 10000 -v > Refreshing all semantic data in the database! > Processing pages from ID 0 to ID 171 ... > (0) Processing page with ID 1 ... > > Fatal error: Argument 1 passed to SMWSemanticData::SMWSemanticData() > must not be > null, called in > D:\AppServ\www\mediawiki-1.10.2\extensions\SemanticMediaWiki\in > cludes\SMW_Factbox.php on line 33 and defined in > D:\AppServ\www\mediawiki-1.10.2 > \extensions\SemanticMediaWiki\includes\SMW_SemanticData.php on line 26 > > OS: Win XP > MediaWiki: 1.10.2 > PHP: 5.1.6 (apache2handler) > MySQL: 5.0.24a-community-nt-log > Semantic MediaWiki version 0.7 Run with Chinese UI > ,SMW_LanguageZh_tw.php( > http://www.mediawiki.org/wiki/Extension_talk:Semantic_MediaWiki#SMW_LanguageZh_tw.php > <http://www.mediawiki.org/wiki/Extension_talk:Semantic_MediaWiki#SMW_LanguageZh_tw.php>) > Any idea? |