Or if you connect to the server using SSH, you can change the file permissions of the file like this:
- Code: Select all
chmod 666 payment_debug.log
chmod 666 payment_debug.log[02/07/2012 6:57 AM] - FAILURE :Failed to generate product keys: (117) You must enter a value for the feature "Accounts". It's a required feature.
$xml = new SimpleXMLElement(LimeLM::GeneratePKeys($LimeLM_VersionID, 1, $quantity, $email));$xml = new SimpleXMLElement(LimeLM::GeneratePKeys($LimeLM_VersionID, 1, $quantity, $email, array('Accounts'), array('feature value'))); $HR = $_POST['HR'] == 'on' ? 'y' : 'n';
$RawMaterial = $_POST['RawMaterial'] == 'on' ? 'y' : 'n';
$Stores = $_POST['Stores'] == 'on' ? 'y' : 'n';
$Preparatory = $_POST['Preparatory'] == 'on' ? 'y' : 'n';
$Spinning = $_POST['Spinning'] == 'on' ? 'y' : 'n';
$PostSpinning = $_POST['PostSpinning'] == 'on' ? 'y' : 'n';
$Outprocess = $_POST['Outprocess'] == 'on' ? 'y' : 'n';
$Maintenance = $_POST['Maintenance'] == 'on' ? 'y' : 'n';
$Sales = $_POST['Sales'] == 'on' ? 'y' : 'n';
$Accounts = $_POST['Accounts'] == 'on' ? 'y' : 'n';
$WasteCotton = $_POST['WasteCotton'] == 'on' ? 'y' : 'n';
$ExpiryDate = date('Y-m-d', strtotime('+1 month'));
$feature_names = array('Accounts', 'HR', 'License_expires', 'Maintenance', 'OutProcess', 'Post Spinning', 'Preparatory', 'Raw Material','Sales', 'Spinning', 'Stores', 'WasteCotton');
$feature_values = array($Accounts, $HR, $ExpiryDate, $Maintenance, $Outprocess, $PostSpinning, $Preparatory, $RawMaterial, $Sales, $Spinning, $Stores, $WasteCotton);
debug_log('Are these feature names correct?: '."\r\n\r\n".print_r($feature_names, true), true);
debug_log('Are these feature values correct?: '."\r\n\r\n".print_r($feature_values, true), true);
$xml = new SimpleXMLElement(LimeLM::GeneratePKeys($LimeLM_VersionID, 1, $quantity, $email, $feature_names, $feature_values));