WordPress.org

Ready to get started?Download WordPress

Forums

Fatal error after activating TDO Mini Forms (7 posts)

  1. zarathos
    Member
    Posted 6 years ago #

    I am trying to use TDO Mini Forms on a site I'm developing on the latest build of WPMU, but when I activate it, I get the following error:

    Fatal error: Call to undefined function wp_get_current_user() in /home/www/wp-includes/capabilities.php on line 446

    Any ideas on why this happens or where to start with troubleshooting?

  2. the_dead_one
    Member
    Posted 6 years ago #

    Probably because I've never tested TDOMF in WordPressMU. I don't really know much about WordPressMU so I never bothered. Is there any documentation on porting plugins from WordPress to WPMU?

  3. Mattz
    Member
    Posted 6 years ago #

    I would like to know the same for another plugin.

    Most plugins work for MU too, but one I have doesn't.

    What can cause such an error ?

  4. SAKrisT
    Member
    Posted 6 years ago #

    1. В файле wp-config.php, после всего кода добавить
    include(getenv("DOCUMENT_ROOT")."/wp-content/plugins/tdo-mini-forms/tdomf.php");

    2. В файле capabilities.php, после всего кода добавить
    include(getenv("DOCUMENT_ROOT")."/wp-includes/pluggable.php");

    3. После 463 строки, в файле tdomf.php добавить

    if ( !function_exists('tdomf_add_menus') )
    {

    и сделать закрытие после описания функции, тоесть до
    //////////////////////////////////
    // Load the rest of the plugin! //
    //////////////////////////////////

    4. После
    /////////////////////////
    // Start/Init/Upgrade //
    ////////////////////////
    Вставить:

    if ( !function_exists('tdomf_init') )
    {

    и закрыть после описания функции, тоесть перед строкой: tdomf_db_create_tables();

    5. В файле plugins/tdo-mini-forms/include/tdomf-form.php расскоментить строку 159 и в строке 157 вместо draft вписать publish

  5. the_dead_one
    Member
    Posted 6 years ago #

    SAKrisT, could you translate your post to English please?

  6. SAKrisT
    Member
    Posted 6 years ago #

  7. the_dead_one
    Member
    Posted 6 years ago #

    Thanks SAKrist!

Topic Closed

This topic has been closed to new replies.

About this Topic