Call to undefined function: str_split() in /MY_LOCAL_PATH/sites/all/modules/promotion/promotion.module on line 1005

mike stewart - July 19, 2007 - 17:41
Project:Promotion
Version:5.x-1.8
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Just installed, and configured... attempted to register a test user using code:

cw-[0001114444]

I setup a registration code of cw-[0000000000] - to use a phone number for the serial number - and to only allow registration once per code.

#1

mike stewart - July 19, 2007 - 17:44

I should add I customized some strings using the localization module.

change about for strings from "promotion" or promotional to authorization

#2

zostay - July 24, 2007 - 15:50

I'm too busy to look at this this week, but I'll try to look into it next week.

If you have any translation files, feel free to post those to another issue and I will include them.

#3

mike stewart - July 27, 2007 - 04:35

I got this to work but decided to go with another module that fit my needs a little more. a great module otherwise, a lot of nice features! To get the module working, I went with a simpler scheme - just a single code - not a sequence.

The localization data is stored as BLOBs data type, so unlikely much use here. Other than what I specified above, not much else i can think to add to help you.

here's the raw data that was "working" - (i edited the code in the data to testcodegogo)

--
-- Dumping data for table `promotion_codes`
--

INSERT INTO `promotion_codes` VALUES (1, 'Countrywide', 'used for countrywide users', 1, 0, 0, 1, 0, 0, 0, 0, 1, 'testcodegogo', NULL, 0, 0, 0, 0, NULL);

--
-- Dumping data for table `promotion_codes_roles`
--

INSERT INTO `promotion_codes_roles` VALUES (1, 6, 1);


--
-- Dumping data for table `promotion_codes_users`
--

INSERT INTO `promotion_codes_users` VALUES (1, 7, 'testcodegogo, 1);
INSERT INTO `promotion_codes_users` VALUES (1, 8, 'testcodegogo', 1);

--
-- Dumping data for table `system`
--

INSERT INTO `system` VALUES ('sites/all/modules/promotion/promotion.module', 'promotion', 'module', 'Create promotions to allow users to register with.', 0, 0, 0, 2, 0);

 
 

Drupal is a registered trademark of Dries Buytaert.