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

Bagisto

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

Undefined variable $__env (View: /var/www/html/public) (View: /var/www/html/resources/themes/velocity/views/home/index.blade.php)

Installing Bagisto
4
12
2.6k
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.
  • A
    alggan4 last edited by 22 Mar 2023, 22:25

    Hi there.
    After bagisto:install I get this error on home page :
    Undefined variable $__env (View: /var/www/html/public) (View: /var/www/html/resources/themes/velocity/views/home/index.blade.php)

    php 8.1.11
    phpinfo:
    sodium support enabled
    variables_order EGPCS

    Does anyone have an idea what this means and how to fix it?
    It's looks like than issue

    Thanks

    1 Reply Last reply Reply Quote 0
    • sanjay-webkul
      sanjay-webkul last edited by 23 Mar 2023, 05:11

      Hi there,
      Is it possible to share the steps which you followed for install the bagisto?

      1 Reply Last reply Reply Quote 0
      • A
        alggan4 last edited by 23 Mar 2023, 09:27

        Hi.

        In my local machine I have php PHP 7.3.29 (cli) , so I must use sail
        and install using this strange steps 3 and 4

        1.download bagisto-v1.4.5
        2.unzip and copy it to working folder
        3.add to composer.json:
        "require-dev": {
        ...
        "laravel/sail": "^1.0.1",
        ...
        }
        4. copy from other project
        .env
        sail
        docker-compose.yml
        vendor/bin/sail
        vendor/laravel/

        1. run:
          sail up

        2. run:
          sail composer update

        3. sail php artisan bagisto:install

        1 Reply Last reply Reply Quote 0
        • sanjay-webkul
          sanjay-webkul last edited by 24 Mar 2023, 04:59

          Hi there,
          Can you please try with php 8.1 and composer 2.4

          1 Reply Last reply Reply Quote 0
          • A
            alggan4 last edited by 24 Mar 2023, 06:27

            I work in docker using sail and there php v 8.1.17 and composer v2.5.5

            1 Reply Last reply Reply Quote 0
            • S
              shaun last edited by 24 Mar 2023, 11:36

              I'm using Laravel Sail and having the same issue

              1 Reply Last reply Reply Quote 0
              • M
                murilo last edited by 25 Mar 2023, 17:43

                Hi there,

                currently i'm using PHP 8.2.2 and composer 2.5.2, and having this issue.

                1 Reply Last reply Reply Quote 0
                • sanjay-webkul
                  sanjay-webkul last edited by 27 Mar 2023, 06:52

                  Hi there,

                  Please follow the below commands for installing the Bagisto. and if still you are getting the same issue then please let me know.

                  1. git clone -b v1.4.5 https://github.com/bagisto/bagisto.git
                  2. cd bagisto
                  3. composer create
                  4. edit the .env file [ configure the app_url, email and database credentials]
                  5. php artisan bagisto:install
                  A 1 Reply Last reply 27 Mar 2023, 12:23 Reply Quote 0
                  • A
                    alggan4 @sanjay-webkul last edited by 27 Mar 2023, 12:23

                    @sanjay-webkul said in Undefined variable $__env (View: /var/www/html/public) (View: /var/www/html/resources/themes/velocity/views/home/index.blade.php):

                    Hi there,

                    Please follow the below commands for installing the Bagisto. and if still you are getting the same issue then please let me know.

                    1. git clone -b v1.4.5 https://github.com/bagisto/bagisto.git
                    2. cd bagisto
                    3. composer create
                    4. edit the .env file [ configure the app_url, email and database credentials]
                    5. php artisan bagisto:install

                    It's too easy )
                    In local machine I have php v7.3 and can't upgrate it to v8. So I need use sail and docker.
                    Is it possible to install the sail and bagisto? Аnd if so, give please instruction.
                    I think this instruction will help a lot.

                    А few weeks ago I successfully run sail and bagisto.zip (1.4.5), so I know it's possible. But now I can't reproduce those steps, and lost the source code.

                    1 Reply Last reply Reply Quote 0
                    • sanjay-webkul
                      sanjay-webkul last edited by 29 Mar 2023, 12:02

                      Hi there,
                      Please follow This issue

                      1 Reply Last reply Reply Quote 0
                      • A
                        alggan4 last edited by alggan4 29 Mar 2023, 15:02 29 Mar 2023, 14:43

                        Hi
                        I think I get solution for run

                        1. git clone -b v1.4.5 https://github.com/bagisto/bagisto.git

                        2. copy to bagisto folder (from other project): (not use "composer update" command)
                          docker-compose.yml - check must be 8.1 php
                          vendor/bin
                          vendor/laravel
                          vendor/autoload.php
                          .env - check db credentials, be shure that you point to new db (dagisto:install rewrite db in step 6 )

                        3. cd bagisto

                        4. sail up

                        5. sail composer create

                        6. sail php artisan bagisto:install

                        1 Reply Last reply Reply Quote 0
                        • sanjay-webkul
                          sanjay-webkul last edited by 31 Mar 2023, 13:03

                          Hi there.
                          You can take a reference from Here

                          1 Reply Last reply Reply Quote 0
                          6 out of 12
                          • First post
                            6/12
                            Last post