From: <ro...@gm...> - 2007-10-18 17:15:55
|
Hi. I want to enable some pages inputed by XML with SMW. So I'd used the SMW_refreshData.php. First, I used the command "cd D:\AppServ\www\mediawiki-1.10.2" 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 ) Any idea? |
From: <ro...@gm...> - 2007-10-18 23:28:38
|
Correcting the description of step 1 > 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 > ) > Any idea? > > > > |
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? |
From: Markus <ma...@ai...> - 2007-10-19 08:26:37
|
Hi, first of all: great that there are Chinese translations! If anyone makes=20 translations, it would be great if they could also send us an email, so tha= t=20 we can integrate the files into the releases. I do not know why you get this bug, but it might be due to some other=20 extension, or be a problem specific to the article with ID 1 (can you=20 actually edit/save this page in the wiki?). It might be the case that your problem occurs only for some pages, maybe on= ly=20 for the page with ID 1. The SMW1.0 refresh-script has a parameter to start = at=20 later pages, but for SMW0.7 you need to edit the script file and find the=20 line that says "start =3D 0;" You can change "0" to "2" to skip your page 1= =20 which caused the problem. Maybe this helps. Upgrading to SMW1.0-RC1 would be another idea. This is a little tricky in y= our=20 case, since there is no Chinese translation for this release yet. Some=20 variable and function names in the language files have changed slightly. Yo= u=20 can find the current Language files at [1] -- maybe you can copy the existi= ng=20 Chinese translations into the current English language file and then send u= s=20 the file for uploading. Good luck, Markus [1]=20 http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/SemanticMediaWi= ki/languages/ On Freitag, 19. Oktober 2007, S Page wrote: > =E5=BC=B5=E8=87=B4=E4=BF=A1 wrote: > > I just tried on SMW 0.7 and it works for me. > That error is > 33: SMWFactbox::$semdata =3D new SMWSemanticData($title); > coming from > 26: > SMWFactbox::initStorage($parser->getTitle(),$parser->getOptions()->getSki= n( >)); > > 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! > -- > =3DS 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( > > =20 > > http://www.mediawiki.org/wiki/Extension_talk:Semantic_MediaWiki#SMW_Lan= gu > >ageZh_tw.php > > <http://www.mediawiki.org/wiki/Extension_talk:Semantic_MediaWiki#SMW_La= ng > >uageZh_tw.php>) Any idea? > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Semediawiki-user mailing list > Sem...@li... > https://lists.sourceforge.net/lists/listinfo/semediawiki-user =2D-=20 Markus Kr=C3=B6tzsch Institut AIFB, Univers=C3=A4t Karlsruhe (TH), 76128 Karlsruhe phone +49 (0)721 608 7362 fax +49 (0)721 608 5998 ma...@ai... www http://korrekt.org |