Fatal error when enable cart module

  • Vinh Bui
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 1 week ago #80889 by Vinh Bui
Fatal error when enable cart module was created by Vinh Bui
When i enable cart module, it works on eshop component page.
In other pages, for example: article page, i get error:
( ! ) Fatal error: Call to a member function getCosts() on a non-object in eshop\modules\mod_eshop_cart\mod_eshop_cart.php on line 65

I tried to edit this file:
modules/mod_eshop_cart/mod_eshop_cart.php
Line 63, add this:
require_once JPATH_SITE .'/components/com_eshop/models/cart.php';

And it works.

So let's check on this.

Please Log in or Create an account to join the conversation.

Moderators: Giang Dinh Truong