Create a slider in Home page but i faced (Trying to get property 'image' of non-object) error
-
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) -
Hi @sivaraja
could you please mention the bagisto version? -
@Vaishali-Agarwal Version 1.0
-
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 -
This post is deleted! -
@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
-
-
@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 -
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.
-
@prateek-webkul yes correct now its working fine, thanks @prateek-webkul