WordPress.org

Ready to get started?Download WordPress

Forums

Ad-minister
Problem with wordpress 3.0.1 (5 posts)

  1. grunner
    Member
    Posted 3 years ago #

    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

  2. Jon Bishop
    Member
    Posted 3 years ago #

    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

  3. parrothead
    Member
    Posted 3 years ago #

    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"

  4. parrothead
    Member
    Posted 3 years ago #

    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...

  5. valentinas
    Member
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic