• After instaling, i get this message under Tools/Ad-minister>

    Catchable fatal error: Object of class WP_Error could not be converted to string in /www/z/e/u31229/public_html/wp-includes/functions.php on line 302

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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: https://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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Ad-minister] Problem with wordpress 3.0.1’ is closed to new replies.