• Resolved heiland

    (@heiland)


    Hello!
    I cannot add custom columns. The plugin does not work at all.
    I get the following error
    Fatal error …plugins/codepress-admin-columns/classes/settings.php140

    The code in line 140 in the settings.php is:
    $registered_columns = $storage_model->get_registered_columns();

    https://ww.wp.xz.cn/plugins/codepress-admin-columns/

    The console tells:
    Call to a member function get_registered_columns() on a non-object in …/codepress-admin-columns/classes/settings.php on line
    140

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Stefan van den Dungen Gronovius

    (@dungengronovius)

    Strange, this is not a known bug in the current release.
    I suspect that there is another plugin that conflicts with our plugin.
    Please can you disable all plugins and see if our plugin works?
    If it works, please enable the other plugins one by one to see which plugin causes the problem. We will try to make a fix if we know which plugin conflicts with ours.

    Thread Starter heiland

    (@heiland)

    Thank you!

    Yes, you are right. I’am working on a custom plugin which causes the problem. It’s too complex to explain.
    The plugin creates a custom post type.
    These are the arguments for the CPT:
    $args = array();
    $args[‘labels’] = array(‘name’ => ‘E-Papers’, ‘singular_name’ => ‘E-Paper’);
    $args[‘public’] = false;
    $args[‘show_ui’] = true;
    $args[‘exclude_from_search’] = true;
    $args[‘has_archive’] = false;
    $args[‘menu_position’] = 4;
    $args[‘supports’] = array(‘title’,’editor’, ‘thumbnail’, ‘author’);
    $args[‘rewrite’] = array(‘slug’ => ‘epapers’);
    $args[‘register_meta_box_cb’] = ‘add_epaper_meta_boxes’;
    Do you have a hint where I could start searching the error?

    Plugin Author Stefan van den Dungen Gronovius

    (@dungengronovius)

    Sorry but without any context I’m not able to help you with this question.
    If you like, I can take a quick look to your plugin to see where the problem lies.
    Please send me the package to [email protected] addressed to me.

    Stefan

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

The topic ‘Fatal error’ is closed to new replies.