WordPress.org

Ready to get started?Download WordPress

Forums

Demo Data Creator
MYSQL Warning (9 posts)

  1. mgladding
    Member
    Posted 3 years ago #

    When I try to create users I get the following warning for each of the new users to be created (if I input 15 for the number of users to be created, the error message displays 15 times):

    Warning: mysql_real_escape_string() expects parameter 1 to be string, object given in /home/mysite/public_html/wordpress_install/wp-includes/wp-db.php on line 785

    It ends up only creating 1 demo user and it also replaces the super admin display name.

    Also, it does not create any demo data for any of the other options. It processes then says 0 created.

    Any ideas?

    Thanks in advance for any help!

    Fresh install using WordPress 3.0.1 and Buddypress 1.2.5.2
    PHP 5.2.9
    MySQL version 5.0.90-community

  2. mgladding
    Member
    Posted 3 years ago #

    Update: If I deactivate Buddypress, then I can create demo users, but all other options still create 0.

    Also, reverted back to WordPress 3.0, just in case.

  3. Chris Taylor
    Member
    Plugin Author

    Posted 3 years ago #

    Thanks for reporting this, I'll try to replicate the bug.

  4. Chris Taylor
    Member
    Plugin Author

    Posted 3 years ago #

    I've fixed this bug in version 0.9.7.3. This was related to a bug in wp_create_user() which returned an incorrect error for invalid email addresses.

    Please update and let me know if it works for you.

  5. mgladding
    Member
    Posted 3 years ago #

    Thanks for the update! Everything is working except for category creation. I had already created a few dummy categories - perhaps that inferred with the process?

  6. globalkris
    Member
    Posted 3 years ago #

    I'm having the same issue. I am running WordPress 3.0.4, Buddypress 1.2.7 and Demo Data Creator .9.7.5. It only creates 1 user and changes the display name of the super admin.

    Thanks!

  7. Chris Taylor
    Member
    Plugin Author

    Posted 3 years ago #

    @globalkris can you email me so I can look at this. Thanks.

  8. NomikOS
    Member
    Posted 3 years ago #

    Hi.
    It still failing in WP 3.1 and buddypress 1.2.8 and Demo Data Creator .9.7.5
    ===
    So replacing in "User email template (with [x] for the user ID)"
    demouser[x]@localhost by demouser[x]@localhost.com
    works!
    ===
    SUGGEST @ Chris: Hi, thanks for your work. It's second time that I use your plugin. The first time I used Delete demo data my eyes were glued to the screen. I really did not expect that result. Yes, reading carefully, clearly said "...making your site as it was when you first installed WordPress and BuddyPress..." but as usual, sleepy coders push buttons first and read after :\ maybe you could put it in red color. That always helps to open wider eyes... THX Chris.

  9. Chris Taylor
    Member
    Plugin Author

    Posted 3 years ago #

    I've just fixed the bug where the users don't get created if the domain doesn't have a suffix (e.g. @localhost).

    I think I've made the warning about deleting demo data pretty clear. If you choose not to read the warning before you press the button... ;0)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic