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 |
Jump to:
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
Thanks this is now fixed.
Also in D6 you should use module_load_include('inc', 'ec_store', 'ec_store.localization');
#2
Automatically closed -- issue fixed for two weeks with no activity.
#3
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
The file is named ec_store.localization.inc so the period is needed in place of underscore.
Thanks for your attention to detail.