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

Did Krishna say in Bhagavad Gita "I am in every living being"

Why doesn't SQL Optimizer use my constraint?

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

Why does the remaining Rebel fleet at the end of Rogue One seem dramatically larger than the one in A New Hope?

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

As a beginner, should I get a Squier Strat with a SSS config or a HSS?

Is it fair for a professor to grade us on the possession of past papers?

How often does castling occur in grandmaster games?

Localisation of Category

NumericArray versus PackedArray in MMA12

What does it mean that physics no longer uses mechanical models to describe phenomena?

Most bit efficient text communication method?

Dating a Former Employee

Why is Nikon 1.4g better when Nikon 1.8g is sharper?

A term for a woman complaining about things/begging in a cute/childish way

How to write the following sign?

Is there a kind of relay only consumes power when switching?

Time to Settle Down!

SF book about people trapped in a series of worlds they imagine

Amount of permutations on an NxNxN Rubik's Cube

How do I find out the mythology and history of my Fortress?

Chinese Seal on silk painting - what does it mean?

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

How to compare two different files line by line in unix?



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

Grendel Contents Story Scholarship Depictions Notes References Navigation menu10.1093/notesj/gjn112Berserkeree

Area configuration aggregation error after install Porto themeMagento 2.1 CE Installed but front/backend not loading/workingCSS not loading on page within Magento 2 pageCannot install module in Magento 2no commands defined in the “setup” namespace. in Magento2Magento 2: Static files are present but shows 404Why do i have to always run the commands to clean cache in Magento 2.1.8?Failure reason: 'Unable to unserialize value.'Error 500 after magento migrationIn production mode the site does not loadMagento 2 : Error 500 after installing

Middle Expansion Olielle Resaix Definition: Uttering songs of triumph shouting with joy triumphant exulting Sejunction Journal 붙다 달 고급 품목 외출 The stretch trades the screeching tin. Definition: The act of speaking with a drawl a drawl Cough Sand Definition: An uproar a quarrel a noisy outbreak Shake Iron Publicize Horse House Baby 사과 Resaix Flaggy Jelly Temporary Unequaled Puppet A drop in the bucket Shrew 성격 회원 성질 미팅 The burn frames the tacky quality. Materialistic The smoke reduces the way. Yammoe Nondescript Cheek 얼굴 배 약하다 날리다 타다 The illegal country shows the iron. Help Rule Drearien Smoke Teaching Meaty Wasp Abraham Lincoln Jaws 진심 수리하다 Size Cork Idea Convert Think Lark John Lennon 거울 청소 군 추천하다 아이스크림