Support » Plugin: FakerPress » FakerPress, generate users fails

  • Resolved nanGalileo

    (@nangalileo)



    Trying to create fake users (with the author role) in FakerPress fails. There is no error message just an empty box with a red bar at one end.

    (No problem creating the users manually and then getting FakerPress to create posts with those users as authors.)

    My local environment is set up with MAMP Pro- with current versions of Php and mySql I believe.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Gustavo Bordoni

    (@bordoni)

    Hi @nangalileo,

    Thanks for reporting that issue, I try to reproduce it locally.

    Can you Activate your WP_DEBUG? With that on we will be able to see the error on that Red Bar box on the bottom. Just sharing a screenshot of the error will help a ton.

    My Best Regards,

    akinorikul

    (@akinorikul)

    Hi Gustavo,

    I have the same problem, it says :

    Fatal error: Class ‘FakerPress\Module\Utils’ not found in /wordpress/wp-content/plugins/fakerpress/modules/user.php on line 127

    All the best

    radgh

    (@radgh)

    I’m experiencing the same issue on a fresh WP test install with only FakerPress installed. The error message that appears is empty, too:

    https://s3-us-west-2.amazonaws.com/elasticbeanstalk-us-west-2-868470985522/ShareX/2018/02/chrome_2018-02-19_11-25-06.png

    I am using Laragon to test locally.

    [19-Feb-2018 19:21:51 UTC] PHP Fatal error: Uncaught Error: Class ‘FakerPress\Module\Utils’ not found in D:\laragon\www\wp\wp-content\plugins\fakerpress\modules\user.php:127
    Stack trace:
    #0 D:\laragon\www\wp\wp-content\plugins\fakerpress\inc\class-fp-ajax.php(81): FakerPress\Module\User->parse_request(5, Array)
    #1 D:\laragon\www\wp\wp-includes\class-wp-hook.php(286): FakerPress\Ajax::module_generate(”)
    #2 D:\laragon\www\wp\wp-includes\class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)
    #3 D:\laragon\www\wp\wp-includes\plugin.php(453): WP_Hook->do_action(Array)
    #4 D:\laragon\www\wp\wp-admin\admin-ajax.php(97): do_action(‘wp_ajax_fakerpr…’)
    #5 {main}

    If I disable line 127 in modules/user.php it works fine. And it looks like that variable immediately gets overwritten anyway so it probably isn’t needed?

    Here are lines 126 through 129:

    $description_size = Variable::super( $request, array( 'description_size' ), FILTER_UNSAFE_RAW, array( 1, 5 ) );
    $description_use_html = Utils::instance()->is_truthy( Variable::super( $request, array( 'use_html' ), FILTER_SANITIZE_STRING, 'off' ) );
    $description_use_html = Variable::super( $request, array( 'use_html' ), FILTER_SANITIZE_STRING, 'off' ) === 'on';
    $description_html_tags = array_map( 'trim', explode( ',', Variable::super( $request, array( 'html_tags' ), FILTER_SANITIZE_STRING ) ) );

    Hope that helps. I’m just going to leave that line commented out and probably won’t need FakerPress again until it’s fixed anyway 🙂

    Plugin Author Gustavo Bordoni

    (@bordoni)

    Hi Folks,

    Sorry for the delay on releasing a version with the fix, but I just pushed 0.4.11 with a bugfix for the problem, let me know if it solves the problem.

    jackhuangstar

    (@jackhuangstar)

    Hi Author,

    I am still experiencing the same problem with 0.4.11 in localhost. Can’t generator content. Tried many times, sometimes it will generator two pieces of content. But far from the number I typed.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.