0

When I add a product to muy category this what I found as results enter image description here

1

Let turn on debug mode in Magento. Uncomment/add this code into app/bootstrap.php

error_reporting(E_ALL);
ini_set('display_errors', 1);

Reload the product page to see the error message.

| improve this answer | |
  • ok i will do that immediately – Developper Magento Jul 15 '19 at 10:14
  • thanks i can now see the error – Developper Magento Jul 15 '19 at 10:39
  • I used a plugin to show custom attribute instead of name product but i can't get the value now – Developper Magento Jul 15 '19 at 10:40
  • If you're trying to show the attribute in product detail page, you should load the product model again then get the attribute. Because the model used in detail page is different to the original product model. Use $product->getData(); to check what attributes are contained in it. – Jamy Jul 15 '19 at 10:46
  • public function afterGetName(\Magento\Catalog\Model\Product $subject, $result) { $title = $subject->getResource()->getAttribute('famille_pdt')->setStoreId(1)->getFrontend()->getValue($subject) ."\t". $subject->getResource()->getAttribute('the_business_name_pdt')->setStoreId(1)->getFrontend()->getValue($subject); var_dump($title); return nl2br($title); } – Developper Magento Jul 15 '19 at 10:48
0

Run these commands

php bin/magento setup:static-content:deploy -f
php bin/magento cache:clean
| improve this answer | |
  • i did that but with no result :'( – Developper Magento Jul 15 '19 at 10:06
  • that 's what i got in system.logmain.INFO Broken reference: the 'notification.messages' tries to reorder itself towards 'user', but their parents are different: 'header.inner.right' and 'header' respectively. [] [] [2019-07-15 10:03:16] main.INFO: Broken reference: the 'footer_blog_link' element cannot be added as child to 'footer_links', because the latter doesn't exist [] [] [2019-07-15 10:03:16] main.INFO: Broken reference: the 'div.sidebar.main' tries to reorder itself towards 'main', but their parents are different: 'div.sidebar' and 'div.col-main' respectively – Developper Magento Jul 15 '19 at 10:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.