[Bug 26857] Fatal error during installation enabling 'Vector' extension
https://bugzilla.wikimedia.org/show_bug.cgi?id=26857 T. Gries m...@tgries.de changed: What|Removed |Added See Also||https://bugzilla.wikimedia. ||org/show_bug.cgi?id=28983 -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 26857] Fatal error during installation enabling 'Vector' extension
https://bugzilla.wikimedia.org/show_bug.cgi?id=26857 Chad H. innocentkil...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Comment #9 from Chad H. innocentkil...@gmail.com 2011-01-31 20:19:49 UTC --- This should be resolved with r81266. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 26857] Fatal error during installation enabling 'Vector' extension
https://bugzilla.wikimedia.org/show_bug.cgi?id=26857 --- Comment #8 from Roan Kattouw roan.katt...@gmail.com 2011-01-24 01:52:17 UTC --- (In reply to comment #7) I am having the same issue after trying to install the Collection extension from svn trunk on a 1.16.1 upgraded install. Notice: Undefined variable: wgResourceModules in /var/www/html/iris/extensions/Collection/Collection.php on line 192 Fatal error: Unsupported operand types in /var/www/html/iris/extensions/Collection/Collection.php on line 192 Will any fix cover this as well? If you're trying to install it through the installer, yes. If you tried to install it the old-fashioned way (by adding require_once(blahblah) to LocalSettings.php), then no. In the latter case, something else is probably wrong (e.g. you didn't upgrade DefaultSettings.php correctly). -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 26857] Fatal error during installation enabling 'Vector' extension
https://bugzilla.wikimedia.org/show_bug.cgi?id=26857 Alain Picard pic...@castortech.com changed: What|Removed |Added CC||pic...@castortech.com --- Comment #7 from Alain Picard pic...@castortech.com 2011-01-22 23:28:44 UTC --- I am having the same issue after trying to install the Collection extension from svn trunk on a 1.16.1 upgraded install. Notice: Undefined variable: wgResourceModules in /var/www/html/iris/extensions/Collection/Collection.php on line 192 Fatal error: Unsupported operand types in /var/www/html/iris/extensions/Collection/Collection.php on line 192 Will any fix cover this as well? -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 26857] Fatal error during installation enabling 'Vector' extension
https://bugzilla.wikimedia.org/show_bug.cgi?id=26857 Roan Kattouw roan.katt...@gmail.com changed: What|Removed |Added CC||roan.katt...@gmail.com --- Comment #1 from Roan Kattouw roan.katt...@gmail.com 2011-01-22 01:47:41 UTC --- You're using trunk MediaWiki and $wgResourceModules doesn't exist?!? Is your DefaultSettings.php up to date? Does it set $wgResourceModules? -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 26857] Fatal error during installation enabling 'Vector' extension
https://bugzilla.wikimedia.org/show_bug.cgi?id=26857 --- Comment #2 from Brion Vibber br...@pobox.com 2011-01-22 02:16:01 UTC --- The installer require()s extension files from within the Installer::includeExtensions() method, so I think any reference to global configuration variables directly in the extension file will fail. Using a 'global' declaration before each global, or accessing them via $GLOBALS, should resolve that, but I think most extensions that actually need to be doing configuration setup at install time will be potentially affected. In this case it's extra bogus because not having $wgResourceModules triggers a fatal error with the array += operator; most cases are probably just spewing E_NOTICE whinging about undefined variables. Now, if the point of including the extensions at this time is to get hooks set up so it'll do the database installation, I don't think this is going to work -- any changes to the global arrays will get wiped out... so the updater hooks won't be there? -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 26857] Fatal error during installation enabling 'Vector' extension
https://bugzilla.wikimedia.org/show_bug.cgi?id=26857 --- Comment #3 from Chad H. innocentkil...@gmail.com 2011-01-22 02:28:22 UTC --- (In reply to comment #2) Now, if the point of including the extensions at this time is to get hooks set up so it'll do the database installation, I don't think this is going to work -- any changes to the global arrays will get wiped out... so the updater hooks won't be there? It's mainly for extensions to get a chance to tie into $wgHooks['LoadExtensionSchemaUpdates'] at install-time and not only at upgrade time (so new tables will be created and you don't have to re-run as an update to get them) -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 26857] Fatal error during installation enabling 'Vector' extension
https://bugzilla.wikimedia.org/show_bug.cgi?id=26857 --- Comment #4 from Brion Vibber br...@pobox.com 2011-01-22 02:35:33 UTC --- If they're creating / adding to a local variable called '$wgHooks' within Installer::includeExtensions(), I don't think that'll trigger anything at install time. They would need access to the global $wgHooks and any other global variables that those hooks need access to if/when they get run. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 26857] Fatal error during installation enabling 'Vector' extension
https://bugzilla.wikimedia.org/show_bug.cgi?id=26857 --- Comment #5 from Chad H. innocentkil...@gmail.com 2011-01-22 02:42:09 UTC --- (In reply to comment #4) If they're creating / adding to a local variable called '$wgHooks' within Installer::includeExtensions(), I don't think that'll trigger anything at install time. That's a mistake on my part, it was supposed to declare global $wgHooks before the require()s. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 26857] Fatal error during installation enabling 'Vector' extension
https://bugzilla.wikimedia.org/show_bug.cgi?id=26857 --- Comment #6 from Brion Vibber br...@pobox.com 2011-01-22 03:55:32 UTC --- Ok, so if the only thing we're going to take out of it is $wgHooks entries for schema updates, then explicitly global'ing $wgHooks is probably ok for functional purposes. We still have the problem that the extension files expect to be loaded in a different context than where we're loading them, and they can spew warning messages or halt the program with a fatal error... As mentioned in IRC, loading up DefaultSettings.php into local function context first will likely get most or all extension files to load through cleanly. It's still possible some could fail due to something else not being set, or setting their hooks from an extension setup function which might not get called, or trying to include other libraries early etc. It may be wise to cook up some guidelines to ensure that extension files are safe to load outside of global context, but doing all that stuff really right might be ugly. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l