Magento 2 when I click on frontend my account cannot open and it shows error Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?GENERATE THIS REPORT: main.INFO: Cache file with merged layout: LAYOUT_adminhtml_STORE1_Although I use the correct namespace a wrong instance is passed to the constructorUncaught Error: Call to a member function setItem() on boolean on product grid: Magento 2unit test with phpunitAdd a template file to cms page Magento 2Magento2.2.4 : Uninstall a theme throw exceptions?Magento 2 Create dynamic array From different Model Collection to use in multi select in gridFatal error: Uncaught Error: Cannot instantiate abstract class MagentoFrameworkModelResourceModelAbstractResourceMagento 2.3 Can't view module's front end page output?MsrpPriceCalculator Exception

Dating a Former Employee

What is the font for "b" letter?

AppleTVs create a chatty alternate WiFi network

Take 2! Is this homebrew Lady of Pain warlock patron balanced?

Why does it sometimes sound good to play a grace note as a lead in to a note in a melody?

Using audio cues to encourage good posture

What do you call the main part of a joke?

Has negative voting ever been officially implemented in elections, or seriously proposed, or even studied?

Why is it faster to reheat something than it is to cook it?

How does light 'choose' between wave and particle behaviour?

Why do we bend a book to keep it straight?

Why weren't discrete x86 CPUs ever used in game hardware?

How to install press fit bottom bracket into new frame

Why aren't air breathing engines used as small first stages?

If Windows 7 doesn't support WSL, then what does Linux subsystem option mean?

Should I use a zero-interest credit card for a large one-time purchase?

Time to Settle Down!

Significance of Cersei's obsession with elephants?

When a candle burns, why does the top of wick glow if bottom of flame is hottest?

How come Sam didn't become Lord of Horn Hill?

How do living politicians protect their readily obtainable signatures from misuse?

Central Vacuuming: Is it worth it, and how does it compare to normal vacuuming?

What is the topology associated with the algebras for the ultrafilter monad?

What initially awakened the Balrog?



Magento 2 when I click on frontend my account cannot open and it shows error



Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?GENERATE THIS REPORT: main.INFO: Cache file with merged layout: LAYOUT_adminhtml_STORE1_Although I use the correct namespace a wrong instance is passed to the constructorUncaught Error: Call to a member function setItem() on boolean on product grid: Magento 2unit test with phpunitAdd a template file to cms page Magento 2Magento2.2.4 : Uninstall a theme throw exceptions?Magento 2 Create dynamic array From different Model Collection to use in multi select in gridFatal error: Uncaught Error: Cannot instantiate abstract class MagentoFrameworkModelResourceModelAbstractResourceMagento 2.3 Can't view module's front end page output?MsrpPriceCalculator Exception



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















enter image description here



I am facing this issue.




My XML file is app/code/Prayag/Module/view/frontend/layout/cms_index_index.xml




<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceContainer name="content">
<block class="MagentoFrameworkViewElementTemplate" name="order_total" template="Prayag_Module::orders.phtml">
</block>
</referenceContainer>
<referenceContainer name="sidebar.additional">
<block class="MagentoFrameworkViewElementTemplate" name="order_total_sidebar" template="Prayag_Module::orders.phtml">
</block>
</referenceContainer>
<referenceContainer name="content">
<block class="MagentoFrameworkViewElementTemplate" name="cart_total_sidebar" template="Prayag_Module::cart_view.phtml">
</block>
</referenceContainer>
</body>
</page>



My phtml file is app/code/Prayag/Module/view/frontend/templates/orders.phtml




<?php

$objectManager = MagentoFrameworkAppObjectManager::getInstance();
$customerSession = $objectManager->create('MagentoCustomerModelSession');
$customerID = $customerSession->getCustomerId();

$order = $this->helper('PrayagModuleHelperData')->getCollection($customerID);

foreach($order as $items) ?>
<span>IncrementId :</span><a href="<?php echo $block->getUrl('sales/order/history'); ?>"><?php echo $items->getIncrementId(); ?></a><br>
<?php
echo "<b>Subtotal :</b>". $items->getSubtotal(). '<br/>';
echo "<b>Order Status :</b>". $items->getStatus(). '<br/>';
echo "<b>Date :</b>". $items->getCreatedAt().'<br/>';





And my helper file is app/code/Prayag/Module/Helper/Data.php




