You do not have sufficient permissions to access this page - after plugin activation
I'm getting the "You do not have sufficient permissions to access this page." after activating the plugin and am trying to access any of the setting pages.
Note, this is before even adjusting a single setting. I uploaded the plugin (kept /vbbridge/ directory intact). I clicked activate in the WordPress plugin page. I navigate to any of these pages and it gives me the error: - Settings->Vbridge Settings - Tools->Convert WordPress users - Users->Vbridge User settings The following line is still commented out in the file: #define('USE_ADMINCP_BRIDGE', true); Note: This is in a subdirectory install: domain.com/wordpress/wp-content/plugins/vbbridge/vbbridge.php Fresh install of WordPress 3.1.3 |
Tried it in a different WordPress install that is in the root of a different domain and I can get to the settings pages. It's using Wordpress 3.0.1
Summary | Seems to work with the following: - Different WordPress version - Not in a subdirectory install |
seems to be a wordpress issue..
The following code wont work as a new plugin for adding an admin page.. PHP Code:
|
Ok, new issue. I figured out that something was using chdir() to change the working directory which was causing the permission issues.
Now when I activate the plugin it brings me back to the WordPress login page. No credentials work to log in, WordPress or vBulletin. If I uncomment the USE_ADMINCP_BRIDGE line I can log in via vBulletin creds but it gives me a permission error. Alternatively I can delete the plugin and get back into the WordPress backend. |
I added the following in the wp_set_current_user function and it allowed me to get into the admin panel with the plugin active. I can now edit the usergroup settings to map vb groups to wp user levels.
Note: usergroup 6 is the usergroup for admins on my vbulletin PHP Code:
|
Seems like I can log in with different users and I can change the vbb settings but I cannot change WordPress settings. Know why this may be?
|
Looks to be a conflict with the database objects.
When WordPress is using $wpdb->get_results within "/wp-admin/options.php" it's trying to use the vBulletin database rather than the WordPress database. Seems to be only related to WordPress options.. |
Copied the WordPress database to the vBulletin database and changed the database reference in wp-config.php and I can now adjust settings.
I see this as a temporary fix for now as I need these two databases separated. How do I make sure it's not conflicting while having them separate? |
There really is no way for the $wpdb to somehow start using the vbulletin database. Not sure what modifications you have made but I think your assumption here is wrong.
|
When I do a var_dump($wpdb) in admin notices section of the backend it tells me the last mysql error that was generated and it states that the "vbulletin_db.wp_options" table doesn't exist.
When I change WordPress to use the same database it starts to work so something is obviously getting confused. Couldn't vBulletin have a similar variable name that could be conflicting? Have you tried it from two separate databases before and tried modifying options? |
There is no conflicting variable. On almost every install I use this on, the db's are separate. Are you sure you do not have a plugin installed that is using the latest db connection instead of the $wpdb variable?
|
It's the only plugin active. Weird.
|
All times are GMT -4. The time now is 05:30 AM. |
Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2025, vBulletin Solutions, Inc.