GithubHelp home page GithubHelp logo

slaffik / bp-default-data Goto Github PK

View Code? Open in Web Editor NEW
13.0 4.0 7.0 263 KB

Create lots of users, messages, friends connections, groups, topics, activity items in BuddyPress - useful for testing purpose.

Home Page: https://wordpress.org/plugins/bp-default-data/

PHP 100.00%
buddypress php lorem-ipsum generator members groups messages buddypress-plugin plugin

bp-default-data's Introduction

BuddyPress Default Data

Plugin will create lots of users, messages, friends connections, groups, topics, activity items, profile data - useful for testing purpose.

Description

All imported users will have avatars, generated by 8biticon.com and displayed by Gravatar.

Please use this plugin with caution and not on a live site! Again, USE FOR TESTING THEMES AND PLUGINGS, NOT ON A STAGING SITE WITH LIVE DATA. Plugin should not mess with your live data, but not guaranteed.

Clear BuddyPress button will delete all data, that was generated by this plugin: messages, groups, notifications, friends, forum posts, xprofile. Plugin won't reimport data if clicked twice.

And turn off email notifications in profile (friendship accepted and messages received) - or you will spam yourself :) Imported users have these settings already turned off.

bp-default-data's People

Contributors

paulgibbs avatar shrinkrayio avatar slaffik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bp-default-data's Issues

Warning Illegal string offset in helpers.php:293

When ran on BuddyPress 3.1:

Warning Illegal string offset 'users' - 1 - wp-content/plugins/bp-default-data/helpers.php:293
Warning Illegal string offset 'xprofile' - 1 - wp-content/plugins/bp-default-data/helpers.php:293
Warning Illegal string offset 'activity' - 2 - wp-content/plugins/bp-default-data/helpers.php:293
Warning Illegal string offset 'groups' - 1 - wp-content/plugins/bp-default-data/helpers.php:293
Warning Illegal string offset 'members' - 1 - wp-content/plugins/bp-default-data/helpers.php:293

Catchable fatal error when user import failed

https://wordpress.org/support/topic/plugin-wont-work-catchable-fatal-error/

I installed the plugin and when I tried to import sample data, I got the error:

Catchable fatal error: Object of class WP_Error could not be converted to string in /home/dh_ebc578/thisismytestsite.xyz/wp-content/plugins/buddypress/bp-xprofile/classes/class-bp-xprofile-profiledata.php on line 127

As this was a similar error as someone else reported, I reached out to Buddypress support and got this response:

I’m guessing that the $this->user_id parameter is the WP_Error object https://buddypress.trac.wordpress.org/browser/tags/2.9.2/src/bp-xprofile/classes/class-bp-xprofile-profiledata.php#L127; this might result in the Default Data plugin because it attempted to generate a user, but failed, and didn’t catch its failure before attempting to add profile data for the new user.
We could build some sort of failsafe to prevent this sort of fatal from happening, but I don’t know if we’d want to. In this case, it’s likely that the problem is a result of some incorrect logic or incomplete error checking in BP Default Data, and if we were to silently “fix” the error (by returning false or something) it would hide what could be a more serious bug for the plugin.

PHP Notice: A non well formed numeric value encountered

Importing friends-connections (\bpdd_import_users_friends()) generate these notices:

PHP Notice:  A non well formed numeric value encountered in ...\wp-content\plugins\buddypress\bp-core\bp-core-functions.php on line 1231

Make the data deletion "smarter"

Currently when you let the plugin delete data it simply removes all users except the super admin and the same goes for groups/activity data.

It would be nice if it somehow could detect the default data created and only delete that whilst leaving the rest intact. This could be done by maybe adding custom meta fields to groups/members/activity and only deleting entries that have that custom fields.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.