bug in plugin
-
hi. when i create a manual request to create a key, it returns error, when txn_id is a bit long. see this:
add_action('init', function(){ if(!is_admin()){ $_REQUEST['slm_action'] = 'slm_create_new'; $_REQUEST['secret_key'] = EDD_SLM_API_SECRET; $_REQUEST['first_name'] = ''; $_REQUEST['last_name'] = ''; $_REQUEST['email'] = '[email protected]'; $_REQUEST['company_name'] = ''; $_REQUEST['txn_id'] = 'XYZXYZ74638- The WordPress Book labels & backgrounds generator (Full Version)'; // <------ this line makes a problem. if you shorten the name, problem goes on $_REQUEST['max_allowed_domains'] = 1; // 1 $_REQUEST['date_created'] = date('Y-m-d'); //date('Y-m-d'); //2018-01-20 $_REQUEST['date_expiry'] = '0000-00-00'; // '0000-00-00'; //0000-00-0 $n = new SLM_API_Listener(); } });
i think it’s because in slm-installer you have:
txn_id varchar(64) NOT NULL default '',
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘bug in plugin’ is closed to new replies.