Last modified: 2013-02-25 00:30:54 UTC
I try to run maintenance/update.php (via web browser, mw-config/index.php) The opening screen works, but the following gives below error message. note that "SMW_LanguageEn.php" is where it's supposed to be. Warning: include_once(languages/SMW_LanguageEn.php) [function.include-once]: failed to open stream: No such file or directory in /hermes/bosweb/web291/b2916/ipg.fincawikiorg/en/extensions/SemanticMediaWiki/includes/SMW_Setup.php on line 785 Warning: include_once() [function.include]: Failed opening 'languages/SMW_LanguageEn.php' for inclusion (include_path='/hermes/bosweb/web291/b2916/ipg.fincawikiorg/en:/hermes/bosweb/web291/b2916/ipg.fincawikiorg/en/includes:/hermes/bosweb/web291/b2916/ipg.fincawikiorg/en/languages:.:/usr/local/lib/php-5.2.17/lib/php') in /hermes/bosweb/web291/b2916/ipg.fincawikiorg/en/extensions/SemanticMediaWiki/includes/SMW_Setup.php on line 785 Fatal error: Class 'SMWLanguageEn' not found in /hermes/bosweb/web291/b2916/ipg.fincawikiorg/en/extensions/SemanticMediaWiki/includes/SMW_Setup.php on line 789
Note that this problem has been reported elsewhere: http://permalink.gmane.org/gmane.comp.web.wiki.semediawiki.user/10723
Also note this problem occurs on Mediawiki installation 1.18
Another instance, and proposed solution? http://www.mail-archive.com/wikibugs-l@lists.wikimedia.org/msg29717.html
Looks like some path issue. Are you doing anything funky, such as placing the extensions on an alternate location? I don't see anything wrong w/ the software. If this is going wrong, I expect a lot of other extensions to also fail for you.
The only funkiness is that the mediawiki installation is set up as a family of wikis according to language. Each language is a directory off of the main (our domain is fincawiki.org, so the english wiki is fincawiki.org/en, spanish is fincawiki.org/es etc. Setup described here (though note that I've done all of the configuration for this a long time ago, and the wiki and the other extensions all work absolutely fine (sitting in fincawiki.org/en/extensions). : http://www.mediawiki.org/wiki/Manual:Wiki_family#Scenario_4:_Multiple_wikis_sharing_common_resources Note that I am a PHP novice. However I find it interesting that the error occurs when I go to http://www.fincawiki.org/en/mw-config/index.php, but not the main page http://www.fincawiki.org/en/index.php. When I disable the $smwgIP line in SMW_Settings.php, then visit http://www.finca.org/en/index.php, I trigger a similar error to the main one I described for this bug. To me that raises the question, with regard to the SMW_LanguageEn.php file, why does it work in certain cases but not in others?: Warning: include_once(languages/SMW_LanguageEn.php) [function.include-once]: failed to open stream: No such file or directory in /hermes/bosweb/web291/b2916/ipg.fincawikiorg/en/extensions/SemanticMediaWiki/includes/SMW_Setup.php on line 785 Warning: include_once() [function.include]: Failed opening 'languages/SMW_LanguageEn.php' for inclusion (include_path='/hermes/bosweb/web291/b2916/ipg.fincawikiorg/en:/hermes/bosweb/web291/b2916/ipg.fincawikiorg/en/includes:/hermes/bosweb/web291/b2916/ipg.fincawikiorg/en/languages:.:/usr/local/lib/php-5.2.17/lib/php') in /hermes/bosweb/web291/b2916/ipg.fincawikiorg/en/extensions/SemanticMediaWiki/includes/SMW_Setup.php on line 785 Fatal error: Class 'SMWLanguageEn' not found in /hermes/bosweb/web291/b2916/ipg.fincawikiorg/en/extensions/SemanticMediaWiki/includes/SMW_Setup.php on line 789
Experiencing same issue with SMW and MediaWiki 1.18 installation. After some debugging, I found some more data but still don't know how to fix it. Semantic MediaWiki and Semantic Forms both use global variables to store the file path to their installation locations. Those variables are named "$smwgIP" and "$sfgIP", for SMW and Semantic Forms respectively. I think they are throwing errors because those variables are being cleared, or are not ever set (i.e. the paths are blank) and so the code is not able to find the SMW_LanguageEn.PHP files in order to define the SMWLanguageEN class. $smwgIP is getting set in the SMW_Settings.php just fine (I checked). So somewhere between SMW_Settings.php setting it, and SMW_Setup.php - the global is being deleted or reset. Any ideas? -Jordan
I had similar or possibly identical issues with the language settings (English) while trying to update MW 1.17 => 1.18. I disabled all SMW-related extensions in local settings, ran the MW web updater, replaced the extensions with the latest official versions for MW 1.18, re-enabled the SMW extensions in local settings and upgraded the tables in Special:SMWAdmin. Apart from a bug occurring with SF (reported elsewhere) that did the trick for me.
Hi, I have exactly the same problem upgrading from 1.18 to 1.18.1 SMW is version is 1.7 Eric
Hi, I have experienced the same problem trying to enable the SemanticMediawiki extension from the MediaWiki installer when setting up a new wiki. At the point where it is checking for the language file $smwgIP is not set. Is there any chance someone could look into this? Regards Jacqui
I suspect the issue is fixed in SMW 1.8. At least the installer should now find $smwgIP. It might however still fail since it just includes $extension/$extension.php and does not add the required enableSemantics call. That should not affect running update.php though. Milan Pate: that really sounds like your path configuration is indeed off. Please see the MediaWiki and Semantic MediaWiki documentation on the subject. Relevant vars are $smwgIP and $wgScriptPath Closing this as it is a configuration issue, not a bug in the software.
Just FYI, SMW 1.8, trying to upgrade MW 1.20 -> 1.20.2, it's on XAMPP: Warning: include_once(languages/SMW_LanguageEn.php): failed to open stream: No such file or directory in C:\xampp\htdocs\mediawiki\extensions\SemanticMediaWiki\includes\SMW_Setup.php on line 476 Warning: include_once(): Failed opening 'languages/SMW_LanguageEn.php' for inclusion (include_path='.;\xampp\php\PEAR') in C:\xampp\htdocs\mediawiki\extensions\SemanticMediaWiki\includes\SMW_Setup.php on line 476 Fatal error: Class 'SMWLanguageEn' not found in C:\xampp\htdocs\mediawiki\extensions\SemanticMediaWiki\includes\SMW_Setup.php on line 480