• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
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 3 Mar 2020, 06:00

    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 3 Mar 2020, 06:12

      Hi @sivaraja
      could you please mention the bagisto version?

      S 1 Reply Last reply 3 Mar 2020, 06:45 Reply Quote 0
      • S
        sivaraja @Vaishali Agarwal last edited by 3 Mar 2020, 06:45

        @Vaishali-Agarwal Version 1.0

        1 Reply Last reply Reply Quote 0
        • V
          Vaishali Agarwal last edited by 3 Mar 2020, 06:59

          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 3 Mar 2020, 07:21 Reply Quote 0
          • S
            sivaraja last edited by 3 Mar 2020, 07:07

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • S
              sivaraja @Vaishali Agarwal last edited by 3 Mar 2020, 07:21

              @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 3 Mar 2020, 07:55

                Hello @sivaraja,

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

                Thanks

                S 1 Reply Last reply 3 Mar 2020, 08:02 Reply Quote 0
                • S
                  sivaraja @prateek-webkul last edited by 3 Mar 2020, 08:02

                  @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 3 Mar 2020, 08:19

                    @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 3 Mar 2020, 09:16 Reply Quote 0
                    • S
                      sivaraja @prateek-webkul last edited by 3 Mar 2020, 09:16

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

                      1 Reply Last reply Reply Quote 0
                      5 out of 10
                      • First post
                        5/10
                        Last post