Last modified: 2013-02-25 00:30:54 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T35400, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 33400 - Maintenance/update.php fails due to error caused by Semantic Mediawiki
Maintenance/update.php fails due to error caused by Semantic Mediawiki
Status: RESOLVED WORKSFORME
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
Other Linux
: Unprioritized critical (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-12-28 15:55 UTC by Milan Patel
Modified: 2013-02-25 00:30 UTC (History)
6 users (show)

See Also:
Web browser: Google Chrome
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Milan Patel 2011-12-28 15:55:15 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
Comment 1 Milan Patel 2011-12-28 15:57:25 UTC
Note that this problem has been reported elsewhere:

http://permalink.gmane.org/gmane.comp.web.wiki.semediawiki.user/10723
Comment 2 Milan Patel 2011-12-28 15:58:45 UTC
Also note this problem occurs on Mediawiki installation 1.18
Comment 3 Milan Patel 2011-12-28 16:03:33 UTC
Another instance, and proposed solution?

http://www.mail-archive.com/wikibugs-l@lists.wikimedia.org/msg29717.html
Comment 4 Jeroen De Dauw 2011-12-29 18:30:02 UTC
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.
Comment 5 Milan Patel 2011-12-29 20:31:03 UTC
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
Comment 6 Jordan Grant 2012-01-09 04:48:57 UTC
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
Comment 7 contrafibularity 2012-01-15 17:58:23 UTC
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.
Comment 8 Eric 2012-01-29 01:07:35 UTC
Hi,

I have exactly the same problem upgrading from 1.18 to 1.18.1

SMW is version is 1.7

Eric
Comment 9 Jacqui 2012-06-18 11:19:05 UTC
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
Comment 10 Jeroen De Dauw 2012-11-27 18:08:06 UTC
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.
Comment 11 Eric 2013-02-25 00:30:54 UTC
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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links