Classified plug-in on a multisite installation

I have a test site, where I have wordpress site as the main site, the site with buddypress is setup in a subdirectory, then I allowed new users register a blog. When I login as one of the new users (wpmudev) and go to dashboard, and click on "add new" in classifieds, the site takes me to this link "http://community.kooksjournal.com/members/wpmudev/classifieds/create-new/?"

Then I get the following error:

"
Permission Denied
Not Found / No Access

The page you are looking for either does not exist, or you do not have the permissions to access it."

But if I click on "classifieds" instead of "add new" under the "Classifieds" on the dashboard and this takes me to: "http://wpmudev.community.kooksjournal.com/wp-admin/edit.php?post_type=classifieds"

then if I click on "add new" on this page, it works and takes me to: "http://wpmudev.community.kooksjournal.com/wp-admin/post-new.php?post_type=classifieds"

I created a new user so that you can log in and see what I mean:

user:wpmudev
pass:wpmudev

  • ozgurpolat

    Hi Kimberly,

    I set which blog ID BuddyPress will run on using:

    define ( 'BP_ROOT_BLOG', $blog_id );

    And here is the way my multisite is setup:

    WordPress 3.5 Installation
    Multisite – domain root http://kooksjournal.com/
    Main WP site http://kooksjournal.com/

    BuddyPress Activated
    secondary blog – in subdomain structure http://community.kooksjournal.com

    And buddypress, bbpress and classifieds plugins are all network activated. I have just tried appointments plugin as well. I installed it on a test single Wordpress installation , it works fine but when I activate this plug-in in my multisite setup it doesn't work. It is not just one plug-in I am having trouble with all plug-ins. There must be something wrong with the way I set up the multisite. I just don't have enough experience to pin point the problem.

    Best regards

    Ozgur

  • Kimberly

    Ozgur,

    Have you had any success with BuddyPress with the Root define removed?

    or is it different if you log in directly on the subsite?

    Lets start with everything deactivated, only buddypress and default wp install. if it works then we can activate a plugin. are you wanting to sync the users across the multisite?

    since it seems the site community.kookjournal is where the classifieds live have you considered a different define http://codex.buddypress.org/developer/developer-docs/using-multisite-with-buddypress/bp_enable_multiblog/

  • ozgurpolat

    Hi, sorry for the late response. I am trying to set up three or four different test wp+bp multisites where I will install each wpmu plug-in I am having trouble with on its own and nothing else. As soon as I finish testing I will report. For this particular problem, I followed Kiberly's advice and enabled bp_enable_multiblog. The trouble is that the Wordpress theme I am using on the main Wordpress site is not bp compatible. So I decided to convert it to a bp compatible theme. I started learning CSS and HTML only three weeks ago. But I think I am a smart cookie (just kidding), I actually managed to do the conversion. But took a while. That's why I haven't been able to answer this post. Instead I have been consuming a lot of caffeine to do the conversion.

    Best regards

    Ozgur

  • ozgurpolat

    Hi Kimberly, unfortunately enabling bp_multisite_enable did not change anything. It still gives the same error but when I enable bp multisite then I have to convert my theme on the main site to a bp compatible theme. I did that which took a while but in the end it did not change anything for the classifieds plugin. I set up two different test sites. kooksjournal.org and kooksjournal.net. I created a subscriber account wpmudev for both sites with the same password as the account name so that you could login and see what happenes in both sites.

    Kooksjournal.ORG
    Current site: http://kooksjournal.org
    Buddypress installed on: http://kooksjournal.org
    User and Blog registrations were allowed when wpmudev was registered but turned off after the registration of wpmudev:
    wpmudev Blog: http://wpmudev.kooksjournal.org/

    Login:wpmudev
    Pass:wpmudev

    Wp-config.php:
    define('WP_DEBUG', false);
    define('WP_ALLOW_MULTISITE', true);
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', true);
    define('DOMAIN_CURRENT_SITE', 'kooksjournal.org');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);
    /* That's all, stop editing! Happy blogging. */

    What happens when I click on Classifieds->add new

    First it takes me here:
    http://wpmudev.kooksjournal.org/wp-admin/edit.php?post_type=classifieds&page=classifieds_add

    Then it redirects here:
    http://kooksjournal.org/members/wpmudev/classifieds/create-new/?

    This works and takes me to the classifieds page in my buddypress profile

    Kooksjournal.NET
    Current site: http://kooksjournal.net
    Buddypress on a secondary blog: http://community.kooksjournal.net
    wpmudev blog: http://wpmudev.community.kooksjournal.net/

    User and Blog registrations were allowed when wpmudev was registered but turned off after the registration of wpmudev:

    Login:wpmudev
    Pass:wpmudev

    Wp-config.php:
    define('WP_DEBUG', false);
    define('WP_ALLOW_MULTISITE', true);
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', true);
    define('DOMAIN_CURRENT_SITE', 'kooksjournal.net');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);
    define('BP_ROOT_BLOG', 2);
    /* That's all, stop editing! Happy blogging. */

    What happens when I click on Classifieds->add new

    First it takes me here:
    http://wpmudev.community.kooksjournal.net/wp-admin/edit.php?post_type=classifieds&page=classifieds_add

    Then it redirects here:
    http://community.kooksjournal.net/members/wpmudev/classifieds/create-new/?

    Then I get the following error message:

    Permission Denied
    Not Found / No Access
    The page you are looking for either does not exist, or you do not have the permissions to access it.

    Please login as wpmudev with the same password as the login name and have a look at it.

    Best regards

    Ozgur

  • ozgurpolat

    Hi Kimberly,

    At the moment, I don't use bp multisite enable condition and I used the original theme files for the shoutbox theme that is the theme for the main blog in kooksjornal.net. So this theme is NOT made buddypress compatible in these setups. And I am using buddypress corporate for the buddypress blogs.

    So I did not do anything other than installing a Wordpress theme shoutbox and buddypress theme buddypress corporate.

    The problem starts when you want to use buddypress on a secondary blog. Basically, the plugin cannot handle this condition for whatever reason.

    I have two different domains: kooksjornal.org and kooksjornal.net. In the .org the main blog is the buddypress blog and using the buddypress corporate theme. In the .net main blog is using shoutbox theme (original files not made bp compatible) and secondary buddypress blog is using buddypress corporate theme. I can also change the shoutbox theme with default Wordpress theme twenty eleven, but it won't make a difference. This is not caused by the theme files.

    You could also test this, it doesn't take long to set it up. Just install a Wordpress theme or use the default one, enable multisite, then create a secondary blog. Then install buddy press and bbpress, then in wp-config.php file use the secondary blog as the bp root blog before running bp installation wizard. Then you can install classifieds plug-in. Finally enable users can register both accounts and blogs. Create a new user with a blog. Then log out and log back in (using a different browser) with the new user (not admin user). Then you should be able to observe the same problem. It doesn't happen if I login as the super admin. Super admin doesn't experience this problem.

    Kind regards

    Ozgur Polat

  • ozgurpolat

    Adding to the post above, it is important to mention the following observation: the super admin who created the main blog and the secondary buddypress blog does not experience the same problem. It only happens when a new user registers an account and a blog, and logs into the site. From their own dashboard (since they cannot go into the other dashboards as subscribers) when they try to use this plug in this problem occurs. And it is not just that, the plug in uses the primary blog of the user for the classified plugin not the buddypress root blog. I think this is the problem. Because when I log in as the super admin, I created the buddypress secondary blog so it is my blog then the plug-in works. There must be a way to tell the plug in to use the buddypress root blog not the user's primary blog. I know what the problem is, I just don't know how to fix it. I will try to go into the plugin code and see if I can figure it out.

  • Arnold

    Tried looking at the site but the wpmudev user isn't superadmin so I can't see the settings on the plugin.

    Note that when you sign up through a subsite, Wordpress ALWAYS goes to the primary site and really registers you on the primary. There is code to also add you to the blog that originated the signup. I would need to chaeck what the roles are doing.

    You're not trying to share classifieds posts between sites are you?

  • Arnold

    If that's the case then you shouldn't network enable it.

    1. Delete the network level classifieds post types, taxonomies and custom fields.

    2. Deactivate it at the network level.

    3. Go to the blog you want to use Classifeds on and activate it just on that blog. It will recreate the custom types just on that blog and not interfer with the others.

    If you stillwant me to look send to arnold at incsub dot com

  • ozgurpolat

    Hi Arnold, I followed your advice, and it worked. But I have number of questions regarding the behavior of the settings-> capabilities page. I tried to modify the capabilities for the participant, but it doesn't save it. It saves the capabilities for other user types but not participant.

    Another question is the search function. At the moment you can only search for the classified pages from admin but it is not possible to do a search let alone an advance search. I was thinking what if there are hundreds of ads, and the user needs filters to find what they are looking for. How does classified plugin work without advanced search function?

    I observed some CSS issues with buddypress corporate theme. The add exceeds the page into the sidebar. Especially when you look at the category pages.

    I will email you the admin password so that you can take a look at it.

  • Arnold

    I get an error on your site.

    define( 'BP_ROOT_BLOG', 2 );
    Warning: Cannot modify header information - headers already sent by (output started at /home/kooksj5/public_html/kooksjournal.com/wp-content/plugins/bp-custom.php:1) in /home/kooksj5/public_html/kooksjournal.com/wp-includes/pluggable.php on line 876

    Did you put the define in the wp-config.php file or what.? Something is preventing a login from here.

  • Arnold

    It appears that bbpress is fighting over the role settings. On your Participant (and several others) they have a slug name with a prefix of "bbp_". The classifieds plugin wouldn't name them tah way so I'm assuming that bbpress did it.

    And apparently bbPress is forcing it to whatever settings it thinks are correct overiding the Classifieds settings. Tryed another utility to set the capabilities and it set it but next time a page loaded bbPress wiped it out again.

    And to prove it I deactivated bbPress an now everything can be modifed by both Classifeds and the ther utility.

    If bbPress is going to chronically override capabilities there's no programming I can do to make it stop. You need to contact bbPress about that.

  • ozgurpolat

    I think if I give users subscriber capability I should be able to use both bp and bbp. But my other concern is the search function. It seams that the plug-in cannot do any advanced search with filters for a particular category listing or another criteria from the web site. Do you guys think that this plug-in will function well without a search. What if there are hundreds or thousands of ads, how would the users find what they are looking for? I had a look at some other classified plugins. I like this plugin because it is well integrated with buddypress but it cannot do any advanced search. As I understand.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.