[14:29:46] HI I recently started using media wiki. However there are a few problems that I have faced. First issue is that the localsettings.php generation site is can still be accessed after installation so what I did was removed mw-config entirely (was wondering if this was the right thing to do). Also whenever I edit or try to edit a page i get a caught exception of type runtimeexception. The editor I have chosen I believe was [14:29:46] visualeditor. [14:35:24] this is specifcally for the main page [14:41:17] i am not sure what to do. Is there anyone who is familiar with such issue? [14:44:16] I can delete the main page but I cant create new or edit the main page because the moment i click save or review it shows the exception error [14:49:11] do i need to install java on the server that media wiki is on to get it to work [14:50:45] see https://www.mediawiki.org/wiki/Manual:How_to_debug [15:00:41] I realised its a problem with visualeditor i changed to wikieditor [15:18:55] how do i embed code with wikieditor on pages? [15:35:33] What do you mean by "embed code" [15:49:22] i think you want
[16:25:16] 	 like lets say i want to put a shell script on the website how do i make it so that the syntax highlighting etc is fine
[16:25:56] 	 [[Extension:SyntaxHighlight]]
[16:30:28] 	 thanks
[16:33:44] 	 unfortunately for some reason the code does not get colored
[16:34:04] 	 why is that a /notice 
[16:34:09] 	 im on media wiki 1.38.4 i believe with the vector skin as well as syntaxhighlight_geshi
[16:34:34] 	 what is
[17:35:58] 	 yeah so unfortunately i dont have any colored highlights and at the bottom of the page it says pages with syntax highlighting errors
[17:36:05] 	 not sure how to see more debugging
[17:38:26] 	 Did you specify language and everything?
[17:38:35] 	 yes
[17:38:41] 	 i copied the exact example from media wiki
[17:49:05] 	 i added ```
[17:49:05] 	  error_reporting( -1 );
[17:49:05] 	 ini_set( 'display_errors', 1 ); ``` to my localsettings but i dont get any errors
[17:49:18] 	 i mean verbose errors it just says there is an error
[18:06:55] 	 https://www.mediawiki.org/wiki/Help:Formatting
[18:56:48] 	 any ideas ?
[19:08:07] 	 Is your wiki public?
[19:53:13] 	 any ideas? [ERROR] Incorrect definition of table mysql.column_stats: expected column 'histogram' at position 10 to have type longblob, found type varbinary(255).
[19:53:27] 	 [ERROR] Incorrect definition of table mysql.column_stats: expected column 'hist_type' at position 9 to have type enum('SINGLE_PREC_HB','DOUBLE_PREC_HB','JSON_HB'), found type enum('SINGLE_PREC_HB','DOUBLE_PREC_HB').
[19:53:33] 	 i upgraded to 1.38.4
[19:53:44] 	 database was migrated with php update.php
[20:00:09] 	 xD-: this error is on the mysql database, not mediawiki database. Something in your database server is broken. Looks like you upgraded your mysql/mariadb version 
[20:00:41] 	 yes to  latest
[20:00:46] 	 how can i fix?
[20:01:03] 	 You'll have to ask on a mysql channel/forum
[20:04:44] 	 ok i had to run mysql_upgrade
[20:04:47] 	 b>Deprecated:  Use of EditPageBeforeEditToolbar hook (used in WikiEditorHooks::EditPageBeforeEditToolbar) was deprecated in MediaWiki 1.36. [Called from MediaWiki\HookContainer\HookContainer::run in /var/www/html/includes/HookContainer/HookContainer.php at line 137] in /var/www/html/includes/debug/MWDebug.php on line 377
[20:04:47]
[20:04:54] but that looks like mediawiki error :) [20:05:28] Use of $wgUser was deprecated in MediaWiki 1.35. [Called from MediaWiki\HookContainer\HookContainer::callLegacyHook in /var/www/html/includes/HookContainer/HookContainer.php [20:07:57] when i click on edit button [20:09:54] "Is your wiki public?" <- its authorized only [20:10:40] i installed the latest pip version of pygments and then made the pygments to be the path of my ssytem one but that gave a fatal error so i didnt bother [20:10:53] im just wondering what the problem is [20:14:26] [3b7ed45e72955a15a7af9342] 2022-11-06 20:14:17: Fatal exception of type "Error" [20:14:31] when trying to run visual editor [20:14:32] lol [20:16:25] i had this running with parsoid before [20:16:39] now it doesnt need node-services [20:16:43] and broken :) [20:16:56] oh visual editor is broken for me too [20:16:59] so i used wikieditor [20:17:09] did you also upgrade ? [20:17:18] yes [20:17:27] from 1.34 or so [20:17:46] its good to see that im not the only one with problems [20:18:24] wiki says >= 1.39.0 [20:18:27] maybe there is the prob [20:18:43] i will try wikieditor meanwhile thx! [20:18:47] the latest one thats stable is 1.34 [20:18:49] sorry [20:18:52] 1.38.4 [20:18:54] yes [20:18:59] i did pull stable [20:19:13] when you try wikieditor can you also see if you can get the syntaxhighlighting to work [20:19:18] https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:SyntaxHighlight_GeSHi [20:19:30] src [20:19:31] and also what os is your server [20:19:32] sec [20:19:38] debian 10 [20:19:41] and latest docker [20:19:54] ah it should work for you [20:19:55] im on openbsd [20:29:25] i see it in mediawiki extensions but button doesnt show up [20:29:43] wdym [20:29:50] what button [20:30:22] WikiEditor-REL1_38-e265c39.tar.gz [20:30:25] i used that one [20:30:44] nonono [20:30:52] wikieditor is already installed with 1.38.4 [20:31:04] you just have to enable it in your LocalSettings.php [20:32:21] ah now! [20:32:31] shift+ctrl+r [20:32:32] xD [20:33:20] i usually never use the visual editor [20:33:29] but still bad if it doesnt work [20:33:54] did you get it to work the wikieditor [20:33:55] now to syntax highlighting [20:34:42] isnt it deprecated? [20:35:14] it is just called SyntaxHighlight [20:35:16] now [20:35:24] yeah [20:35:35] its called syntaxhighlight_geshi afaik [20:47:05] no luck so far [20:47:08] docker exec -it mediawiki chmod a+x /var/www/html/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize [20:47:10] i did that [20:47:50] what hapens [20:50:38] no highlight [20:51:06] its so annoying [20:51:43] i tried downloading different versions of pygments and setting it up so it uses this binary instead of the packaged one but it always breaks and gives a fatal exception of type [20:51:55] you run docker? [20:52:28] no [20:56:52] oh it works! [20:57:42] i had old highlight before [20:57:43]
[20:57:44] 	 xD
[20:58:20] 	 what
[20:58:26] 	 but kinda bad on darkvector
[20:58:33] 	 maybe someone could change it
[20:58:43] 	 can you give me your code snipped
[20:58:47] 	 so i can try it out
[21:00:24] 	 https://www.mediawiki.org/wiki/Extension:SyntaxHighlight
[21:00:33] 	 i used the first example
[21:01:20] 	 https://0x0.st/oEQJ.png
[21:01:32] 	 this is actually annoying me so much
[21:01:47] 	 https://0x0.st/oEQt.png
[21:02:03] 	 look if proc_open, shell_exec is not blocked
[21:02:08] 	 php security :)
[21:02:15] 	 in the docker it was disabled
[21:02:15] 	 what that
[21:02:26] 	 php ini
[21:02:33] 	 it can block shell execution
[21:02:56] 	 okay im in my php.ini
[21:02:59] 	 where is this option
[21:03:18] 	 i dont remember there was an option to block php stuff
[21:03:33] 	 proc_open and shell_exec are not terms in my php ini
[21:03:33] 	 just go to /etc and do "grep -r "shell_exec"
[21:03:34] 	 :P
[21:03:40] 	 lazy
[21:04:20] 	 disable_functions =exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source
[21:04:26] 	 somethin like this is missing?
[21:04:37] 	 disable_functions="" empty?
[21:04:41] 	 i have disable_functions
[21:04:43] 	 but its empty
[21:04:59] 	 okay
[21:05:06] 	 then chmod the binary :)
[21:05:12] 	 and run it
[21:05:15] 	 with -h
[21:05:17] 	 if it works
[21:05:26] 	 wdym run it with -h
[21:05:44] 	 plan b move to docker :)
[21:05:49] 	 lol
[21:05:56] 	 i have no idea how to run docker
[21:05:57] 	 less hassle than OS repos
[21:06:25] 	 i made docker-compose
[21:06:31] 	 and linked  mariadb
[21:06:51] 	 just one yml file
[21:06:55] 	 and you are good to go :)
[21:07:38] 	 all you need is nginx reverse proxy on the exposed ports
[21:07:45] 	 so you can use letsencrypt
[21:08:49] 	 and you can mount your db data folder to the container
[21:08:53] 	 so it will work
[21:09:54] 	    volumes:
[21:09:54] 	      - /home/wiki/mariadb:/var/lib/mysql:rw
[21:10:02] 	 so it is not hard :P
[21:10:18] 	 i would like to see debug messages of what is actually going on
[21:10:25] 	 so i can fix it
[21:10:38] 	 when you do "docker-compose up" you see all debug from server side"
[21:10:53] 	 no i meant for the situation i am in now
[21:11:03] 	 yeah then you have to check logs
[21:11:19] 	 i dont bother with regular installations anymore
[21:11:26] 	 just container all
[21:11:26] 	 :P
[21:13:04] 	 it saves time ...
[21:13:14] 	 like email server + roundcube up in 2mins
[21:13:20] 	 with letsencrypt
[21:13:20] 	 xD
[21:14:28] 	 but you have to write your "playbooks"
[21:14:37] 	 so deploy yml file run some bash script
[21:14:56] 	 and i dont need ansible for this
[21:17:13] 	 oh seems like phpmyadmin is broken :)
[21:17:16] 	 so i have to fix that
[21:17:33] 	 or just don't use it
[21:17:47] 	 i could remove it from the mediawiki docker yes
[21:17:56] 	 but i usually add it for all maria db based apps
[21:31:51] 	 you don't need a phpmyadmin per application
[21:32:22] 	 you don't need a phpmyadmin per application
[21:32:39] 	 :)
[22:53:54] 	 Why don’t apostrophes work on the discord side of this bridge 😂
[22:58:17] 	 known issue
[22:58:32] 	 don't know further than that
[23:04:09] 	 '
[23:04:14] 	 They do ;-)
[23:23:57] 	 Could someone give me a few pointers to find out the root cause of the syntax error I mentioned before I tried enabling the debug options in my localsettings.php but it didn't seem to do anything so i might be doing something wrong