<?php
namespace PrayagModuleHelper;
class Data extends MagentoFrameworkAppHelperAbstractHelper

public function __construct(
MagentoSalesModelOrderFactory $orderFactory
)
$this->orderFactory = $orderFactory;

public function getCollection($customerID)

$collection = $this->orderFactory->create()->getCollection()->setOrder('entity_id', 'DESC')
->addAttributeToFilter('customer_id',$customerID);
$collection->setPageSize(5)->setCurPage(1);
return $collection;











share|improve this question









New contributor




Prayag Dave is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Have you checked your log files and browser console error messages. Try giving proper file permissions too

    – Raj Mohan R
    2 days ago











  • no I didn't check it. how to check that ??

    – Prayag Dave
    2 days ago











  • Check Magento log files in Magento_Directory/var/log/exception.log/debug.log/system.log. Server error log files /var/log/apache2/error_log. Inspect your browser to open the developer console where you can find the errors

    – Raj Mohan R
    2 days ago











  • still it's showing errors

    – Prayag Dave
    2 days ago











  • What error are you finding in the log files with regards to this module

    – Raj Mohan R
    2 days ago

















0















enter image description here



I am facing this issue.




My XML file is app/code/Prayag/Module/view/frontend/layout/cms_index_index.xml




<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceContainer name="content">
<block class="MagentoFrameworkViewElementTemplate" name="order_total" template="Prayag_Module::orders.phtml">
</block>
</referenceContainer>
<referenceContainer name="sidebar.additional">
<block class="MagentoFrameworkViewElementTemplate" name="order_total_sidebar" template="Prayag_Module::orders.phtml">
</block>
</referenceContainer>
<referenceContainer name="content">
<block class="MagentoFrameworkViewElementTemplate" name="cart_total_sidebar" template="Prayag_Module::cart_view.phtml">
</block>
</referenceContainer>
</body>
</page>



My phtml file is app/code/Prayag/Module/view/frontend/templates/orders.phtml




<?php

$objectManager = MagentoFrameworkAppObjectManager::getInstance();
$customerSession = $objectManager->create('MagentoCustomerModelSession');
$customerID = $customerSession->getCustomerId();

$order = $this->helper('PrayagModuleHelperData')->getCollection($customerID);

foreach($order as $items) ?>
<span>IncrementId :</span><a href="<?php echo $block->getUrl('sales/order/history'); ?>"><?php echo $items->getIncrementId(); ?></a><br>
<?php
echo "<b>Subtotal :</b>". $items->getSubtotal(). '<br/>';
echo "<b>Order Status :</b>". $items->getStatus(). '<br/>';
echo "<b>Date :</b>". $items->getCreatedAt().'<br/>';





And my helper file is app/code/Prayag/Module/Helper/Data.php




<?php
namespace PrayagModuleHelper;
class Data extends MagentoFrameworkAppHelperAbstractHelper

public function __construct(
MagentoSalesModelOrderFactory $orderFactory
)
$this->orderFactory = $orderFactory;

public function getCollection($customerID)

$collection = $this->orderFactory->create()->getCollection()->setOrder('entity_id', 'DESC')
->addAttributeToFilter('customer_id',$customerID);
$collection->setPageSize(5)->setCurPage(1);
return $collection;











share|improve this question









New contributor




Prayag Dave is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Have you checked your log files and browser console error messages. Try giving proper file permissions too

    – Raj Mohan R
    2 days ago











  • no I didn't check it. how to check that ??

    – Prayag Dave
    2 days ago











  • Check Magento log files in Magento_Directory/var/log/exception.log/debug.log/system.log. Server error log files /var/log/apache2/error_log. Inspect your browser to open the developer console where you can find the errors

    – Raj Mohan R
    2 days ago











  • still it's showing errors

    – Prayag Dave
    2 days ago











  • What error are you finding in the log files with regards to this module

    – Raj Mohan R
    2 days ago













0












0








0








enter image description here



I am facing this issue.




My XML file is app/code/Prayag/Module/view/frontend/layout/cms_index_index.xml




<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceContainer name="content">
<block class="MagentoFrameworkViewElementTemplate" name="order_total" template="Prayag_Module::orders.phtml">
</block>
</referenceContainer>
<referenceContainer name="sidebar.additional">
<block class="MagentoFrameworkViewElementTemplate" name="order_total_sidebar" template="Prayag_Module::orders.phtml">
</block>
</referenceContainer>
<referenceContainer name="content">
<block class="MagentoFrameworkViewElementTemplate" name="cart_total_sidebar" template="Prayag_Module::cart_view.phtml">
</block>
</referenceContainer>
</body>
</page>



