Title: [Plugin: Demo Data Creator] MYSQL Warning
Last modified: August 19, 2016

---

# [Plugin: Demo Data Creator] MYSQL Warning

 *  [mgladding](https://wordpress.org/support/users/mgladding/)
 * (@mgladding)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-demo-data-creator-getting-a/)
 * 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

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Thread Starter [mgladding](https://wordpress.org/support/users/mgladding/)
 * (@mgladding)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-demo-data-creator-getting-a/#post-1647301)
 * 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](https://wordpress.org/support/users/mrwiblog/)
 * (@mrwiblog)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-demo-data-creator-getting-a/#post-1647418)
 * Thanks for reporting this, I’ll try to replicate the bug.
 *  Plugin Author [Chris Taylor](https://wordpress.org/support/users/mrwiblog/)
 * (@mrwiblog)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-demo-data-creator-getting-a/#post-1647432)
 * 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.
 *  Thread Starter [mgladding](https://wordpress.org/support/users/mgladding/)
 * (@mgladding)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-demo-data-creator-getting-a/#post-1647454)
 * 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?
 *  [globalkris](https://wordpress.org/support/users/globalkris/)
 * (@globalkris)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-demo-data-creator-getting-a/#post-1647529)
 * 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!
 *  Plugin Author [Chris Taylor](https://wordpress.org/support/users/mrwiblog/)
 * (@mrwiblog)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-demo-data-creator-getting-a/#post-1647535)
 * [@globalkris](https://wordpress.org/support/users/globalkris/) can you email 
   me so I can look at this. Thanks.
 *  [NomikOS](https://wordpress.org/support/users/nomikos/)
 * (@nomikos)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-demo-data-creator-getting-a/#post-1647556)
 * 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.
 *  Plugin Author [Chris Taylor](https://wordpress.org/support/users/mrwiblog/)
 * (@mrwiblog)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-demo-data-creator-getting-a/#post-1647561)
 * I’ve just fixed the bug where the users don’t get created if the domain doesn’t
   have a suffix (e.g. [@localhost](https://wordpress.org/support/users/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.

 * ![](https://s.w.org/plugins/geopattern-icon/demo-data-creator.svg)
 * [Demo Data Creator](https://wordpress.org/plugins/demo-data-creator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/demo-data-creator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/demo-data-creator/)
 * [Active Topics](https://wordpress.org/support/plugin/demo-data-creator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/demo-data-creator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/demo-data-creator/reviews/)

 * 8 replies
 * 4 participants
 * Last reply from: [Chris Taylor](https://wordpress.org/support/users/mrwiblog/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-demo-data-creator-getting-a/#post-1647561)
 * Status: not resolved