Last modified: 2014-08-06 23:56:43 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 T47918, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 45918 - MwEmbedSupport doesn't work with non standard layouts
MwEmbedSupport doesn't work with non standard layouts
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
TimedMediaHandler (Other open bugs)
master
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-03-09 00:34 UTC by Sam Reed (reedy)
Modified: 2014-08-06 23:56 UTC (History)
5 users (show)

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


Attachments

Description Sam Reed (reedy) 2013-03-09 00:34:15 UTC
reedy@ubuntu64-web-esxi:/var/www/wiki/mediawiki/core$ php maintenance/update.php --force --quick
PHP Fatal error:  Uncaught exception 'MWException' with message 'MwEmbedResourceManager::register not given readable path: /var/www/wiki/mediawiki/core/extensions/MwEmbedSupport/MwEmbedModules/MwEmbedSupport' in /var/www/wiki/mediawiki/extensions/MwEmbedSupport/MwEmbedResourceManager.php:29
Stack trace:
#0 /var/www/wiki/mediawiki/extensions/MwEmbedSupport/MwEmbedSupport.php(56): MwEmbedResourceManager::register('extensions/MwEm...')
#1 /var/www/wiki/mediawiki/core/LocalSettings.php(381): require('/var/www/wiki/m...')
#2 /var/www/wiki/mediawiki/core/maintenance/doMaintenance.php(88): require('/var/www/wiki/m...')
#3 /var/www/wiki/mediawiki/core/maintenance/update.php(193): require_once('/var/www/wiki/m...')
#4 {main}
  thrown in /var/www/wiki/mediawiki/extensions/MwEmbedSupport/MwEmbedResourceManager.php on line 29

Fatal error: Uncaught exception 'MWException' with message 'MwEmbedResourceManager::register not given readable path: /var/www/wiki/mediawiki/core/extensions/MwEmbedSupport/MwEmbedModules/MwEmbedSupport' in /var/www/wiki/mediawiki/extensions/MwEmbedSupport/MwEmbedResourceManager.php:29
Stack trace:
#0 /var/www/wiki/mediawiki/extensions/MwEmbedSupport/MwEmbedSupport.php(56): MwEmbedResourceManager::register('extensions/MwEm...')
#1 /var/www/wiki/mediawiki/core/LocalSettings.php(381): require('/var/www/wiki/m...')
#2 /var/www/wiki/mediawiki/core/maintenance/doMaintenance.php(88): require('/var/www/wiki/m...')
#3 /var/www/wiki/mediawiki/core/maintenance/update.php(193): require_once('/var/www/wiki/m...')
#4 {main}
  thrown in /var/www/wiki/mediawiki/extensions/MwEmbedSupport/MwEmbedResourceManager.php on line 29




// Register the core MwEmbed Support Module:
MwEmbedResourceManager::register( 'extensions/MwEmbedSupport/MwEmbedModules/MwEmbedSupport' );

// Register the MwEmbed 'mediaWiki' Module:
MwEmbedResourceManager::register( 'extensions/MwEmbedSupport/MwEmbedModules/MediaWikiSupport' );


My extensions are in /var/www/wiki/mediawiki/extensionsgit/
Comment 1 Sam Reed (reedy) 2013-03-09 00:41:21 UTC
https://gerrit.wikimedia.org/r/52949
Comment 2 Sam Reed (reedy) 2013-03-09 00:47:49 UTC
(In reply to comment #1)
> https://gerrit.wikimedia.org/r/52949

Abandoned, nowhere near sufficient
Comment 3 Sam Reed (reedy) 2013-03-09 03:55:15 UTC
And TMH would also need updating
Comment 4 Rob Lanphier 2013-04-10 15:29:18 UTC
Just spoke to Jan about this.  It's a path configuration on the local setup that shouldn't be a problem in production.
Comment 5 Bawolff (Brian Wolff) 2013-06-14 17:37:33 UTC
/me also just encountered this issue

Although not a "real" issue, it makes testing a bit more difficult. Could also make it harder for third parties to use the extension.
Comment 6 Gerrit Notification Bot 2013-06-19 11:53:13 UTC
Related URL: https://gerrit.wikimedia.org/r/69479 (Gerrit Change I8ed60acf438fc895fe7153746833b4e9f4b04fec)
Comment 7 Gerrit Notification Bot 2013-06-19 11:53:24 UTC
Related URL: https://gerrit.wikimedia.org/r/69480 (Gerrit Change Iadfcc104b88de0b2f6745175a38f39a9a1f58a3a)
Comment 8 Antoine "hashar" Musso (WMF) 2013-06-27 09:04:09 UTC
Gerrit change #69480 Might be causing bug 50264 :  load.php reports an invalid reference on the beta cluster.
Comment 9 Antoine "hashar" Musso (WMF) 2013-06-27 09:17:23 UTC
I have reverted both changes with:
https://gerrit.wikimedia.org/r/#/c/70805/
https://gerrit.wikimedia.org/r/#/c/70806/
Comment 10 Antoine "hashar" Musso (WMF) 2013-06-27 09:26:42 UTC
I am not sure what is wrong with the code, but it definitely has some issues on beta.  Copy pasting some exceptions reported on bug 50264:


2013-06-27 09:18:04 deployment-apache32 simplewiki: [64857835] /wiki/Talk:Main_Page/Archive7   Exception from line 29 of /data/project/apache/common-local/php-master/extensions/MwEmbedSupport/MwEmbedResourceManager.php: MwEmbedResourceManager::register not given readable path: /usr/local/apache/common-local/php-master//data/project/apache/common-local/php-master/extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer


2013-06-26 22:39:51 deployment-jobrunner08 aawiki: [ff75b05a] [no req]  
Exception from line 32 of
/data/project/apache/common-local/php-master/extensions/MwEmbedSupport/MwEmbedResourceManager.php:
MwEmbedResourceManager::register not given readable path:
extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer

exception 'MWException' with message
'ResourceLoaderFileModule::readScriptFiles: script file not found:
"/usr/local/apache/common-local/php-master/er/extensions/MwEmbedSupport/MwEmbedModules/MediaWikiSupport/MediaWikiSupport.loader.js"'
in
/data/project/apache/common-local/php-master/includes/resourceloader/ResourceLoaderFileModule.php:574
Comment 11 Jan Gerber 2013-06-27 11:02:48 UTC
ok looks like dirname(__FILE__) is not inside $IP have to look at this again to see if there is a way to find the relative path given the symlink jungle in use.

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


Navigation
Links