My phtml file is app/code/Prayag/Module/view/frontend/templates/orders.phtml




<?php

$objectManager = MagentoFrameworkAppObjectManager::getInstance();
$customerSession = $objectManager->create('MagentoCustomerModelSession');
$customerID = $customerSession->getCustomerId();

$order = $this->helper('PrayagModuleHelperData')->getCollection($customerID);

foreach($order as $items) ?>
<span>IncrementId :</span><a href="<?php echo $block->getUrl('sales/order/history'); ?>"><?php echo $items->getIncrementId(); ?></a><br>
<?php
echo "<b>Subtotal :</b>". $items->getSubtotal(). '<br/>';
echo "<b>Order Status :</b>". $items->getStatus(). '<br/>';
echo "<b>Date :</b>". $items->getCreatedAt().'<br/>';





And my helper file is app/code/Prayag/Module/Helper/Data.php




<?php
namespace PrayagModuleHelper;
class Data extends MagentoFrameworkAppHelperAbstractHelper

public function __construct(
MagentoSalesModelOrderFactory $orderFactory
)
$this->orderFactory = $orderFactory;

public function getCollection($customerID)

$collection = $this->orderFactory->create()->getCollection()->setOrder('entity_id', 'DESC')
->addAttributeToFilter('customer_id',$customerID);
$collection->setPageSize(5)->setCurPage(1);
return $collection;











share|improve this question









New contributor




Prayag Dave is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












enter image description here



I am facing this issue.




My XML file is app/code/Prayag/Module/view/frontend/layout/cms_index_index.xml




<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceContainer name="content">
<block class="MagentoFrameworkViewElementTemplate" name="order_total" template="Prayag_Module::orders.phtml">
</block>
</referenceContainer>
<referenceContainer name="sidebar.additional">
<block class="MagentoFrameworkViewElementTemplate" name="order_total_sidebar" template="Prayag_Module::orders.phtml">
</block>
</referenceContainer>
<referenceContainer name="content">
<block class="MagentoFrameworkViewElementTemplate" name="cart_total_sidebar" template="Prayag_Module::cart_view.phtml">
</block>
</referenceContainer>
</body>
</page>



My phtml file is app/code/Prayag/Module/view/frontend/templates/orders.phtml




<?php

$objectManager = MagentoFrameworkAppObjectManager::getInstance();
$customerSession = $objectManager->create('MagentoCustomerModelSession');
$customerID = $customerSession->getCustomerId();

$order = $this->helper('PrayagModuleHelperData')->getCollection($customerID);

foreach($order as $items) ?>
<span>IncrementId :</span><a href="<?php echo $block->getUrl('sales/order/history'); ?>"><?php echo $items->getIncrementId(); ?></a><br>
<?php
echo "<b>Subtotal :</b>". $items->getSubtotal(). '<br/>';
echo "<b>Order Status :</b>". $items->getStatus(). '<br/>';
echo "<b>Date :</b>". $items->getCreatedAt().'<br/>';





And my helper file is app/code/Prayag/Module/Helper/Data.php




<?php
namespace PrayagModuleHelper;
class Data extends MagentoFrameworkAppHelperAbstractHelper

public function __construct(
MagentoSalesModelOrderFactory $orderFactory
)
$this->orderFactory = $orderFactory;

public function getCollection($customerID)

$collection = $this->orderFactory->create()->getCollection()->setOrder('entity_id', 'DESC')
->addAttributeToFilter('customer_id',$customerID);
$collection->setPageSize(5)->setCurPage(1);
return $collection;








magento2 frontend helper exception






share|improve this question









New contributor




Prayag Dave is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Prayag Dave is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 2 days ago









magefms

2,7702528




2,7702528






New contributor




Prayag Dave is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 2 days ago









Prayag DavePrayag Dave

34




34




New contributor




