template.create erroring out

Anybody had a problem with using template.create during the signup process?  I'm using the PHP library provided and what happens is the following:
1. I can create a client no problem
2. I establish what payment structure and sending privileges they have with no errors.

3. When I try to add my 27 templates from my URL using the API it will load approximately 12-14 and then error out.  I say 12-14 because it is never consistent in the number it loads before erroring out.

When it errors out I just get a blank page and no response from the error-reporting.

Here is the code I am using:

ini_set ('display_errors', 1);
error_reporting (E_ALL);


//-----------------------------INPUT PARAMS---------------------------------------

$apikey = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
$client_id = 'xxxxxxxxxxxxxxxxxxxxxxxxxx';
//-----------------------------INPUT PARAMS Template 1---------------------------------------

$template_name = 'Template 1 Left Sidebar';
$html_url = "http://myurl.com/templates/template-1-left-sidebar/template-with-editor-tags.html";
$zip_url = "http://myurl.com/templates/template-1-left-sidebar.zip";
$screenshot_url = "http://myurl.com/templates/template-1-left-sidebar/screenshot.png";


$cm = new CampaignMonitor($apikey);

//Optional statement to include debugging information in the result
$cm->debug_level = 1;
global $client_id;
//This is the actual call to the method
$results = $cm->templateCreate($client_id, $template_name, $html_url, $zip_url, $screenshot_url);

When I check the client in my account it will have created the client, established the billing, and initialized some of the templates but not all of them.

Anyone have any ideas or experience with this happening to them?

Thanks in advance,

anemec, 6 years ago


Mathew Mathew, 6 years ago

This is  not something we have seen reported before, but one of our developers can take a look for you if you contact support directly.

Get in touch with us on Twitter: http://twitter.com/campaignmonitor
We're also on Facebook: http://facebook.com/campaignmonitor
anemec, 6 years ago

Thanks, I will.

Join 200,000 companies around the world that use Campaign Monitor to run email marketing campaigns that deliver results for their business.

Get started for free