Bagisto Forum

    Bagisto

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

    Missing admin submenus

    Installing Bagisto
    4
    11
    1214
    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.
    • V
      Vaishali Agarwal last edited by

      Hi @fmora

      Let me know Have you done any changes in the code???
      else
      try the following commands mentioned below:-

      composer dump-autoload
      
      php artisan config:cache
      
      php artisan config:clear
      
      1 Reply Last reply Reply Quote 0
      • F
        fmora last edited by

        Hi @Vaishali-Agarwal , thank you for your help.
        I've tried your suggestions and the problem still persist.
        This made me realize though, that the only modification I've done to my code could be causing this (app/Providers/AppServiceProvider.php):

            public function boot()                                                                                                                                                                                                                 
             {                                                                                                                                                                                                                                      
                 Schema::defaultStringLength(191);
                                                                                                                                                                                                          
                 if (\App::environment('production')) {
                     \URL::forceScheme('https');
                 }                                                                                                                                                                                                                                  
             }
        

        If I remove the forceScheme bit, the menus are displayed, but no style or JS are loaded due to mixed content errors on the browser.

        So my question is now, Is there any better approach to enable https?

        1 Reply Last reply Reply Quote 0
        • V
          Vaishali Agarwal last edited by

          @fmora

          don't need to use forceScheme for https.
          Just mention the https in APP_URL in .env file

          Thanks

          1 Reply Last reply Reply Quote 0
          • F
            fmora last edited by fmora

            @Vaishali-Agarwal
            My .env had already the correct scheme.

            I had an issue on the web server configuration, my app is behind a proxy that routed the requests using http internally, ended up handling SSL on the app server configuration as well.
            It is working now.

            Thank you for your help.

            H 1 Reply Last reply Reply Quote 0
            • H
              Hein @fmora last edited by

              @fmora Can you describe how did you fix this issue ?

              I"m using Docker and Traefik for routing and ssl. I'm having the same issue.

              I think it might be same reason since I'm using traefik as reverse-proxy.

              W 1 Reply Last reply Reply Quote 1
              • H
                Hein last edited by

                Figure out a way. Writing up here for future reference.

                Step 1 - In boot() method of AppServiceProvider (app/Providers/AppServiceProvider.php), use this

                $this->app['request']->server->set('HTTPS', true);
                

                instead of this

                \URL::forceScheme('https');
                

                Once you do this, admin submenu will appear. However, it might break other stuffs like assets. If that happen do Step #2.

                Step 2 - Use secure_asset instead of asset in Blade and theme files.

                1 Reply Last reply Reply Quote 3
                • W
                  William Hatanaka @Hein last edited by William Hatanaka

                  Hello @Hein!
                  I have the same environment (bagisto with docker) and I'm trying to install letsencrypt using traefik. But I am not very familiar with letsencrypt and neither with traefik version 2.2. Could you tell me how you implemented SSL for bagisto? I would appreciate it very much.

                  1 Reply Last reply Reply Quote 0
                  • V
                    Vaishali Agarwal last edited by

                    Hi @William-Hatanaka
                    userguide is here https://bagisto.com/en/configure-ssl-for-tenant-domain-in-multi-tenant-saas-ecommerce-module/ if you want to setup SSL using Let's encrypt.

                    W 1 Reply Last reply Reply Quote 0
                    • W
                      William Hatanaka @Vaishali Agarwal last edited by

                      Thank you @Vaishali-Agarwal
                      But I am using docker version of Bagisto.
                      So, is there a tutorial to install SSL using traefik or similar to Bagisto-with-Docker?
                      Thank you

                      1 Reply Last reply Reply Quote 0
                      • V
                        Vaishali Agarwal last edited by

                        @William-Hatanaka said in Missing admin submenus:

                        SSL using traefik

                        Currently we don't have any tutorial on traefik, still by searching more on google here is the guide which might help you https://docs.traefik.io/v1.7/user-guide/docker-and-lets-encrypt/

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post