Prayag Dave is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Prayag Dave is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Prayag Dave is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • Have you checked your log files and browser console error messages. Try giving proper file permissions too

    – Raj Mohan R
    2 days ago











  • no I didn't check it. how to check that ??

    – Prayag Dave
    2 days ago











  • Check Magento log files in Magento_Directory/var/log/exception.log/debug.log/system.log. Server error log files /var/log/apache2/error_log. Inspect your browser to open the developer console where you can find the errors

    – Raj Mohan R
    2 days ago











  • still it's showing errors

    – Prayag Dave
    2 days ago











  • What error are you finding in the log files with regards to this module

    – Raj Mohan R
    2 days ago

















  • Have you checked your log files and browser console error messages. Try giving proper file permissions too

    – Raj Mohan R
    2 days ago











  • no I didn't check it. how to check that ??

    – Prayag Dave
    2 days ago











  • Check Magento log files in Magento_Directory/var/log/exception.log/debug.log/system.log. Server error log files /var/log/apache2/error_log. Inspect your browser to open the developer console where you can find the errors

    – Raj Mohan R
    2 days ago











  • still it's showing errors

    – Prayag Dave
    2 days ago











  • What error are you finding in the log files with regards to this module

    – Raj Mohan R
    2 days ago
















Have you checked your log files and browser console error messages. Try giving proper file permissions too

– Raj Mohan R
2 days ago





Have you checked your log files and browser console error messages. Try giving proper file permissions too

– Raj Mohan R
2 days ago













no I didn't check it. how to check that ??

– Prayag Dave
2 days ago





no I didn't check it. how to check that ??

– Prayag Dave
2 days ago













Check Magento log files in Magento_Directory/var/log/exception.log/debug.log/system.log. Server error log files /var/log/apache2/error_log. Inspect your browser to open the developer console where you can find the errors

– Raj Mohan R
2 days ago





Check Magento log files in Magento_Directory/var/log/exception.log/debug.log/system.log. Server error log files /var/log/apache2/error_log. Inspect your browser to open the developer console where you can find the errors

– Raj Mohan R
2 days ago













still it's showing errors

– Prayag Dave
2 days ago





still it's showing errors

– Prayag Dave
2 days ago













What error are you finding in the log files with regards to this module

– Raj Mohan R
2 days ago





What error are you finding in the log files with regards to this module

– Raj Mohan R
2 days ago










2 Answers
2






active

oldest

votes


















0














Please check PragayagModuleHelperData.php file. The error says getLabel() method doesn't exist. So please check it.






share|improve this answer























  • thank you for replying Mr. Raj Mohan. but in my code it is <?php namespace PrayagModuleHelper; class Data extends MagentoFrameworkAppHelperAbstractHelper public function __construct( MagentoSalesModelOrderFactory $orderFactory ) $this->orderFactory = $orderFactory; public function getCollection($customerID) $collection = $this->orderFactory->create()->getCollection()->setOrder('entity_id', 'DESC') ->addAttributeToFilter('customer_id',$customerID); $collection->setPageSize(5)->setCurPage(1); return $collection; ?>

    – Prayag Dave
    2 days ago












  • So have you deployed the files?

    – Raj Mohan R
    2 days ago






  • 1





    please edit question and add your code there

    – magefms
    2 days ago






  • 1





    There is no method getLabel() in your Helper class.

    – Raj Mohan R
    2 days ago



















0














Try This Command:-



sudo rm -rf pub/static/frontend/ pub/static/adminhtml/ pub/static/_requirejs pub/static/deployed_version.txt var/cache var/page_cache var/generation var/view_preprocessed var/session generated/code

sudo php bin/magento setup:upgrade

sudo php bin/magento setup:static-content:deploy -f

sudo php bin/magento indexer:reindex

sudo php bin/magento cache:flush





share|improve this answer























  • thanks for taking interest in my question. but I got white blank page after running those commands.

    – Prayag Dave
    2 days ago












  • error reporting enable in app/bootstrap.php line no. 12

    – Rk Rathod
    2 days ago












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
);



);






Prayag Dave is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f270295%2fmagento-2-when-i-click-on-frontend-my-account-cannot-open-and-it-shows-error%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Please check PragayagModuleHelperData.php file. The error says getLabel() method doesn't exist. So please check it.






