Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter bstumbo1

    (@bstumbo1)

    @mattyrob

    I think you are probably on the right track. I’ve been doing some digging through my error logs and was able to capture these three errors when a scheduled post actually goes live:

    Error 1
    [Sat Jan 31 18:10:23 2015] [error] [client 98.204.53.242] PHP Warning: in_array() expects parameter 2 to be array, object given in /nas/wp/www/cluster-2162/congressdocs/wp-content/plugins/subscribe2/classes/class-s2-core.php on line 410, referer: http://congressionaldocs.com/wp-admin/edit.php?post_type=a-e-h

    Error 2
    [Sat Jan 31 18:10:23 2015] [error] [client 98.204.53.242] PHP Warning: implode() [function.implode]: Invalid arguments passed in /nas/wp/www/cluster-2162/congressdocs/wp-content/plugins/subscribe2/classes/class-s2-core.php on line 442, referer: http://congressionaldocs.com/wp-admin/edit.php?post_type=a-e-h

    Error 3
    [Sat Jan 31 18:10:23 2015] [error] [client 98.204.53.242] PHP Warning: implode() [function.implode]: Invalid arguments passed in /nas/wp/www/cluster-2162/congressdocs/wp-content/plugins/subscribe2/classes/class-s2-core.php on line 482, referer: http://congressionaldocs.com/wp-admin/edit.php?post_type=a-e-h

    Are these errors thrown because custom post types and taxonomy aren’t linked?

    Thread Starter bstumbo1

    (@bstumbo1)

    Sorry, I’m using the the “GD Custom Posts and Taxonomy Tools” plugin.

    It occurs to me now that it might have something to do with my custom post “capabilities”. But they should have the same capabilities as a standard post.

    Thread Starter bstumbo1

    (@bstumbo1)

    I’ve created a simple plugin to handle custom post/taxonomy registration. Thanks in advance for any help you can provide. Here is the code I’m using:

    /* Document Types */

    function my_post_types($types) {

    $types[] = ‘business_doc’;
    $types[] = ‘approp_doc’;
    $types[] = ‘defense_docs’;
    $types[] = ‘a-e-h’;
    $types[] = ‘energy_doc’;
    $types[] = ‘foreign_affaris’;
    $types[] = ‘health_care’;
    $types[] = ‘civil_rights’;
    $types[] = ‘native_docs’;
    $types[] = ‘technology_docs’;

    return $types;
    }
    add_filter(‘s2_post_types’, ‘my_post_types’);

    /* Taxonomies */

    function my_taxonomies($taxonomies) {
    $taxonomies[] = ‘business_alert’;
    $taxonomies[] = ‘approp_alert’;
    $taxonomies[] = ‘defense_alert’;
    $taxonomies[] = ‘aeh_alert’;
    $taxonomies[] = ‘energy_alert’;
    $taxonomies[] = ‘foreign_alert’;
    $taxonomies[] = ‘healthcare_alert’;
    $taxonomies[] = ‘civil_rights_alert’;
    $taxonomies[] = ‘native_alert’;
    $taxonomies[] = ‘technology_alert’;

    return $taxonomies;
    }
    add_filter(‘s2_taxonomies’, ‘my_taxonomies’);

Viewing 3 replies - 1 through 3 (of 3 total)