Swap out
$_POST['post_title'] = 'Ad-minister Data Holder ' . $nbr;
$_POST['post_type'] = 'administer';
$_POST['content'] = 'This post holds your Ad-minister data';
$id = wp_write_post();
update_option('administer_post_id', $id);
with
$adminster_post = array();
$adminster_post['post_title'] = 'Ad-minister Data Holder ' . $nbr;
$adminster_post['post_type'] = 'administer';
$adminster_post['content'] = 'This post holds your Ad-minister data';
$id = wp_insert_post( $adminster_post,true );
update_option('administer_post_id', $id);
in ad-minister.php
Source: http://labs.dagensskiva.com/forum/topic/ad-minister-wp_error
Thanks JonBishop,
The swap out fixed the original error. Hope there are no others.
The code to change is near line 103 in ad-minister.php after “//create a new one”
Not a fix, JonBishop. I got a ‘headers have already been sent’ error on login. Had to delete the plugin by FTP.
Good news though, I deleted another ad manager plugin I was trying at the same time (sorry i can’t remember which) then re-downloaded ad-minister and it works! At least so far…
WP-Ad-Manager is another plugin that has same functionality. It’s a fork of Ad-Minister. So far it’s pretty much the same, just fixed this error, but later I will probably make more improvements.