Support » Plugin: Demo Data Creator » [Plugin: Demo Data Creator] MYSQL Warning

  • 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
    PHP 5.2.9
    MySQL version 5.0.90-community

Viewing 8 replies - 1 through 8 (of 8 total)
  • 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.

    Plugin Author Chris Taylor


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

    Plugin Author Chris Taylor


    I’ve fixed this bug in version 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.

    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?

    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.


    Plugin Author Chris Taylor


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

    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]
    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.

    Plugin Author Chris Taylor


    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)

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Plugin: Demo Data Creator] MYSQL Warning’ is closed to new replies.