• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

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

Missing admin submenus

Installing Bagisto
4
11
1.2k
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.
  • F
    fmora last edited by 20 May 2020, 22:19

    Hi
    I'm having trouble using the admin on a fresh install, the submenus are not displayed, the routes however work. Where to start troubleshooting this?

    No errors are shown in the browser console or the server log.

    The configure menu on the other hand, is working as expected.

    2d27cb64-4bef-44fa-a2ae-71c6ad47e1cf-image.png

    1 Reply Last reply Reply Quote 0
    • V
      Vaishali Agarwal last edited by 21 May 2020, 05:10

      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 21 May 2020, 16:04

        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 22 May 2020, 07:58

          @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
          • 10 days later
          • F
            fmora last edited by fmora 31 May 2020, 23:15 31 May 2020, 23:14

            @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 11 Jun 2020, 03:11 Reply Quote 0
            • 10 days later
            • H
              Hein @fmora last edited by 11 Jun 2020, 03:11

              @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 17 Jul 2020, 06:27 Reply Quote 1
              • H
                Hein last edited by 16 Jun 2020, 09:09

                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
                • about a month later
                • W
                  William Hatanaka @Hein last edited by William Hatanaka 17 Jul 2020, 06:28 17 Jul 2020, 06:27

                  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 20 Jul 2020, 09:49

                    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 20 Jul 2020, 09:58 Reply Quote 0
                    • W
                      William Hatanaka @Vaishali Agarwal last edited by 20 Jul 2020, 09:58

                      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 20 Jul 2020, 15:58

                        @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
                        6 out of 11
                        • First post
                          6/11
                          Last post