share|improve this answer























  • thank you for replying Mr. Raj Mohan. but in my code it is <?php namespace PrayagModuleHelper; class Data extends MagentoFrameworkAppHelperAbstractHelper public function __construct( MagentoSalesModelOrderFactory $orderFactory ) $this->orderFactory = $orderFactory; public function getCollection($customerID) $collection = $this->orderFactory->create()->getCollection()->setOrder('entity_id', 'DESC') ->addAttributeToFilter('customer_id',$customerID); $collection->setPageSize(5)->setCurPage(1); return $collection; ?>

    – Prayag Dave
    2 days ago












  • So have you deployed the files?

    – Raj Mohan R
    2 days ago






  • 1





    please edit question and add your code there

    – magefms
    2 days ago






  • 1





    There is no method getLabel() in your Helper class.

    – Raj Mohan R
    2 days ago
















0














Please check PragayagModuleHelperData.php file. The error says getLabel() method doesn't exist. So please check it.






share|improve this answer























  • thank you for replying Mr. Raj Mohan. but in my code it is <?php namespace PrayagModuleHelper; class Data extends MagentoFrameworkAppHelperAbstractHelper public function __construct( MagentoSalesModelOrderFactory $orderFactory ) $this->orderFactory = $orderFactory; public function getCollection($customerID) $collection = $this->orderFactory->create()->getCollection()->setOrder('entity_id', 'DESC') ->addAttributeToFilter('customer_id',$customerID); $collection->setPageSize(5)->setCurPage(1); return $collection; ?>

    – Prayag Dave
    2 days ago












  • So have you deployed the files?

    – Raj Mohan R
    2 days ago






  • 1





    please edit question and add your code there

    – magefms
    2 days ago






  • 1





    There is no method getLabel() in your Helper class.

    – Raj Mohan R
    2 days ago














0












0








0







Please check PragayagModuleHelperData.php file. The error says getLabel() method doesn't exist. So please check it.






share|improve this answer













Please check PragayagModuleHelperData.php file. The error says getLabel() method doesn't exist. So please check it.







share|improve this answer












share|improve this answer



share|improve this answer










answered 2 days ago









Raj Mohan RRaj Mohan R

673110




673110












  • thank you for replying Mr. Raj Mohan. but in my code it is <?php namespace PrayagModuleHelper; class Data extends MagentoFrameworkAppHelperAbstractHelper public function __construct( MagentoSalesModelOrderFactory $orderFactory ) $this->orderFactory = $orderFactory; public function getCollection($customerID) $collection = $this->orderFactory->create()->getCollection()->setOrder('entity_id', 'DESC') ->addAttributeToFilter('customer_id',$customerID); $collection->setPageSize(5)->setCurPage(1); return $collection; ?>

    – Prayag Dave
    2 days ago












  • So have you deployed the files?

    – Raj Mohan R
    2 days ago






  • 1





    please edit question and add your code there

    – magefms
    2 days ago






  • 1





    There is no method getLabel() in your Helper class.

    – Raj Mohan R
    2 days ago


















  • thank you for replying Mr. Raj Mohan. but in my code it is <?php namespace PrayagModuleHelper; class Data extends MagentoFrameworkAppHelperAbstractHelper public function __construct( MagentoSalesModelOrderFactory $orderFactory ) $this->orderFactory = $orderFactory; public function getCollection($customerID) $collection = $this->orderFactory->create()->getCollection()->setOrder('entity_id', 'DESC') ->addAttributeToFilter('customer_id',$customerID); $collection->setPageSize(5)->setCurPage(1); return $collection; ?>

    – Prayag Dave
    2 days ago












  • So have you deployed the files?

    – Raj Mohan R
    2 days ago






  • 1





    please edit question and add your code there

    – magefms
    2 days ago






  • 1





    There is no method getLabel() in your Helper class.

    – Raj Mohan R
    2 days ago

















thank you for replying Mr. Raj Mohan. but in my code it is <?php namespace PrayagModuleHelper; class Data extends MagentoFrameworkAppHelperAbstractHelper public function __construct( MagentoSalesModelOrderFactory $orderFactory ) $this->orderFactory = $orderFactory; public function getCollection($customerID) $collection = $this->orderFactory->create()->getCollection()->setOrder('entity_id', 'DESC') ->addAttributeToFilter('customer_id',$customerID); $collection->setPageSize(5)->setCurPage(1); return $collection; ?>

– Prayag Dave
2 days ago






