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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Help Needed: Installing VisualEditor extension.

    MediaWiki
    3
    19
    631
    Loading More Posts
    • 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
      jtippetts last edited by

      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!

      girish 1 Reply Last reply Reply Quote 0
      • girish
        girish Staff @jtippetts last edited by

        @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 Reply Quote 0
        • girish
          girish Staff last edited by

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

          1 Reply Last reply Reply Quote 0
          • J
            jtippetts @girish last edited by 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.

            girish 1 Reply Last reply Reply Quote 0
            • J
              jtippetts @girish last edited by

              @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 Reply Quote 0
              • girish
                girish Staff @jtippetts last edited by

                @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 Reply Quote 0
                • J
                  jtippetts @girish last edited by 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

                  girish 1 Reply Last reply Reply Quote 0
                  • girish
                    girish Staff @jtippetts last edited by

                    @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

                    robi J 2 Replies Last reply Reply Quote 1
                    • robi
                      robi @girish last edited by

                      @girish Should probably make that the default 😛

                      Life of Advanced Technology

                      girish 1 Reply Last reply Reply Quote 0
                      • girish
                        girish Staff @robi last edited by

                        @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...

                        robi 1 Reply Last reply Reply Quote 0
                        • robi
                          robi @girish last edited by

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

                          Life of Advanced Technology

                          1 Reply Last reply Reply Quote 0
                          • J
                            jtippetts @girish last edited by

                            @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...

                            girish 1 Reply Last reply Reply Quote 0
                            • girish
                              girish Staff @jtippetts last edited by 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 1 Reply Last reply Reply Quote 0
                              • J
                                jtippetts @girish last edited by

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

                                girish 1 Reply Last reply Reply Quote 0
                                • girish
                                  girish Staff @jtippetts last edited by

                                  @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 Reply Quote 0
                                  • J
                                    jtippetts @girish last edited by

                                    @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!

                                    girish 1 Reply Last reply Reply Quote 1
                                    • girish
                                      girish Staff @jtippetts last edited by

                                      @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 Reply Quote 0
                                      • J
                                        jtippetts @girish last edited by

                                        @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.

                                        girish 1 Reply Last reply Reply Quote 0
                                        • girish
                                          girish Staff @jtippetts last edited by

                                          @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 Reply Quote 0
                                          • First post
                                            Last post
                                          Powered by NodeBB