Call to a member function getId() on null - module-catalog/Helper/Product.php Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Some 3rd level categories are not showing in filter in magento2Uncaught Error: Call to a member function setItem() on boolean on product grid: Magento 2Magento 2.2.2 REST API - I need to change the customer password using REST APIError at order shippingCall to a member function getId() on null in /var/www/vhosts/<web>/<name>/vendor/magento/framework/View/Model/Layout/Merge.phpHow to override webapi.xml in custom module?Add configure product in Cart using Magento 2 API facing an issueMagento2 REST API get all customers detailsUnable to Serialize Value Magento 2.2.6when click on place order then paypal showing error in Magento2Overriding the contact form module gets the fatal error in Magento2.2.5?
Project Euler #1 in C++
How to report t statistic from R
Getting prompted for verification code but where do I put it in?
What to do with repeated rejections for phd position
One-one communication
The test team as an enemy of development? And how can this be avoided?
macOS: Name for app shortcut screen found by pinching with thumb and three fingers
Is there hard evidence that the grant peer review system performs significantly better than random?
Would it be easier to apply for a UK visa if there is a host family to sponsor for you in going there?
Tannaka duality for semisimple groups
Why are vacuum tubes still used in amateur radios?
Most bit efficient text communication method?
What is an "asse" in Elizabethan English?
In musical terms, what properties are varied by the human voice to produce different words / syllables?
Maximum summed subsequences with non-adjacent items
Google .dev domain strangely redirects to https
How many morphisms from 1 to 1+1 can there be?
Putting class ranking in CV, but against dept guidelines
Can a sorcerer use careful spell on himself?
Central Vacuuming: Is it worth it, and how does it compare to normal vacuuming?
How were pictures turned from film to a big picture in a picture frame before digital scanning?
How to run automated tests after each commit?
What is the chair depicted in Cesare Maccari's 1889 painting "Cicerone denuncia Catilina"?
Do wooden building fires get hotter than 600°C?
Call to a member function getId() on null - module-catalog/Helper/Product.php
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?Some 3rd level categories are not showing in filter in magento2Uncaught Error: Call to a member function setItem() on boolean on product grid: Magento 2Magento 2.2.2 REST API - I need to change the customer password using REST APIError at order shippingCall to a member function getId() on null in /var/www/vhosts/<web>/<name>/vendor/magento/framework/View/Model/Layout/Merge.phpHow to override webapi.xml in custom module?Add configure product in Cart using Magento 2 API facing an issueMagento2 REST API get all customers detailsUnable to Serialize Value Magento 2.2.6when click on place order then paypal showing error in Magento2Overriding the contact form module gets the fatal error in Magento2.2.5?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I added sample data to my magento2 website, but when I want to access to a product I always get this error :
Fatal error: Uncaught Error: Call to a member function getId() on null
in
/var/www/html/test/vendor/magento/module-catalog/Helper/Product.php:313
Stack trace: #0
/var/www/html/test/vendor/magento/module-catalog/Helper/Product.php(430):
MagentoCatalogHelperProduct->canShow(NULL) #1
/var/www/html/test/vendor/magento/module-catalog/Helper/Product/View.php(263):
MagentoCatalogHelperProduct->initProduct(1562,
Object(MagentoCatalogControllerProductViewInterceptor),
Object(MagentoFrameworkDataObject)) #2
/var/www/html/test/vendor/magento/module-catalog/Controller/Product/View.php(118):
MagentoCatalogHelperProductView->prepareAndRender(Object(MagentoFrameworkViewResultPageInterceptor),
1562, Object(MagentoCatalogControllerProductViewInterceptor),
Object(MagentoFrameworkDataObject)) #3
/var/www/html/test/vendor/magento/framework/App/Action/Action.php(108):
MagentoCatalogControllerProductView->execute() #4
/var/www/html/test/vendor/magento/framework/Interception/Interceptor.php(58):
MagentoFramewor in
/var/www/html/test/vendor/magento/module-catalog/Helper/Product.php on
line 313
The Product.php code :
public function canShow($product, $where = 'catalog')
if (is_int($product))
try
$product = $this->productRepository->getById($product);
catch (NoSuchEntityException $e)
return false;
else
/*313*/ if (!$product->getId())
return false;
return $product->isVisibleInCatalog() && $product->isVisibleInSiteVisibility();
when I var_dump($product)
it's return NULL
Product.php class code : https://snipsave.com/saadsaad/#/snippet/iDIEafixLtWgzWO9sK
is there any solution?
magento2
|
show 2 more comments
I added sample data to my magento2 website, but when I want to access to a product I always get this error :
Fatal error: Uncaught Error: Call to a member function getId() on null
in
/var/www/html/test/vendor/magento/module-catalog/Helper/Product.php:313
Stack trace: #0
/var/www/html/test/vendor/magento/module-catalog/Helper/Product.php(430):
MagentoCatalogHelperProduct->canShow(NULL) #1
/var/www/html/test/vendor/magento/module-catalog/Helper/Product/View.php(263):
MagentoCatalogHelperProduct->initProduct(1562,
Object(MagentoCatalogControllerProductViewInterceptor),
Object(MagentoFrameworkDataObject)) #2
/var/www/html/test/vendor/magento/module-catalog/Controller/Product/View.php(118):
MagentoCatalogHelperProductView->prepareAndRender(Object(MagentoFrameworkViewResultPageInterceptor),
1562, Object(MagentoCatalogControllerProductViewInterceptor),
Object(MagentoFrameworkDataObject)) #3
/var/www/html/test/vendor/magento/framework/App/Action/Action.php(108):
MagentoCatalogControllerProductView->execute() #4
/var/www/html/test/vendor/magento/framework/Interception/Interceptor.php(58):
MagentoFramewor in
/var/www/html/test/vendor/magento/module-catalog/Helper/Product.php on
line 313
The Product.php code :
public function canShow($product, $where = 'catalog')
if (is_int($product))
try
$product = $this->productRepository->getById($product);
catch (NoSuchEntityException $e)
return false;
else
/*313*/ if (!$product->getId())
return false;
return $product->isVisibleInCatalog() && $product->isVisibleInSiteVisibility();
when I var_dump($product)
it's return NULL
Product.php class code : https://snipsave.com/saadsaad/#/snippet/iDIEafixLtWgzWO9sK
is there any solution?
magento2
It can be an indexing issue did you reindexed the site after the sample data deployment?
– ABHISHEK TRIPATHI
2 days ago
I lunch this commandphp bin/magento indexer:reindex
but still not work
– sayou
2 days ago
did you check the$product
likeprint_r($product)
to check that the data is coming in in your$product
or not
– Asad Khan
2 days ago
Id suggest redeploying your site if it still doesnt work try accessing the site via the admin and seeing if you can access the products via the admin if so save one via the admin and try and review that product
– Dava Gordon
2 days ago
@AsadKhan I don't really understand what you mean, but I get the list of products on the home page, but when I try to a specific one I get this error
– sayou
2 days ago
|
show 2 more comments
I added sample data to my magento2 website, but when I want to access to a product I always get this error :
Fatal error: Uncaught Error: Call to a member function getId() on null
in
/var/www/html/test/vendor/magento/module-catalog/Helper/Product.php:313
Stack trace: #0
/var/www/html/test/vendor/magento/module-catalog/Helper/Product.php(430):
MagentoCatalogHelperProduct->canShow(NULL) #1
/var/www/html/test/vendor/magento/module-catalog/Helper/Product/View.php(263):
MagentoCatalogHelperProduct->initProduct(1562,
Object(MagentoCatalogControllerProductViewInterceptor),
Object(MagentoFrameworkDataObject)) #2
/var/www/html/test/vendor/magento/module-catalog/Controller/Product/View.php(118):
MagentoCatalogHelperProductView->prepareAndRender(Object(MagentoFrameworkViewResultPageInterceptor),
1562, Object(MagentoCatalogControllerProductViewInterceptor),
Object(MagentoFrameworkDataObject)) #3
/var/www/html/test/vendor/magento/framework/App/Action/Action.php(108):
MagentoCatalogControllerProductView->execute() #4
/var/www/html/test/vendor/magento/framework/Interception/Interceptor.php(58):
MagentoFramewor in
/var/www/html/test/vendor/magento/module-catalog/Helper/Product.php on
line 313
The Product.php code :
public function canShow($product, $where = 'catalog')
if (is_int($product))
try
$product = $this->productRepository->getById($product);
catch (NoSuchEntityException $e)
return false;
else
/*313*/ if (!$product->getId())
return false;
return $product->isVisibleInCatalog() && $product->isVisibleInSiteVisibility();
when I var_dump($product)
it's return NULL
Product.php class code : https://snipsave.com/saadsaad/#/snippet/iDIEafixLtWgzWO9sK
is there any solution?
magento2
I added sample data to my magento2 website, but when I want to access to a product I always get this error :
Fatal error: Uncaught Error: Call to a member function getId() on null
in
/var/www/html/test/vendor/magento/module-catalog/Helper/Product.php:313
Stack trace: #0
/var/www/html/test/vendor/magento/module-catalog/Helper/Product.php(430):
MagentoCatalogHelperProduct->canShow(NULL) #1
/var/www/html/test/vendor/magento/module-catalog/Helper/Product/View.php(263):
MagentoCatalogHelperProduct->initProduct(1562,
Object(MagentoCatalogControllerProductViewInterceptor),
Object(MagentoFrameworkDataObject)) #2
/var/www/html/test/vendor/magento/module-catalog/Controller/Product/View.php(118):
MagentoCatalogHelperProductView->prepareAndRender(Object(MagentoFrameworkViewResultPageInterceptor),
1562, Object(MagentoCatalogControllerProductViewInterceptor),
Object(MagentoFrameworkDataObject)) #3
/var/www/html/test/vendor/magento/framework/App/Action/Action.php(108):
MagentoCatalogControllerProductView->execute() #4
/var/www/html/test/vendor/magento/framework/Interception/Interceptor.php(58):
MagentoFramewor in
/var/www/html/test/vendor/magento/module-catalog/Helper/Product.php on
line 313
The Product.php code :
public function canShow($product, $where = 'catalog')
if (is_int($product))
try
$product = $this->productRepository->getById($product);
catch (NoSuchEntityException $e)
return false;
else
/*313*/ if (!$product->getId())
return false;
return $product->isVisibleInCatalog() && $product->isVisibleInSiteVisibility();
when I var_dump($product)
it's return NULL
Product.php class code : https://snipsave.com/saadsaad/#/snippet/iDIEafixLtWgzWO9sK
is there any solution?
magento2
magento2
edited 2 days ago
sayou
asked 2 days ago
sayousayou
1358
1358
It can be an indexing issue did you reindexed the site after the sample data deployment?
– ABHISHEK TRIPATHI
2 days ago
I lunch this commandphp bin/magento indexer:reindex
but still not work
– sayou
2 days ago
did you check the$product
likeprint_r($product)
to check that the data is coming in in your$product
or not
– Asad Khan
2 days ago
Id suggest redeploying your site if it still doesnt work try accessing the site via the admin and seeing if you can access the products via the admin if so save one via the admin and try and review that product
– Dava Gordon
2 days ago
@AsadKhan I don't really understand what you mean, but I get the list of products on the home page, but when I try to a specific one I get this error
– sayou
2 days ago
|
show 2 more comments
It can be an indexing issue did you reindexed the site after the sample data deployment?
– ABHISHEK TRIPATHI
2 days ago
I lunch this commandphp bin/magento indexer:reindex
but still not work
– sayou
2 days ago
did you check the$product
likeprint_r($product)
to check that the data is coming in in your$product
or not
– Asad Khan
2 days ago
Id suggest redeploying your site if it still doesnt work try accessing the site via the admin and seeing if you can access the products via the admin if so save one via the admin and try and review that product
– Dava Gordon
2 days ago
@AsadKhan I don't really understand what you mean, but I get the list of products on the home page, but when I try to a specific one I get this error
– sayou
2 days ago
It can be an indexing issue did you reindexed the site after the sample data deployment?
– ABHISHEK TRIPATHI
2 days ago
It can be an indexing issue did you reindexed the site after the sample data deployment?
– ABHISHEK TRIPATHI
2 days ago
I lunch this command
php bin/magento indexer:reindex
but still not work– sayou
2 days ago
I lunch this command
php bin/magento indexer:reindex
but still not work– sayou
2 days ago
did you check the
$product
like print_r($product)
to check that the data is coming in in your $product
or not– Asad Khan
2 days ago
did you check the
$product
like print_r($product)
to check that the data is coming in in your $product
or not– Asad Khan
2 days ago
Id suggest redeploying your site if it still doesnt work try accessing the site via the admin and seeing if you can access the products via the admin if so save one via the admin and try and review that product
– Dava Gordon
2 days ago
Id suggest redeploying your site if it still doesnt work try accessing the site via the admin and seeing if you can access the products via the admin if so save one via the admin and try and review that product
– Dava Gordon
2 days ago
@AsadKhan I don't really understand what you mean, but I get the list of products on the home page, but when I try to a specific one I get this error
– sayou
2 days ago
@AsadKhan I don't really understand what you mean, but I get the list of products on the home page, but when I try to a specific one I get this error
– sayou
2 days ago
|
show 2 more comments
3 Answers
3
active
oldest
votes
Change your code from if (!$product->getId())
to if (!$product)
it should work
complete code would be:
public function canShow($product, $where = 'catalog')
if (is_int($product))
try
$product = $this->productRepository->getById($product);
catch (NoSuchEntityException $e)
return false;
else
/*313*/
if (!$product)
return false;
return $product->isVisibleInCatalog() && $product->isVisibleInSiteVisibility();
1
I do it, but when I access to a product I get 404 page
– sayou
2 days ago
add a comment |
Try this one:null
will be returned if the object is null.
public function canShow($product, $where = 'catalog')
if (is_int($product))
try
$product = $this->productRepository->getById($product);
catch (NoSuchEntityException $e)
return false;
else
return $product ? $product->getId() : null;
return $product->isVisibleInCatalog() && $product->isVisibleInSiteVisibility();
It's get a 404 page
– sayou
2 days ago
better if you can post your whole Product class so that we can check why it returns 404
– magefms
2 days ago
@magefms, can you help me on this please, magento.stackexchange.com/questions/270442/…
– jafar pinjar
2 days ago
@magefms I added the product.php code
– sayou
2 days ago
@sayou I tried your code but it works. kindly double check if you have some custom class that extends product helper class
– magefms
2 days ago
|
show 1 more comment
After a lot of search, I found that the problem was on di.xml
because I added this:
<preference for="MagentoCatalogApiProductRepositoryInterface"
type="TestingHelloWorldModelCustomImplementation" />
so I remove it and it's work
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f270445%2fcall-to-a-member-function-getid-on-null-module-catalog-helper-product-php%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
Change your code from if (!$product->getId())
to if (!$product)
it should work
complete code would be:
public function canShow($product, $where = 'catalog')
if (is_int($product))
try
$product = $this->productRepository->getById($product);
catch (NoSuchEntityException $e)
return false;
else
/*313*/
if (!$product)
return false;
return $product->isVisibleInCatalog() && $product->isVisibleInSiteVisibility();
1
I do it, but when I access to a product I get 404 page
– sayou
2 days ago
add a comment |
Change your code from if (!$product->getId())
to if (!$product)
it should work
complete code would be:
public function canShow($product, $where = 'catalog')
if (is_int($product))
try
$product = $this->productRepository->getById($product);
catch (NoSuchEntityException $e)
return false;
else
/*313*/
if (!$product)
return false;
return $product->isVisibleInCatalog() && $product->isVisibleInSiteVisibility();
1
I do it, but when I access to a product I get 404 page
– sayou
2 days ago
add a comment |
Change your code from if (!$product->getId())
to if (!$product)
it should work
complete code would be:
public function canShow($product, $where = 'catalog')
if (is_int($product))
try
$product = $this->productRepository->getById($product);
catch (NoSuchEntityException $e)
return false;
else
/*313*/
if (!$product)
return false;
return $product->isVisibleInCatalog() && $product->isVisibleInSiteVisibility();
Change your code from if (!$product->getId())
to if (!$product)
it should work
complete code would be:
public function canShow($product, $where = 'catalog')
if (is_int($product))
try
$product = $this->productRepository->getById($product);
catch (NoSuchEntityException $e)
return false;
else
/*313*/
if (!$product)
return false;
return $product->isVisibleInCatalog() && $product->isVisibleInSiteVisibility();
answered 2 days ago
Shoaib MunirShoaib Munir
2,55821031
2,55821031
1
I do it, but when I access to a product I get 404 page
– sayou
2 days ago
add a comment |
1
I do it, but when I access to a product I get 404 page
– sayou
2 days ago
1
1
I do it, but when I access to a product I get 404 page
– sayou
2 days ago
I do it, but when I access to a product I get 404 page
– sayou
2 days ago
add a comment |
Try this one:null
will be returned if the object is null.
public function canShow($product, $where = 'catalog')
if (is_int($product))
try
$product = $this->productRepository->getById($product);
catch (NoSuchEntityException $e)
return false;
else
return $product ? $product->getId() : null;
return $product->isVisibleInCatalog() && $product->isVisibleInSiteVisibility();
It's get a 404 page
– sayou
2 days ago
better if you can post your whole Product class so that we can check why it returns 404
– magefms
2 days ago
@magefms, can you help me on this please, magento.stackexchange.com/questions/270442/…
– jafar pinjar
2 days ago
@magefms I added the product.php code
– sayou
2 days ago
@sayou I tried your code but it works. kindly double check if you have some custom class that extends product helper class
– magefms
2 days ago
|
show 1 more comment
Try this one:null
will be returned if the object is null.
public function canShow($product, $where = 'catalog')
if (is_int($product))
try
$product = $this->productRepository->getById($product);
catch (NoSuchEntityException $e)
return false;
else
return $product ? $product->getId() : null;
return $product->isVisibleInCatalog() && $product->isVisibleInSiteVisibility();
It's get a 404 page
– sayou
2 days ago
better if you can post your whole Product class so that we can check why it returns 404
– magefms
2 days ago
@magefms, can you help me on this please, magento.stackexchange.com/questions/270442/…
– jafar pinjar
2 days ago
@magefms I added the product.php code
– sayou
2 days ago
@sayou I tried your code but it works. kindly double check if you have some custom class that extends product helper class
– magefms
2 days ago
|
show 1 more comment
Try this one:null
will be returned if the object is null.
public function canShow($product, $where = 'catalog')
if (is_int($product))
try
$product = $this->productRepository->getById($product);
catch (NoSuchEntityException $e)
return false;
else
return $product ? $product->getId() : null;
return $product->isVisibleInCatalog() && $product->isVisibleInSiteVisibility();
Try this one:null
will be returned if the object is null.
public function canShow($product, $where = 'catalog')
if (is_int($product))
try
$product = $this->productRepository->getById($product);
catch (NoSuchEntityException $e)
return false;
else
return $product ? $product->getId() : null;
return $product->isVisibleInCatalog() && $product->isVisibleInSiteVisibility();
edited 2 days ago
answered 2 days ago
magefmsmagefms
2,7702528
2,7702528
It's get a 404 page
– sayou
2 days ago
better if you can post your whole Product class so that we can check why it returns 404
– magefms
2 days ago
@magefms, can you help me on this please, magento.stackexchange.com/questions/270442/…
– jafar pinjar
2 days ago
@magefms I added the product.php code
– sayou
2 days ago
@sayou I tried your code but it works. kindly double check if you have some custom class that extends product helper class
– magefms
2 days ago
|
show 1 more comment
It's get a 404 page
– sayou
2 days ago
better if you can post your whole Product class so that we can check why it returns 404
– magefms
2 days ago
@magefms, can you help me on this please, magento.stackexchange.com/questions/270442/…
– jafar pinjar
2 days ago
@magefms I added the product.php code
– sayou
2 days ago
@sayou I tried your code but it works. kindly double check if you have some custom class that extends product helper class
– magefms
2 days ago
It's get a 404 page
– sayou
2 days ago
It's get a 404 page
– sayou
2 days ago
better if you can post your whole Product class so that we can check why it returns 404
– magefms
2 days ago
better if you can post your whole Product class so that we can check why it returns 404
– magefms
2 days ago
@magefms, can you help me on this please, magento.stackexchange.com/questions/270442/…
– jafar pinjar
2 days ago
@magefms, can you help me on this please, magento.stackexchange.com/questions/270442/…
– jafar pinjar
2 days ago
@magefms I added the product.php code
– sayou
2 days ago
@magefms I added the product.php code
– sayou
2 days ago
@sayou I tried your code but it works. kindly double check if you have some custom class that extends product helper class
– magefms
2 days ago
@sayou I tried your code but it works. kindly double check if you have some custom class that extends product helper class
– magefms
2 days ago
|
show 1 more comment
After a lot of search, I found that the problem was on di.xml
because I added this:
<preference for="MagentoCatalogApiProductRepositoryInterface"
type="TestingHelloWorldModelCustomImplementation" />
so I remove it and it's work
add a comment |
After a lot of search, I found that the problem was on di.xml
because I added this:
<preference for="MagentoCatalogApiProductRepositoryInterface"
type="TestingHelloWorldModelCustomImplementation" />
so I remove it and it's work
add a comment |
After a lot of search, I found that the problem was on di.xml
because I added this:
<preference for="MagentoCatalogApiProductRepositoryInterface"
type="TestingHelloWorldModelCustomImplementation" />
so I remove it and it's work
After a lot of search, I found that the problem was on di.xml
because I added this:
<preference for="MagentoCatalogApiProductRepositoryInterface"
type="TestingHelloWorldModelCustomImplementation" />
so I remove it and it's work
answered 2 days ago
sayousayou
1358
1358
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f270445%2fcall-to-a-member-function-getid-on-null-module-catalog-helper-product-php%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
It can be an indexing issue did you reindexed the site after the sample data deployment?
– ABHISHEK TRIPATHI
2 days ago
I lunch this command
php bin/magento indexer:reindex
but still not work– sayou
2 days ago
did you check the
$product
likeprint_r($product)
to check that the data is coming in in your$product
or not– Asad Khan
2 days ago
Id suggest redeploying your site if it still doesnt work try accessing the site via the admin and seeing if you can access the products via the admin if so save one via the admin and try and review that product
– Dava Gordon
2 days ago
@AsadKhan I don't really understand what you mean, but I get the list of products on the home page, but when I try to a specific one I get this error
– sayou
2 days ago