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

    Solved Dark Mode (official module) activation error

    FreeScout
    2
    7
    119
    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.
    • humptydumpty
      humptydumpty last edited by humptydumpty

      I just bought the officially released dark mode module but I'm getting an error when activating it. I tried a different browser in case it's a caching issue but no luck there. @nebulade @nebulon (btw, why two usernames?) I saw your comments upstream regarding this module. Does it work for you? Should I report this upstream?

      Troubleshooting:

      • I tried a different browser altogether in case it's caching issue.
      • I deleted the dark mode folder, reinstalled, and tried reactivating (multiple times).
      Cache cleared successfully.
      Nothing to migrate.
      Error occured creating [/app/code/public/modules/darkmode] symlink: symlink(): No such file or directory
      The [/app/code/public/modules/darkmode] symlink has been created
      Clearing cache...
      The compiled services & packages files have been removed.
      Cache cleared successfully.
      Compiled views cleared!
      Configuration cache cleared!
      Configuration cached successfully!
      Created: storage/app/public/js/vars.js
      
      nebulon 1 Reply Last reply Reply Quote 0
      • humptydumpty
        humptydumpty last edited by humptydumpty

        I used rm -r -f /path/ to delete the darkmode folder in the following places:

        /app/code/Modules/DarkMode
        /app/data/public-modules

        Then, installed and activated the Dark Mode module and it worked!

        For future reference (to self) https://askubuntu.com/questions/201775/how-do-i-remove-a-folder

        1 Reply Last reply Reply Quote 1
        • nebulon
          nebulon Staff @humptydumpty last edited by

          @humptydumpty yeah it just worked out of the box for me after putting the license key.

          humptydumpty 2 Replies Last reply Reply Quote 0
          • humptydumpty
            humptydumpty @nebulon last edited by humptydumpty

            @nebulon In that case, I'll report upstream. Thanks!

            Edit: reported here: https://github.com/freescout-helpdesk/freescout/issues/2250

            1 Reply Last reply Reply Quote 0
            • humptydumpty
              humptydumpty @nebulon last edited by humptydumpty

              @nebulon I'm using the File Manager to delete the dark mode folder in /app/data/Modules/darkmode

              But there's a symlink that I can't delete in /app/data/public-modules/darkmode. Could this be the issue?

              Upstream referenced this comment as a solution but using the file manager instead of SSH (should do the same trick right?) didn't work. https://github.com/freescout-helpdesk/freescout/issues/2240#issuecomment-1248148277

               tried simply SSH delete "/home/admin/domains/xxx/public_html/public/modules/darkmode" file and re-install the module. => Did not work.
              
              Next I tried SSH delete "/home/admin/domains/xxx/public_html/public/modules/darkmode" file and activate it without re-install. => It worked!
              

              I get the following:

              Cache cleared successfully.
              Module with the specified alias not found: darkmode
              
              nebulon 1 Reply Last reply Reply Quote 0
              • nebulon
                nebulon Staff @humptydumpty last edited by

                @humptydumpty I don't fully get the root cause, but I guess starting over is worth a try. Can you delete the symlink via the webterminal?

                humptydumpty 1 Reply Last reply Reply Quote 0
                • humptydumpty
                  humptydumpty @nebulon last edited by humptydumpty

                  @nebulon what's the exact command I need to use?

                  The darkmode folder is deleted in app/data/modules/

                  I get a "Cloudron error" with no actual error details if I try to delete the symlink in

                  /app/data/public-modules/darkmode

                  717ffa5f-02b6-4e0d-b526-1d3f03c3506f-image.png

                  1 Reply Last reply Reply Quote 0
                  • humptydumpty
                    humptydumpty last edited by humptydumpty

                    I used rm -r -f /path/ to delete the darkmode folder in the following places:

                    /app/code/Modules/DarkMode
                    /app/data/public-modules

                    Then, installed and activated the Dark Mode module and it worked!

                    For future reference (to self) https://askubuntu.com/questions/201775/how-do-i-remove-a-folder

                    1 Reply Last reply Reply Quote 1
                    • Topic has been marked as a question  humptydumpty humptydumpty 
                    • Topic has been marked as solved  humptydumpty humptydumpty 
                    • First post
                      Last post
                    Powered by NodeBB