Bagisto Forum

    Bagisto

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

    Create a slider in Home page but i faced (Trying to get property 'image' of non-object) error

    Bug Report
    3
    10
    623
    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.
    • S
      sivaraja last edited by

      ErrorException (E_ERROR)
      Trying to get property 'image' of non-object (View: C:\xampp\htdocs\bagisto\resources\themes\velocity\views\home\category-with-custom-option.blade.php) (View: ) (View: C:\xampp\htdocs\bagisto\resources\themes\velocity\views\home\category-with-custom-option.blade.php)
      Previous exceptions
      Trying to get property 'image' of non-object (View: C:\xampp\htdocs\bagisto\resources\themes\velocity\views\home\category-with-custom-option.blade.php) (View: ) (0)
      Trying to get property 'image' of non-object (View: C:\xampp\htdocs\bagisto\resources\themes\velocity\views\home\category-with-custom-option.blade.php) (0)
      Trying to get property 'image' of non-object (0)

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

        Hi @sivaraja
        could you please mention the bagisto version?

        S 1 Reply Last reply Reply Quote 0
        • S
          sivaraja @Vaishali Agarwal last edited by

          @Vaishali-Agarwal Version 1.0

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

            Hi @sivaraja

            Check APP_URL path in .env file, it should be like :
            http://localhost/ProjectName/public/

            and then try to run these following commands:
            1- php artisan storage:link
            2- php artisan view:clear
            3- php artisan cache:clear
            4- composer dump-autoload

            S 1 Reply Last reply Reply Quote 0
            • S
              sivaraja last edited by

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • S
                sivaraja @Vaishali Agarwal last edited by

                @Vaishali-Agarwal everything i checked and set APP_URL path also in .env file by (http://localhost/ProjectName/public/) this format but i faced that same issue

                1 Reply Last reply Reply Quote 0
                • P
                  prateek-webkul last edited by

                  Hello @sivaraja,

                  I guess you have provided the wrong slug. Please once check.

                  Thanks

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    sivaraja @prateek-webkul last edited by

                    @prateek-webkul , but i go to admin panel - > settings -> slider to create the slider,
                    and i faced this issue but they told me wrong slug how to solve this

                    1 Reply Last reply Reply Quote 0
                    • P
                      prateek-webkul last edited by

                      @sivaraja,

                      as here we have included the file 'category-with-custom-option' and passed the category slugs in it e.g., kids-new, men-collection. So,there may be spelling mistake or that slug does't exist that's why you are facing this issue.

                      velocity-issue.png

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        sivaraja @prateek-webkul last edited by

                        @prateek-webkul yes correct now its working fine, thanks @prateek-webkul

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