Symptoms
My HSPcomplete store is moved from default location.After upgrade to HSPcomplete 3.3.2-01 there is error on shopping card page when using 'registered elsewhere' domain. Order can not be placed. In store error log we can see message 'FaultString => Creation of subdomain denied' (by default store error log is /var/log/httpd/hspc_frontend_error_log).
Cause
HSPcomplete 3.3.2-01 XML API was changed in such way that it's not compartiblewith old store.
1. Function get_warning_paymethod is replaced with get_warning
2. New value for 'dm_action' is introduced - 'domain_pointer'. This action is used for
domain, registered elsewhere. Action 'dns_hosting' is used for subdomain.
Third type, 'use_existing', corresponds to 'Use one of my domains' field in store domain form.
Resolution
Fix store module includes/hspc_functions.php1. replace get_warning_paymethod call with the following:
$payment_options[$key]['warning_layout'] = call('get_warning',
array('order_id' => $_SESSION['order']['id'],
'warning_type' => 'paymethod'),
'HSPC/API/Fraud');
2. in function 'place_order', instead of this code:
'dm_action' => ($value['dm_action'] == 'domain_pointer' && $value['dns_hosting']) ?
'dns_hosting' : $value['dm_action'],
put this:
'dm_action' => $value['dm_action'],
Keywords: hspcomplete store error