Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. MediaWiki
  3. Help Needed: Installing VisualEditor extension.

Help Needed: Installing VisualEditor extension.

Scheduled Pinned Locked Moved MediaWiki
19 Posts 3 Posters 3.5k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jtippetts
    wrote on last edited by
    #1

    Hello -

    Hopefully someone can help me out here. I am trying to get the Visual Editor extension to work.

    1. I have downloaded the extension file (although from what I read in the docs it should be included after version 1.35) and extracted it in /app/data/extensions . I see the folder installed in the correct location which I assume is good.

    2. Ownership of the file already appears to be set to www-data by default.

    3. I added the line wfLoadExtension( 'VisualEditor' ); in /app/data/LocalSettings.php .

    When I restart the app and try to edit anything in mediawiki I get the following error: Error contacting the Parsoid/RESTBase server (HTTP 404)

    Does anyone know what I need to change in my configuration to get the Visual Editor to work? I'm no good with HTML so the editor is a huge help!

    girishG 1 Reply Last reply
    0
    • J jtippetts

      Hello -

      Hopefully someone can help me out here. I am trying to get the Visual Editor extension to work.

      1. I have downloaded the extension file (although from what I read in the docs it should be included after version 1.35) and extracted it in /app/data/extensions . I see the folder installed in the correct location which I assume is good.

      2. Ownership of the file already appears to be set to www-data by default.

      3. I added the line wfLoadExtension( 'VisualEditor' ); in /app/data/LocalSettings.php .

      When I restart the app and try to edit anything in mediawiki I get the following error: Error contacting the Parsoid/RESTBase server (HTTP 404)

      Does anyone know what I need to change in my configuration to get the Visual Editor to work? I'm no good with HTML so the editor is a huge help!

      girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      @jtippetts Searching a bit, looks like https://phabricator.wikimedia.org/T268277 might be the issue. Specifically this comment - https://phabricator.wikimedia.org/T268277#7621030

      Can you please try setting $wgServer = "https://wiki.domain.com" in your /app/data/LocalSettings.php and see if that helps ? If so, I can fix the package because currently we are not settings https there.

      J 2 Replies Last reply
      0
      • girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #3

        https://phabricator.wikimedia.org/T299175 is protocol relative URL issue

        1 Reply Last reply
        0
        • girishG girish

          @jtippetts Searching a bit, looks like https://phabricator.wikimedia.org/T268277 might be the issue. Specifically this comment - https://phabricator.wikimedia.org/T268277#7621030

          Can you please try setting $wgServer = "https://wiki.domain.com" in your /app/data/LocalSettings.php and see if that helps ? If so, I can fix the package because currently we are not settings https there.

          J Offline
          J Offline
          jtippetts
          wrote on last edited by jtippetts
          #4

          @girish said in Help Needed: Installing VisualEditor extension.:

          $wgServer = "https://wiki.domain.com"

          This didn't seem to work. After adding the suggested line I tried to restart the app but it wouldn't restart. Once I removed the line again the app starts just fine.

          The Phabricator page you sent is referring to HTTP 415; the error I get is HTTP 404. Also, if it makes a difference, I am getting the error as soon as I try to edit a page; not after making an edit like this report suggests. When I click the edit link in mediawiki it doesn't even load the visual editor at all.

          girishG 1 Reply Last reply
          0
          • girishG girish

            @jtippetts Searching a bit, looks like https://phabricator.wikimedia.org/T268277 might be the issue. Specifically this comment - https://phabricator.wikimedia.org/T268277#7621030

            Can you please try setting $wgServer = "https://wiki.domain.com" in your /app/data/LocalSettings.php and see if that helps ? If so, I can fix the package because currently we are not settings https there.

            J Offline
            J Offline
            jtippetts
            wrote on last edited by
            #5

            @girish Also I just noticed that the link you sent suggests that I use the line: wfLoadExtensions(array('VisualEditor'));

            This is different that what I have in my config... what does the "array" part in the line above mean?

            1 Reply Last reply
            0
            • J jtippetts

              @girish said in Help Needed: Installing VisualEditor extension.:

              $wgServer = "https://wiki.domain.com"

              This didn't seem to work. After adding the suggested line I tried to restart the app but it wouldn't restart. Once I removed the line again the app starts just fine.

              The Phabricator page you sent is referring to HTTP 415; the error I get is HTTP 404. Also, if it makes a difference, I am getting the error as soon as I try to edit a page; not after making an edit like this report suggests. When I click the edit link in mediawiki it doesn't even load the visual editor at all.

              girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #6

              @jtippetts said in Help Needed: Installing VisualEditor extension.:

              This didn't seem to work. After adding the suggested line I tried to restart the app but it wouldn't restart. Once I removed the line again the app starts just fine.

              Just to double check: did you replace it with your domain and also did you add a semicolon at the end ? Since this is PHP, it should be like:

                  $wgServer = "https://realwiki.domain.com";
              
              J 1 Reply Last reply
              0
              • girishG girish

                @jtippetts said in Help Needed: Installing VisualEditor extension.:

                This didn't seem to work. After adding the suggested line I tried to restart the app but it wouldn't restart. Once I removed the line again the app starts just fine.

                Just to double check: did you replace it with your domain and also did you add a semicolon at the end ? Since this is PHP, it should be like:

                    $wgServer = "https://realwiki.domain.com";
                
                J Offline
                J Offline
                jtippetts
                wrote on last edited by jtippetts
                #7

                @girish So I copied it exactly like that and now I get this error: Error contacting the Parsoid/RESTBase server: (curl error: 60) SSL peer certificate or SSH remote key was not OK

                Screenshot 2022-04-25 at 17-47-49 wiki tippetts vegas - File Manager.png

                girishG 1 Reply Last reply
                0
                • J jtippetts

                  @girish So I copied it exactly like that and now I get this error: Error contacting the Parsoid/RESTBase server: (curl error: 60) SSL peer certificate or SSH remote key was not OK

                  Screenshot 2022-04-25 at 17-47-49 wiki tippetts vegas - File Manager.png

                  girishG Offline
                  girishG Offline
                  girish
                  Staff
                  wrote on last edited by
                  #8

                  @jtippetts Can you try with the latest package?

                  Also, as you pointed out, VisualEditor is already bundled inside mediawiki. There is nothing to install. All you have to do is put this line in /app/data/LocalSettings.php:

                  wfLoadExtension( 'VisualEditor' );
                  

                  Then, when you refresh, you will see two entries in the top bar - Edit and Edit Source

                  27913454-96c7-4c66-8678-e9df5a01567f-image.png

                  Clicking Edit, show this popup:

                  3b7c1452-de70-438c-b3f2-ff1daac5e29c-image.png

                  Click on 'Start Editing' and you can just edit away:

                  ca9c720f-bcc7-4a27-b561-3f3f57a71269-image.png

                  robiR J 2 Replies Last reply
                  1
                  • girishG girish

                    @jtippetts Can you try with the latest package?

                    Also, as you pointed out, VisualEditor is already bundled inside mediawiki. There is nothing to install. All you have to do is put this line in /app/data/LocalSettings.php:

                    wfLoadExtension( 'VisualEditor' );
                    

                    Then, when you refresh, you will see two entries in the top bar - Edit and Edit Source

                    27913454-96c7-4c66-8678-e9df5a01567f-image.png

                    Clicking Edit, show this popup:

                    3b7c1452-de70-438c-b3f2-ff1daac5e29c-image.png

                    Click on 'Start Editing' and you can just edit away:

                    ca9c720f-bcc7-4a27-b561-3f3f57a71269-image.png

                    robiR Offline
                    robiR Offline
                    robi
                    wrote on last edited by
                    #9

                    @girish Should probably make that the default 😛

                    Conscious tech

                    girishG 1 Reply Last reply
                    0
                    • robiR robi

                      @girish Should probably make that the default 😛

                      girishG Offline
                      girishG Offline
                      girish
                      Staff
                      wrote on last edited by
                      #10

                      @robi the docs are so sparse, it's not clear to me why it's not loaded by default. Clearly, they have not enabled it for a reason despite pre-bundling it with mediawiki itself...

                      robiR 1 Reply Last reply
                      0
                      • girishG girish

                        @robi the docs are so sparse, it's not clear to me why it's not loaded by default. Clearly, they have not enabled it for a reason despite pre-bundling it with mediawiki itself...

                        robiR Offline
                        robiR Offline
                        robi
                        wrote on last edited by
                        #11

                        @girish I think that's an assumption, and one which we can remedy by making it nicer, the Cloudron way.

                        Conscious tech

                        1 Reply Last reply
                        0
                        • girishG girish

                          @jtippetts Can you try with the latest package?

                          Also, as you pointed out, VisualEditor is already bundled inside mediawiki. There is nothing to install. All you have to do is put this line in /app/data/LocalSettings.php:

                          wfLoadExtension( 'VisualEditor' );
                          

                          Then, when you refresh, you will see two entries in the top bar - Edit and Edit Source

                          27913454-96c7-4c66-8678-e9df5a01567f-image.png

                          Clicking Edit, show this popup:

                          3b7c1452-de70-438c-b3f2-ff1daac5e29c-image.png

                          Click on 'Start Editing' and you can just edit away:

                          ca9c720f-bcc7-4a27-b561-3f3f57a71269-image.png

                          J Offline
                          J Offline
                          jtippetts
                          wrote on last edited by
                          #12

                          @girish I'm just getting back to this... it's strange, I have just the default settings in my LocalSettings.php file. The only thing I have added is the line: wfLoadExtension( 'VisualEditor' );

                          Unfortunately I'm still getting this error: Screenshot 2022-04-26 at 16-58-29 Editing Main Page - My Wiki.png

                          I would normally just uninstall and reinstall the app but I already have a lot of content in there...

                          girishG 1 Reply Last reply
                          0
                          • J jtippetts

                            @girish I'm just getting back to this... it's strange, I have just the default settings in my LocalSettings.php file. The only thing I have added is the line: wfLoadExtension( 'VisualEditor' );

                            Unfortunately I'm still getting this error: Screenshot 2022-04-26 at 16-58-29 Editing Main Page - My Wiki.png

                            I would normally just uninstall and reinstall the app but I already have a lot of content in there...

                            girishG Offline
                            girishG Offline
                            girish
                            Staff
                            wrote on last edited by girish
                            #13

                            @jtippetts Did you update the app package to the latest version? I only pushed this out yesterday with the fix to wgServer. If you go to the Update view, it should show the package version as v1.17.0

                            J 1 Reply Last reply
                            0
                            • girishG girish

                              @jtippetts Did you update the app package to the latest version? I only pushed this out yesterday with the fix to wgServer. If you go to the Update view, it should show the package version as v1.17.0

                              J Offline
                              J Offline
                              jtippetts
                              wrote on last edited by
                              #14

                              @girish Yes, I believe I am on the most current update.
                              Screenshot 2022-04-26 at 21-16-22 Cloudron.png

                              girishG 1 Reply Last reply
                              0
                              • J jtippetts

                                @girish Yes, I believe I am on the most current update.
                                Screenshot 2022-04-26 at 21-16-22 Cloudron.png

                                girishG Offline
                                girishG Offline
                                girish
                                Staff
                                wrote on last edited by
                                #15

                                @jtippetts That looks uptodate.

                                I tried a fresh install on our demo server https://my.demo.cloudron.io (username/password is cloudron/cloudron). Can you try the install at https://wiki.demo.cloudron.io/ (username/password is cloudron/cloudron).

                                Maybe you can compare the configs which I have above and what you have in your setup to see if we miss anything obvious ?

                                J 1 Reply Last reply
                                0
                                • girishG girish

                                  @jtippetts That looks uptodate.

                                  I tried a fresh install on our demo server https://my.demo.cloudron.io (username/password is cloudron/cloudron). Can you try the install at https://wiki.demo.cloudron.io/ (username/password is cloudron/cloudron).

                                  Maybe you can compare the configs which I have above and what you have in your setup to see if we miss anything obvious ?

                                  J Offline
                                  J Offline
                                  jtippetts
                                  wrote on last edited by
                                  #16

                                  @girish Everything on the test server worked perfectly and all of my settings appeared to be identical. I decided to shut down the entire server and reboot it. After the machine started back up it seems that everything is now working as expected. For future reference do I need to reboot my server after Cloudron updates? Seems like normally I get a notification in Cloudron telling me when the system needs to be re-booted...? Anyways, I think everything is working now. I really appreciate all of your help! Seriously, I love Cloudron!

                                  girishG 1 Reply Last reply
                                  1
                                  • J jtippetts

                                    @girish Everything on the test server worked perfectly and all of my settings appeared to be identical. I decided to shut down the entire server and reboot it. After the machine started back up it seems that everything is now working as expected. For future reference do I need to reboot my server after Cloudron updates? Seems like normally I get a notification in Cloudron telling me when the system needs to be re-booted...? Anyways, I think everything is working now. I really appreciate all of your help! Seriously, I love Cloudron!

                                    girishG Offline
                                    girishG Offline
                                    girish
                                    Staff
                                    wrote on last edited by
                                    #17

                                    @jtippetts said in Help Needed: Installing VisualEditor extension.:

                                    For future reference do I need to reboot my server after Cloudron updates?

                                    No, app updates don't require a reboot. Not entirely sure what the reboot did 🙂 🤷

                                    J 1 Reply Last reply
                                    0
                                    • girishG girish

                                      @jtippetts said in Help Needed: Installing VisualEditor extension.:

                                      For future reference do I need to reboot my server after Cloudron updates?

                                      No, app updates don't require a reboot. Not entirely sure what the reboot did 🙂 🤷

                                      J Offline
                                      J Offline
                                      jtippetts
                                      wrote on last edited by
                                      #18

                                      @girish Turns out I spoke too soon. I am still getting an error. I found a workound from someone that had the exact same issue. Here is a link to a possible solution:

                                      https://www.mediawiki.org/wiki/Topic:W2fgz5rywc86hciu

                                      Unfortunately, I can't decipher what needs to be done. As soon as it starts talking about certificates it's way over my head.

                                      girishG 1 Reply Last reply
                                      0
                                      • J jtippetts

                                        @girish Turns out I spoke too soon. I am still getting an error. I found a workound from someone that had the exact same issue. Here is a link to a possible solution:

                                        https://www.mediawiki.org/wiki/Topic:W2fgz5rywc86hciu

                                        Unfortunately, I can't decipher what needs to be done. As soon as it starts talking about certificates it's way over my head.

                                        girishG Offline
                                        girishG Offline
                                        girish
                                        Staff
                                        wrote on last edited by
                                        #19

                                        @jtippetts I have to check your instance to see why it's not working. Can you write to us at support@cloudron.io ?

                                        1 Reply Last reply
                                        0
                                        Reply
                                        • Reply as topic
                                        Log in to reply
                                        • Oldest to Newest
                                        • Newest to Oldest
                                        • Most Votes


                                        • Login

                                        • Don't have an account? Register

                                        • Login or register to search.
                                        • First post
                                          Last post
                                        0
                                        • Categories
                                        • Recent
                                        • Tags
                                        • Popular
                                        • Bookmarks
                                        • Search