Getting this error when I try and edit the "Rate Regular Parcel - Standard Service" setting.

The machine-readable name must contain only lowercase letters, numbers, and underscores.

The field value that comes up is read only and with the underscores removed.

Comments

stephen ollman’s picture

Apparently its the hyphen in the machine name that causes the issue.

commerce_shipping_service_regular_parcel-standard_service

stephen ollman’s picture

Machine name: commerce_shipping_service_regular_parcel-standard_service

stephen ollman’s picture

I'm unable to edit this or update it. This value is set by default in the module.

stephen ollman’s picture

Update the following line (191) in the file: commerce_australia_post.module

from:

$service['slug'] = str_replace(' - ', '-', drupal_strtolower($service['title']));

to:

$service['slug'] = str_replace(' - ', '_', drupal_strtolower($service['title']));

This fixed the issue and allowed me to save updates.

jcherbert’s picture

Status: Active » Closed (fixed)