[02:44:56] good evening, everyone i am trying to go through the setup and for some reason i am getting an error connecting to the database, can anyone point me in the direction of where to look for the problem? [03:04:03] good evening, everyone i am trying to go through the setup and for some reason i am getting an error connecting to the database, can anyone point me in the direction of where to look for the problem? [03:25:18] good evening, everyone i am trying to go through the setup and for some reason i am getting an error connecting to the database, can anyone point me in the direction of where to look for the problem? [03:34:51] computr0n: You don't have to repeat your question. :) Is this a third-party install? What's the error message exactly? [03:35:00] Are you using vagrant? [03:36:02] I should probably rephrase that - are you setting up your own website or you're a volunteer developer trying to setup a local instance for development purposes? [03:38:44] It is a new install, [03:38:52] It is on a debian server [03:39:10] im going throught the setup script but can not get connected to the mariandb [03:39:49] im setting my own btw [03:44:37] What error? [03:45:53] Reedy can not access database access denied for user [03:46:11] Can you connect using the command line using the same user? [03:46:43] it looks like i can... using mysqladmin it lets me set the password without an error [03:47:05] mysql -u username -p [03:47:07] That works? [03:48:38] yes it does [03:54:02] what are you putting in for the hostname? localhost? [03:54:16] i have tried that and the loopback address [14:09:25] hi [14:10:00] I'm trying to set up the mediawiki environment.. and im getting these errors: [14:10:30] Problem 1 - The requested PHP extension ext-mbstring * is missing from your system. Install or enable PHP's mbstring extension. Problem 2 - Installation request for wikimedia/html-formatter 1.0.1 -> satisfiable by wikimedia/html-formatter[1.0.1]. - wikimedia/html-formatter 1.0.1 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. Problem 3 - Installation request for w [14:10:58] Problem 3 - Installation request for wikimedia/remex-html 1.0.1 -> satisfiable by wikimedia/remex-html[1.0.1]. - wikimedia/remex-html 1.0.1 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. Problem 4 - wmde/hamcrest-html-matchers v0.1.1 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. - wmde/hamcrest-html-matchers v0.1.0 req [14:13:33] navisk13, hi! Do you have a question? [14:15:50] navisk13: you'll need to install php-mbstring. if you are on ubuntu or something similar, use apt-get install php-mbstring [14:18:32] I haven't set up vagrant. Is it necessary? Could these errors be arising because of that? [14:19:30] navisk13: What makes you think that Vagrant is related? [14:19:48] navisk13: Is the php-mbstring extension installed on your system or not? [14:19:59] because that is what the error message says. [14:30:45] I have just installed php-mbstring. But im getting this error: Cannot create cache directory /home/navi/.composer/cache/files/, or directory is not writable. Proceeding without cache [14:31:40] I'm not running in vagrant environment. So i was just wondering if these errors are related to it in any way. [14:31:49] no [14:32:02] if you aren't using vagrant, ignore anything and everything that mentions vagrant [14:32:30] navisk13: did you download the tarball or did you clone from git? [14:32:45] I cloned from git. [14:32:48] ok [14:33:11] you'll need to run on your wiki's root directory the command `composer update --no-dev` [14:33:30] if it says that composer isn't found, you'll need to download/install it from https://getcomposer.org/ [14:34:46] navisk13: Which instructions do you follow? Link welcome. [14:34:56] you will also need to download a skin, the git repo doesn't come with any by default [14:37:21] https://www.mediawiki.org/wiki/Download_from_Git#Fetch_external_libraries [14:37:42] I actually was installing composer when these errors came [14:38:45] Even after i installed php-mbstring, i got an internal error while trying to load the page. It says xml and mbstring is missing. I had installed both,though. [14:40:27] you need to restart apache after installing the packages [14:49:15] Hi. Does anybody how to solve this error while editing abuse filters? "There is a syntax error in the filter you specified. [14:49:15] The output from the parser was: [14:49:16] Unexpected "T_BRACE" at character 996." [15:10:57] good day all, I am having a problem with install of the software, i am getting Cannot access the database: Access denied for user 'root'@'localhost' (localhost). Check the host, username and password and try again. i can access the database from the command line with no issues any help would be apreciated. [15:27:20] computron, https://www.mediawiki.org/wiki/Manual:Errors_and_symptoms#Error_selecting_database_wikidb:_1044_Access_denied_for_user_'username'@'localhost'_to_database_'wikidb' [15:28:09] andre thank you, is that the same on maria? [15:28:54] and this is during the install process [15:29:26] MariaDB is MySQL. [15:29:38] thats what i thought, i just wanted to make sure. [15:29:52] Utech8901 [15:31:14] computron: no need to post passwords in public. :P [15:31:32] not a password, it was an answer to a diffrent question from a diffrent form... [15:31:58] anyways, it would not bad a horible password [15:32:01] a little short thought [15:32:33] so can you help me break that command down? because i dont have any wikidb tables yet [15:32:42] this is during the install script. [15:33:14] which instructions do you follow exactly, and where are you in those instructions? Link welcome. [15:33:30] I probably cannot help, but that would help others. [15:33:53] so i am on the "Conect to database" portion of the web install [15:34:30] So as this is a test system, is there any issue with using the root user for maria to connect to the databas? [15:34:41] computron: if it's simply a test system then no [15:34:56] but for security reasons a production install should have its own isolated DB user for that. [15:35:27] yea in a real world system... no way would i use root [15:35:47] i just wanted to make sure there was not something that would only allow root to connect via local [15:35:55] Link to instructions welcome [15:36:05] ^ this [15:36:19] computron: provide your 'instructions' you're following, assuming you're following one [15:38:10] https://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Debian_or_Ubuntu [15:39:08] so now i am doing the part where i log on to the site under "Configure MediaWiki" [15:44:16] computron: yeah there's no issue for testing-only deployments you can't use the root user for the database system. [15:44:40] security 101 though says you shouldn't and if you intend to replicate this to a *real* production environment you should replicate what you expect prod to be almost exactly. [15:44:41] so i need to create a user in maria for this regardles [15:44:47] but that's just the IT security guy in me saying this. [15:45:39] i think a screenshot of what you see might be relevant [15:45:50] because "i'm doing the part where i login" is vague as heck ;) [15:46:02] fair [15:46:12] where can i throw a screenshot? [15:47:32] is there a pasting site that does screen shots [15:51:32] imgur.com [15:52:16] https://imgur.com/a/D7YeY. [15:52:40] that means the username/password you gave to MediaWiki for mysql was wrong [15:52:55] i would agree with that, if it did not work localy [15:53:17] try putting 127.0.0.1 for host? [15:53:43] same issue [15:53:46] i tried that [15:54:19] i can create a new user and try that if someone can walk me through it [15:54:45] > CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password'; [15:55:12] > GRANT ALL PRIVILEGES ON mydatabase. * TO 'newuser'@'localhost'; [15:56:00] (I think it's often unclear to folks if the apostrophes in those examples should be taken literally and hence stay, or not.) [15:56:09] (my impression.) [15:56:33] and thats at the "MariadDB [(none)]>" Prompt? after "mysql -u root -p" at the bash promp correct? [15:56:52] computron: yes [15:57:19] the apostrophes need to stay, but are not part of the username/password [15:57:47] and the "mydatabase.*" i have not created the database yet for the wiki i dont think [15:58:45] so does *.* work? [15:59:30] ok so it did, and it seems to be happy [16:13:12] ok so i seem to be happy and installed. [16:19:57] ok, Now to figure out how to use it.... [16:31:10] Hey guys, is there way to create a new page based on a template? for example i want all the pages to be layed out in a certain way? [16:34:27] yes [16:34:33] preload! [16:34:53] computron: https://www.mediawiki.org/wiki/Manual:Creating_pages_with_preloaded_text [16:36:07] ok great I have a lot ot learn to see if this is capable of doing what i need it to do. [16:51:45] legoktm so my current task, is to be able to click on a link, that will create a page, and bunch of subpages. is there a way to do that? [16:54:40] computron: not with a single link, no [16:54:49] you'd need to write a custom PHP extension for that [16:55:01] or a JavaScript gadget [16:55:09] true [16:55:40] do you know where i can find an example of that? [16:55:56] php or js? [16:56:11] how you'd go about it would be completely different for each [16:56:23] neither is "easier" [16:56:27] ok, so i want it to be server based if that matters [16:56:44] server based would mean php, so you'd want to probably create a new special page for it [16:57:36] see https://www.mediawiki.org/wiki/Manual:Developing_extensions for more info (towards the bottom there's a link for more info for creating special pages, but the general info is good too) [16:58:35] ok, so now we are getting into something that is a little out of my league but i can learn anything. [17:00:06] there's also the option of hiring someone to make it for you [17:00:36] Skizzerz once i have an approval from management on the idea and Proof of Concept that may be an answer [17:01:03] however i have to get to that point. [17:02:30] computron: before we get to that point, mind telling us what it is specifically you're trying to accomplish (that is, WHY you are trying to do this, not WHAT you are trying to do)? There may be an easier way with a different implementation [17:04:37] Skizzerz that sounds fair, Im trying to create a user contributable customer database with information regarding the customer, the customers sites, and installed equipment allow the uploading of PDF files, and on top of all that create an automated template to put the proper pages in place for a new customer. [17:06:05] hmm [17:06:52] i had considerd using drupal to do this, however i was not happy with the outcome [17:07:01] well the existing preload feature (perhaps combined with the VisualEditor extension) can be used to scaffold single pages [17:07:19] VisualEditor being an extension that gives a WYSIWYG editing interface, so your end users don't need to learn wikimarkup [17:07:35] it's a bit of a chore to set up though [17:08:05] setup can be tedious im ok with that, [17:08:08] uploading PDFs requires a bit of extra config, but I believe there are examples on the mw.o site already for that [17:08:54] the main issue then is the multiple pages bit. If you can condense things into a single page, then you can go without needing custom code [17:09:02] I would love to be able to view the PDF files but that is a luxury, if they can be downloaded and oppend [17:09:08] or if you're ok having multiple links to create each page, you can go without [17:09:23] I have to do multiple pages, it is way way way to much information for one page [17:09:35] I could do multiple tabs on one page thought [17:09:37] though [17:09:44] by default you won't be able to embed the PDF inside of a page, but you can link to it, and the user would then open it in their browser (so use their browser's pdf viewer) [17:10:00] I think (but am not sure) that there are extensions which let you embed viewable PDFs in wiki pages though [17:10:10] ok thats a nice to have, not a requiremnet [17:10:28] is multiple tabs per page easiser then multiple pages [17:10:35] much harder [17:10:47] ok then multiple pages it is... [17:12:10] (much harder from an editing standpoint, that is; I don't know how well VE would interact with it, and if you aren't using VE then the edit box will show the contents of every tab instead of just one at a time) [17:13:21] then i will need to do multiple pages. [17:13:23] yeah, I can't think of anything better, sorry :( [17:13:49] all good, just have to learn some stuff thats all. [17:13:58] im never opposed to making myself better [17:16:43] so do you know of an example of a 2 page creating extension i could take a look at it to get started [18:50:07] ok guys, I am trying to add the WYSIWIG to my wiki, and this is my first extension i have installed is there anyone that would be able to help me process this? [18:53:16] computron, did you mean the extension called WYSIWYG ? [18:54:05] and do you have a specific question? what to "process"? [18:54:29] Is git review and Gerrit still the pull request methodology for MediaWiki or is it through Phabricator now? [18:54:46] Trela, still git review and Gerrit. [18:54:51] Thank you. [18:54:55] if you refer to MediaWiki core and extensions. [18:54:56] yw [18:57:25] so i am looking at the extension WYSIWYG [18:57:55] and i dont see the download? [19:04:22] computron, see "Download" in the left box? [19:04:30] https://www.mediawiki.org/wiki/Extension:WYSIWYG#Download [19:04:56] not sure what the problem is...? [19:05:31] Download for me is not showing anything [19:06:14] there's a huge table [19:06:59] computron, "download" where? [19:07:11] Links please. [19:07:16] Ok, so let me backup, [19:07:35] what column is the download link supposed to be in in the table? [20:26:12] Heya, I've got a question about templates. When Transcluding something like {{:Article}}, is there any way to decrease the heading level only when shown on the page where it is included? [20:28:05] flying_sausages: you'll need to add a parameter when transcluding, and on the Article page add code to check for that parameter and change the heading level [20:28:40] Any pointers to how I can do the latter of these two steps? [20:31:05] Maybe you can code headings as =={{{headinglevel|}}} Heading {{{headinglevel|}}}==, and use {{:Article|headinglevel==}} (while I was writing it I notice the notation may seem a bit obscure, but it's simpler than using {{#if:}} code ) [20:31:16] note that it's untested [20:33:48] Ok let me give it a try [20:45:41] Vulpix, is it possible that instead of it parsing down to ===embedded=== it will parse down to "== =embedded == =" ? [20:46:20] well... everything is possible [20:46:25] let me try one thing [20:47:59] Yes, sadly. Another option: {{{headinglevel|==}}} Heading {{{headinglevel|==}}} and use {{:Article|headinglevel====}} [20:49:11] Vulpix, Ace! [20:50:32] Works like a charm :) Now I need to change all my boilerplates hahaha [20:51:40] it's not super clean but I doubt there's a better option [20:52:37] Vulpix, hmmmm h3s don't go to h4s though... [20:53:03] this one replaces but doesn't increment [20:53:45] What if I do {{{headinglevel|}}}==Heading=={{{headinglevel|}}} hmmm [20:56:13] ah, well, if you have a mix of various level, replacing them won't work, yes... [20:56:23] Yes, this one works! [20:56:55] yes, putting them outside instead of inside seem to do the trick [20:57:20] now I need to figure out how to nicely layer these tables here [20:57:29] https://i.imgur.com/fEYCiQd.png [20:59:03] flying_sausages: you can add style="clear:right" to the last table so it starts after the previous [21:00:21] nice [21:49:05] Hello [21:49:15] hi Gesteve [21:49:39] I need help installing multilingial mediawiki on AWS EC2 [21:49:51] Feel free to ask. Someone might know. :) [21:50:53] Hi Andre [21:52:00] I don't know how to go about it. Can someone help, or lead me to a detailed step by step guide.