thank you for replying Mr. Raj Mohan. but in my code it is <?php namespace PrayagModuleHelper; class Data extends MagentoFrameworkAppHelperAbstractHelper public function __construct( MagentoSalesModelOrderFactory $orderFactory ) $this->orderFactory = $orderFactory; public function getCollection($customerID) $collection = $this->orderFactory->create()->getCollection()->setOrder('entity_id', 'DESC') ->addAttributeToFilter('customer_id',$customerID); $collection->setPageSize(5)->setCurPage(1); return $collection; ?>

– Prayag Dave
2 days ago














So have you deployed the files?

– Raj Mohan R
2 days ago





So have you deployed the files?

– Raj Mohan R
2 days ago




1




1





please edit question and add your code there

– magefms
2 days ago





please edit question and add your code there

– magefms
2 days ago




1




1





There is no method getLabel() in your Helper class.

– Raj Mohan R
2 days ago






There is no method getLabel() in your Helper class.

– Raj Mohan R
2 days ago














0














Try This Command:-



sudo rm -rf pub/static/frontend/ pub/static/adminhtml/ pub/static/_requirejs pub/static/deployed_version.txt var/cache var/page_cache var/generation var/view_preprocessed var/session generated/code

sudo php bin/magento setup:upgrade

sudo php bin/magento setup:static-content:deploy -f

sudo php bin/magento indexer:reindex

sudo php bin/magento cache:flush





share|improve this answer























  • thanks for taking interest in my question. but I got white blank page after running those commands.

    – Prayag Dave
    2 days ago












  • error reporting enable in app/bootstrap.php line no. 12

    – Rk Rathod
    2 days ago
















0














Try This Command:-



sudo rm -rf pub/static/frontend/ pub/static/adminhtml/ pub/static/_requirejs pub/static/deployed_version.txt var/cache var/page_cache var/generation var/view_preprocessed var/session generated/code

sudo php bin/magento setup:upgrade

sudo php bin/magento setup:static-content:deploy -f

sudo php bin/magento indexer:reindex

sudo php bin/magento cache:flush





share|improve this answer























  • thanks for taking interest in my question. but I got white blank page after running those commands.

    – Prayag Dave
    2 days ago












  • error reporting enable in app/bootstrap.php line no. 12

    – Rk Rathod
    2 days ago














0












0








0







Try This Command:-



sudo rm -rf pub/static/frontend/ pub/static/adminhtml/ pub/static/_requirejs pub/static/deployed_version.txt var/cache var/page_cache var/generation var/view_preprocessed var/session generated/code

sudo php bin/magento setup:upgrade

sudo php bin/magento setup:static-content:deploy -f

sudo php bin/magento indexer:reindex

sudo php bin/magento cache:flush





share|improve this answer













Try This Command:-



sudo rm -rf pub/static/frontend/ pub/static/adminhtml/ pub/static/_requirejs pub/static/deployed_version.txt var/cache var/page_cache var/generation var/view_preprocessed var/session generated/code

sudo php bin/magento setup:upgrade

sudo php bin/magento setup:static-content:deploy -f

sudo php bin/magento indexer:reindex

sudo php bin/magento cache:flush






share|improve this answer












share|improve this answer



share|improve this answer










answered 2 days ago









Rk RathodRk Rathod

1,459214




1,459214












  • thanks for taking interest in my question. but I got white blank page after running those commands.

    – Prayag Dave
    2 days ago












  • error reporting enable in app/bootstrap.php line no. 12

    – Rk Rathod
    2 days ago


















  • thanks for taking interest in my question. but I got white blank page after running those commands.

    – Prayag Dave
    2 days ago












  • error reporting enable in app/bootstrap.php line no. 12

    – Rk Rathod
    2 days ago

















thanks for taking interest in my question. but I got white blank page after running those commands.

– Prayag Dave
2 days ago






thanks for taking interest in my question. but I got white blank page after running those commands.

– Prayag Dave
2 days ago














error reporting enable in app/bootstrap.php line no. 12

– Rk Rathod
2 days ago






error reporting enable in app/bootstrap.php line no. 12

– Rk Rathod
2 days ago











Prayag Dave is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















Prayag Dave is a new contributor. Be nice, and check out our Code of Conduct.












Prayag Dave is a new contributor. Be nice, and check out our Code of Conduct.











Prayag Dave is a new contributor. Be nice, and check out our Code of Conduct.














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.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f270295%2fmagento-2-when-i-click-on-frontend-my-account-cannot-open-and-it-shows-error%23new-answer', 'question_page');

);

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







Popular posts from this blog

Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?