Call to undefined function _ec_store_location_countries()

svilen - October 29, 2008 - 22:56
Project:e-Commerce
Version:HEAD
Component:new module
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

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

#1

gordon - October 29, 2008 - 23:00
Status:active» fixed

Thanks this is now fixed.

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

#2

Anonymous (not verified) - November 12, 2008 - 23:12
Status:fixed» closed

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

#3

Dublin Drupaller - January 31, 2009 - 22:06
Status:closed» 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

davea - October 8, 2009 - 01:11
Status:active» closed

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

Thanks for your attention to detail.

 
 

Drupal is a registered trademark of Dries Buytaert.