[06:28:49] Hello! Please help me install SemanticMediaWiki. But before installing this I was prompted to install composer. I am stuck at the last step of installing composer. [06:29:43] It says just add the following line to your code's bootstrap process: require 'vendor/autoload.php'; [06:30:02] Where to add this line of code? [07:01:55] I think I have fixed that issue but now it gives this error "Fatal error: Call to undefined function enableSemantics() in /var/www/mediawiki-1.22.7/LocalSettings.php on line 144" . What exactly is to be written at the end of LocalSettings.php as pointed by this red arrow? http://awesomescreenshot.com/0d22zyra18 [07:11:31] (CR) Kghbln: "I sorry to not have considered the bug in core before doing so." [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/139647 (owner: Kghbln) [07:37:42] (CR) Kghbln: "Sorry for spamming you here: I added a bug https://bugzilla.wikimedia.org/show_bug.cgi?id=66767 for this. I was not able to find the origi" [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/139647 (owner: Kghbln) [07:48:01] and he left [11:50:41] Hello! Nemo_bis [11:51:50] I am tring to install SMW but I am stuck at the last step. i.e this error "Fatal error: Call to undefined function enableSemantics() in /var/www/mediawiki-1.22.7/LocalSettings.php on line 144" . What exactly is to be written at the end of LocalSettings.php as pointed by this red arrow? http://awesomescreenshot.com/0d22zyra18 [11:53:55] hi Yaron I am stuck at the last step mentioned above. Please help me out. [11:54:43] albertcoder: are you using Composer to install SMW? [11:54:49] yep [11:55:27] And is it installed? The fact that it doesn't recognize enableSemantics() makes me think that, for one reason or another, the SMW code hasn't actually been included. [11:56:08] Yes that is successfully installed. I can show you the output of some command using composer. [11:56:19] Sure, please do. [11:59:17] just a second Yaron [12:00:27] https://drive.google.com/file/d/0B4N8HUa1o7MUWWtvbzBRZVJMSVk/edit?usp=sharing [12:01:52] Yaron, you can have a look. composer.json, composer.lock and composer.phar are also present in my directory. [12:02:29] It's great that Composer is installed - but is SMW installed? That's the question. [12:06:56] Is there any way we can check that? [12:07:34] I followed the steps in the link you gave me. [12:07:57] Look in the /vendor and /vendor/composer directories, I guess. [12:07:59] which is this http://semantic-mediawiki.org/wiki/Help:Installation I have 1.22.7 version [12:09:28] from this link I have been able to execute 1,2,3 steps but not 4. How can I locate /vendor? [12:10:07] vendor is not there in my root(/) directory [12:13:52] It should be in your MediaWiki directory. [12:21:43] [SemanticResultFormats] JeroenDeDauw pushed 1 new commit to master: http://git.io/qElMMw [12:21:43] SemanticResultFormats/master a8e4256 Jeroen De Dauw: Update SRF_Graph.php [12:22:48] [SemanticResultFormats] JeroenDeDauw pushed 1 new commit to master: http://git.io/lWsN8Q [12:22:48] SemanticResultFormats/master 7ae352b Jeroen De Dauw: Update RELEASE-NOTES.md [12:30:07] [SemanticResultFormats] JeroenDeDauw pushed 1 new commit to master: http://git.io/bSvljQ [12:30:07] SemanticResultFormats/master bfcf0b9 Jeroen De Dauw: Address https://github.com/SemanticMediaWiki/SemanticResultFormats/issues/26 [12:31:22] [SemanticResultFormats] JeroenDeDauw pushed 1 new commit to master: http://git.io/16UuQQ [12:31:22] SemanticResultFormats/master b9db1da Jeroen De Dauw: Update RELEASE-NOTES.md [12:46:54] [SemanticResultFormats] s7eph4n opened pull request #44: Update release notes for change on excel format (master...patch-1) http://git.io/BMaAhw [14:44:45] (CR) JoelKP: "It seems jenkins tested the extension in isolation:" [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/140241 (owner: JoelKP) [15:13:24] Does SemanticCompoundQuery include an API component? [17:08:51] [SemanticMediaWiki] mwjames created travis-fuseki (+1 new commit): http://git.io/vTOsdw [17:08:51] SemanticMediaWiki/travis-fuseki 6ba91f4 mwjames: [WIP] Enable Travis for Jena Fuseki SPARQL... [17:08:58] (CR) Yaron Koren: [V: 2] "Ah! I figured jenkins-bot was just functioning badly, but I wasn't 100% sure. "Giving a +2 now." [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/140241 (owner: JoelKP) [17:16:58] (CR) Yaron Koren: "Okay, I guess my +2 wasn't enough to do anything. Is there any way to get around this Jenkins problem?" [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/140241 (owner: JoelKP) [17:26:07] (CR) JoelKP: "When I saw it done before, the +2 was given before jenkins-bot started the gate-and-submit jobs. Perhaps it's too late after it runs? So I" [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/140241 (owner: JoelKP) [17:26:24] (CR) Foxtrott: "A +2 verification should be enough. Maybe it is not, once you give Jenkins a chance to vote. Which you do by only +1-ing a verification." [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/140241 (owner: JoelKP) [17:26:31] I am sorry Yaron I had to rush for some urgent work. So still I could not find /vendor which you told me to be located in MediaWiki directory. Could you please mention where your vendor is ? [17:26:57] It should be in the same directory as LocalSettings.php. [17:27:09] If it's not there, it means SMW has not yet been installed. [17:27:54] okay let me see again. [17:28:15] [SemanticMediaWiki] mwjames force-pushed travis-fuseki from 6ba91f4 to 107321c: http://git.io/JnaijQ [17:28:15] SemanticMediaWiki/travis-fuseki 107321c mwjames: [WIP] Enable Travis for Jena Fuseki SPARQL... [17:30:13] Yaron, I have checked it again but there is no directory "vendor" in the directory where LocalSettings.php is. :( [17:31:42] Did you add the lines for SMW to composer.json? [17:31:57] Basically: did you follow the full instructions? [17:33:09] Yes I did. I added these lines "{ [17:33:10] "require": { [17:33:10] "monolog/monolog": "1.2.*" [17:33:10] } [17:33:10] }" to composer.json [17:33:24] "monolog"? What's that? [17:34:08] It was mentioned here https://getcomposer.org/doc/00-intro.md#installation-nix [17:34:45] That's just an example of something you can add. [17:34:52] You don't actually need to add monolog. [17:35:06] Oh so sorry! [17:35:21] Do I need to add any specific line there? [17:35:26] Did you call "php composer.phar require mediawiki/semantic-media-wiki "~1.9" "? [17:35:38] That should add some SMW-related lines to composer.json. [17:35:54] Yes I did [17:36:04] Did it add any lines? [17:36:50] No it didn't [17:37:33] Only there are those lines which I added, monolog.... [17:38:19] Try getting rid of the monolog stuff, then. [17:38:43] I mean what should I write in that file then? [17:39:02] Should it be empty? [17:39:08] Yes. [17:39:20] Okay, let me try. [17:39:25] Well, it should look like: {} [17:40:27] (Abandoned) JoelKP: Replace deprecated calls to wfMsg and wfMsgForContent. [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/140241 (owner: JoelKP) [17:56:10] (Restored) JoelKP: Replace deprecated calls to wfMsg and wfMsgForContent. [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/140241 (owner: JoelKP) [17:56:45] well, Yaron I followed all like you told, https://drive.google.com/file/d/0B4N8HUa1o7MUcThJUFdOc045WTA/edit?usp=sharing [17:58:09] I followed the whole tutorial carefully except the composer.json file and I have modified now that too. [18:00:54] (PS1) JoelKP: Replace deprecated calls to wfMsg and wfMsgForContent. [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/140424 [18:03:33] (Abandoned) JoelKP: Replace deprecated calls to wfMsg and wfMsgForContent. [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/140241 (owner: JoelKP) [18:07:29] (CR) JoelKP: "The URL was apparently botched when the comment was published." [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/140241 (owner: JoelKP) [18:30:00] (CR) Foxtrott: [C: 2 V: 2] Replace deprecated calls to wfMsg and wfMsgForContent. [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/140424 (owner: JoelKP) [18:42:46] Yaron, I have done everything from the beginning now. Seems like I am near now. :) [18:43:24] Just tell what exactly is to be written at the end of LocalSettings.php? this? enableSemantics( 'example.org' ); [18:53:34] Yaron, Like in the morning, I am getting the same error again when I try to see special:Version for ensuring SMW is installed, "Fatal error: Call to undefined function enablesemantics() in /var/www/mediawiki-1.22.7/LocalSettings.php on line 144". Got stuck at the last step again. :( [18:55:50] albertcoder: enablesemantics() is wrong. It needs to be enableSemantics( 'example.org' ); Capital S and string param [18:56:10] FoxT, let me correct it. [18:57:35] FoxT, I replaced it with enableSemantics( 'example.org' ); but still the same problem :( [18:58:43] you need to use your sitename where example.org goes [18:58:51] albertcoder: What exactly is your problem? [18:59:38] ete: Does not matter as long as you do not try to RDF export. [18:59:50] right [19:00:58] FoxT, I have followed all the steps carefully to install SMW. but I get stuck at the last step as I have mentioned and I get the error mentioned above. [19:04:57] FoxT, you can see if I have done it right http://postimg.org/image/vnpuea7nn/ [19:05:52] albertcoder: Where is your vendor directory? In your MW directory or in the extensions dir? [19:06:24] I am sorry but I could not find it. How can I locate it? [19:06:48] go to your MW installation dir and type 'ls' [19:06:59] then go to your extension dir and type 'ls' [19:07:37] yes I can see vendor there [19:07:47] Where? [19:08:02] in extensions [19:08:07] dir [19:08:58] ok. Then you put it in the wrong place. I suggest to remove from the extensions directory the directories 'extensions' and 'vendor' and the files composer.* [19:09:10] Then start over from the MW installation directory [19:10:04] my 'extensions' dir contains many other extenisions too which I have installed. [19:10:35] albertcoder: I am talking about the extensions sub-directory inside your extensions directory [19:11:01] oops sorry, Okay I will. [19:13:07] FoxT, removed! Now what thing I need to be careful of so that vendor does not go into wrong directory? [19:13:19] I don't want to repeat the error. [19:13:58] albertcoder: Run the installation script _from the base directory_ of your MW installation [19:15:39] okay. I will try again. [19:20:53] FoxT, I followed the steps under "Downloading the Composer Executable#" I followed globally and I notice mv composer.phar /usr/local/bin/composer moves composer.phar to some other dir. [19:21:49] So "php composer.phar install" gives this error "Could not open input file: composer.phar [19:21:49] " [19:22:14] albertcoder: Yes. Just do 'composer install' [19:22:28] alright. [19:22:59] yes done successfully. :) [19:23:08] \o/ [19:24:35] and do I need to do something with this "require 'vendor/autoload.php';" now? Someone earlier told me newer versions of MW don't require that. [19:25:00] Try without [19:25:20] If you see SMW on Special:Version you are ok [19:26:17] I won't because SMW is yet to be installed. :P [19:26:36] I have just been able to install composer I guess. [19:27:50] Composer support was added in 1.22, so you should not need that require any more. [19:28:15] and now according to this tutorial http://semantic-mediawiki.org/wiki/Help:Installation#cite_note-config-3 , I have tried this from my base dir of MW. It gives error "Could not open input file: composer.phar [19:28:15] " [19:28:56] you know that by now: just forget about 'php composer.phar' and use 'composer' instead [19:30:15] Yeah I do but what should be my next step accorfind to the tutorial? [19:30:50] instead of this "php composer.phar require mediawiki/semantic-media-wiki "~1.9""? [19:31:13] composer require mediawiki/semantic-media-wiki "~1.9" [19:31:42] permission denied :) [19:31:55] sudo? [19:32:14] do you have write access on your MW base dir? [19:32:22] thank GOD sudo worked. [19:32:58] No. I have MW in /var/www, I used sudo [19:33:04] ok [19:33:38] guess you need to make yure afterwards, that your www server has proper access rights to all files [19:34:06] alright. [19:35:25] THANKS a lot FoxT finally we did it. :) [19:35:37] I can see my extension installed. [19:35:37] Cool. Have fun. [19:35:59] Sorry to bother you though. :) [19:36:17] np. [19:47:00] [SemanticMediaWiki] mwjames force-pushed travis-fuseki from 107321c to 454e792: http://git.io/JnaijQ [19:47:00] SemanticMediaWiki/travis-fuseki 454e792 mwjames: [WIP] Enable Travis for Jena Fuseki SPARQL... [20:21:17] [SemanticMediaWiki] mwjames force-pushed travis-fuseki from 454e792 to 5b93388: http://git.io/JnaijQ [20:21:17] SemanticMediaWiki/travis-fuseki 5b93388 mwjames: [WIP] Enable Travis for Jena Fuseki SPARQL... [20:27:44] [SemanticMediaWiki] mwjames force-pushed travis-fuseki from 5b93388 to d5ddf26: http://git.io/JnaijQ [20:27:44] SemanticMediaWiki/travis-fuseki d5ddf26 mwjames: [WIP] Enable Travis for Jena Fuseki SPARQL... [20:33:58] [SemanticMediaWiki] mwjames force-pushed travis-fuseki from d5ddf26 to 1367554: http://git.io/JnaijQ [20:33:58] SemanticMediaWiki/travis-fuseki 1367554 mwjames: [WIP] Enable Travis for Jena Fuseki SPARQL... [20:42:02] [SemanticMediaWiki] mwjames force-pushed travis-fuseki from 1367554 to 55f8eab: http://git.io/JnaijQ [20:42:02] SemanticMediaWiki/travis-fuseki 55f8eab mwjames: [WIP] Enable Travis for Jena Fuseki SPARQL... [20:46:15] [travis-ci] SemanticMediaWiki/SemanticMediaWiki#1572 (travis-fuseki - 55f8eab : mwjames): The build was canceled. [20:46:15] [travis-ci] Change view : https://github.com/SemanticMediaWiki/SemanticMediaWiki/compare/13675541941f...55f8eab35687 [20:46:15] [travis-ci] Build details : http://travis-ci.org/SemanticMediaWiki/SemanticMediaWiki/builds/27900838 [20:57:25] [SemanticMediaWiki] mwjames opened pull request #337: Enable Jena Fuseki SPARQL for Travis (master...travis-fuseki) http://git.io/wGlEsw [21:00:38] [SemanticMediaWiki] mwjames force-pushed travis-fuseki from 55f8eab to 0297476: http://git.io/JnaijQ [21:00:38] SemanticMediaWiki/travis-fuseki 0297476 mwjames: Enable Jena Fuseki SPARQL on Travis [21:06:01] [SemanticMediaWiki] mwjames force-pushed travis-fuseki from 0297476 to 7cbde31: http://git.io/JnaijQ [21:06:01] SemanticMediaWiki/travis-fuseki 7cbde31 mwjames: Enable Jena Fuseki SPARQL on Travis [21:15:36] [travis-ci] SemanticMediaWiki/SemanticMediaWiki#1574 (travis-fuseki - 0297476 : mwjames): The build was canceled. [21:15:36] [travis-ci] Change view : https://github.com/SemanticMediaWiki/SemanticMediaWiki/compare/55f8eab35687...0297476e6d1e [21:15:36] [travis-ci] Build details : http://travis-ci.org/SemanticMediaWiki/SemanticMediaWiki/builds/27902513 [21:18:19] [SemanticMediaWiki] mwjames force-pushed travis-fuseki from 7cbde31 to 3341857: http://git.io/JnaijQ [21:18:19] SemanticMediaWiki/travis-fuseki 3341857 mwjames: Enable Jena Fuseki SPARQL on Travis [21:21:30] [SemanticMediaWiki] mwjames force-pushed travis-fuseki from 3341857 to cd1e43d: http://git.io/JnaijQ [21:21:30] SemanticMediaWiki/travis-fuseki cd1e43d mwjames: Enable Jena Fuseki SPARQL on Travis [21:27:20] [SemanticMediaWiki] mwjames force-pushed travis-fuseki from cd1e43d to 6807e9b: http://git.io/JnaijQ [21:27:20] SemanticMediaWiki/travis-fuseki 6807e9b mwjames: Enable Jena Fuseki SPARQL on Travis [21:46:06] [travis-ci] SemanticMediaWiki/SemanticMediaWiki#1581 (travis-fuseki - 6807e9b : mwjames): The build was canceled. [21:46:06] [travis-ci] Change view : https://github.com/SemanticMediaWiki/SemanticMediaWiki/compare/cd1e43d13c9b...6807e9b204a6 [21:46:06] [travis-ci] Build details : http://travis-ci.org/SemanticMediaWiki/SemanticMediaWiki/builds/27904594 [21:47:05] [travis-ci] SemanticMediaWiki/SemanticMediaWiki#1579 (travis-fuseki - cd1e43d : mwjames): The build has errored. [21:47:06] [travis-ci] Change view : https://github.com/SemanticMediaWiki/SemanticMediaWiki/compare/33418574f821...cd1e43d13c9b [21:47:06] [travis-ci] Build details : http://travis-ci.org/SemanticMediaWiki/SemanticMediaWiki/builds/27904107 [23:17:50] (PS1) JoelKP: Replace deprecated wfMsg and wfMsgHtml calls. [extensions/SemanticInternalObjects] - https://gerrit.wikimedia.org/r/140598