Forums

[Plugin: User-Cats Manager] 'FileReader' not found (4 posts)

  1. FMacastro
    Member
    Posted 4 months ago #

    Hi i can´t seem to get this running, it allways gives me this error:

    Fatal error: Class 'FileReader' not found in (...)/wp-content/plugins/user-cats-manager/user-cats-manager.php on line 48

    Has this happened to you?

    Thanks

    MAC

    http://wordpress.org/extend/plugins/user-cats-manager/

  2. shofer
    Member
    Posted 4 months ago #

    Hi mac,

    i have the same problem.
    I just insered die Line:
    include($_SERVER['DOCUMENT_ROOT'] . “/wp-includes/streams.php”);

    on the top (after die comments) of
    /wp-content/plugins/user-cats-manager/user-cats-manager.php

    and it works.

    I've also fixed another bug of the extension (display all categories at the front page)

    replacte

    if ($current_user->user_level == 10)
    return $cats;

    with

    // If user is on frontend or admin is logged in show all categories
    if ($current_user->user_level == 10 || is_front_page())
    return $cats;

    as i've described at my blog (german!)
    http://www.shofer.at/2009/07/wordpress-kategorien-nur-fur-bestimmte-benutzer-freigeben/

    i hope that die extension owner can integrate these bugfixes!

  3. luiseduardobone
    Member
    Posted 2 months ago #

    I have the same problem, y tri your way but i still can`t. Would you helpe me? can you show me in what line i must enter the:

    include($_SERVER['DOCUMENT_ROOT'] . “/wp-includes/streams.php”);

    and another question, excuse me please but: in "document_root" what root i have to write there?

    excuse my english am latino.

    thanx a lot

  4. purabdk
    Member
    Posted 1 week ago #

    If you install Wordpress in subfolder than you will get the problem..
    Don't insert the following line.
    include($_SERVER['DOCUMENT_ROOT'] . “/wp-includes/streams.php”);

    For avoiding the all problem all the time Use and following code..
    require_once(ABSPATH . 'wp-includes/streams.php');

    If you print the $_SERVER['DOCUMENT_ROOT'] variable then it will be easy to get the problem..

Reply

You must log in to post.

About this Topic