Last modified: 2007-12-28 08:36:06 UTC
Yesterday I upgraded Semantic MediaWiki from version 0.7 to 1.0 RC2. The provided update-helping scripts SMW_refreshData.php and SMW_unifyProperties.php refused to run. My PHP interpreter returned "parse errors" as follows: For SMW_refreshData.php: Syntax error: Unexpected T_OBJECT_OPERATOR in [path]/SMW_refreshData.php Line 106 For SMW_unifyProperties.php: Syntax error: Unexpected T_OBJECT_OPERATOR in [path]/inputbox.php Line 75 These two errors were not show-stoppers in my upgrade; happily the only semantic annotations that the wiki involved contained were relations, and I had only twenty or so of those defined. I simply moved them all to page-type properties by hand. But to someone who has used SMW more heavily than we had, it could be a show-stopper.
I cannot reproduce this bug. Are you using PHP5 without specific PHP4-compatibility settings enabled? Especially zend.ze1_compatibility_mode should not be used (but this would break elsewhere in MW too ...). The problem might be related to your PHP distribution, so an exact version number would possibly be useful.