Download & Extend

Call to undefined function _ec_store_location_countries()

Project:e-Commerce
Version:master
Component:new module
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

There is wrong include for a file in ec_store module. It ruins checkout on review page

Call to undefined function _ec_store_location_countries() in D:\work\svilensabev\sites\all\modules\ecommerce\ec_store\ec_store.inc on line 451

The fix is to change line 424 to this one
include_once drupal_get_path('module', 'ec_store') .'/ec_store.localization.inc';

Comments

#1

Status:active» fixed

Thanks this is now fixed.

Also in D6 you should use module_load_include('inc', 'ec_store', 'ec_store.localization');

#2

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

#3

Status:closed (fixed)» active

Are you sure that's correct Gordon..? I think that should be an underscore between store and localization.

This worked for me:

search and replace this:
module_load_include('inc', 'ec_store', 'ec_store.localization');

for this
module_load_include('inc', 'ec_store', 'ec_store_localization');

in the ec_address.admin.inc file.

#4

Status:active» closed (fixed)

The file is named ec_store.localization.inc so the period is needed in place of underscore.

Thanks for your attention to detail.