cancel
Showing results for 
Search instead for 
Did you mean: 

PHP Fatal error: Call to a member function getTracking()

SOLVED

PHP Fatal error: Call to a member function getTracking()

Hi,

Getting the following error when click on "Track Shipment" in magento orders
Call to a member function getTracking() on array in /home/magento/public_html/vendor/magento/module-shipping/view/frontend/templates/tracking/details.phtml on line 22

Please give me a solution for this.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: PHP Fatal error: Call to a member function getTracking()

 

This is default bug in magento 2.1.* version.
You can check this issue in github,
getTracking() function issue

This bug is resolved in current develop branch magento 2.2

If you not helpful above github link, you can create your own issue in github and describe in brief for issue.
If this response was helpful to you, consider giving kudos to this post.
If this response solved your problem, click accept as solution to help others solve this.

If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial

View solution in original post

3 REPLIES 3

Re: PHP Fatal error: Call to a member function getTracking()

 

This is default bug in magento 2.1.* version.
You can check this issue in github,
getTracking() function issue

This bug is resolved in current develop branch magento 2.2

If you not helpful above github link, you can create your own issue in github and describe in brief for issue.
If this response was helpful to you, consider giving kudos to this post.
If this response solved your problem, click accept as solution to help others solve this.

If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial

Re: PHP Fatal error: Call to a member function getTracking()

Hi @Rakesh Jesadiya,

We have changed the code as provided in github link getTracking() function issue
Now the tracking issue was gone and a new one arises as below:

PHP Fatal error:  Call to a member function getProgressdetail() on array in /home/magento/public_html/vendor/magento/module-shipping/view/frontend/templates/tracking/popup.phtml on line 34

Re: PHP Fatal error: Call to a member function getTracking()

Hi, @soho_rize you can raise new question for your issue so community user know about that.

 

May be someone know your issue solutions.

 

Thanks.

 

If this response was helpful to you, consider giving kudos to this post.
If this response solved your problem, click accept as solution to help others solve this.

If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial