Posted: June 30, 2014 at 11:05 am
|
Event Expresso – Version 3.1.36.5.P I recently added the EVENT ESPRESSO – BASIC PERMISSIONS plugin to our system. But when I try to set up permissions I can see the USER PERMISSIONS page but the USER ROLES appears completely blank. We upgraded to Event Espresso Version 4 only to discover that most things we need are not included and had to revert back to Event Espresso Version 3. Perhaps this can be the problem? I have two screen captures but can’t figure out how to post them since your system blocked my images. b. rgds- bill |
Hello, The User Roles / Permissions plugin is for Event Espresso 3. It is not compatible with EE4. Was this working prior to the update? You can upload to WP Media and link to the images here or a free service like Cloudapp or TinyGrab. — |
|
|
We never used the PERMISSIONS PLUGIN before. I installed the BASIC PERMISSIONS PLUGIN the other day (we are still on Event Espresso – Version 3 (reverted back version)). What can I do to fix it? b. rgds- bill |
|
http://digitalphotoacademy.com/wp-content/uploads/sites/17/2014/06/problem-user-roles-empty.jpg http://digitalphotoacademy.com/wp-content/uploads/sites/17/2014/06/problem-user-permissions.jpg |
Hi William, The blank screen may be caused by a fatal error getting thrown when the PHP runs on the User Roles Manager page. Can you try setting WP_DEBUG to true by editing the wp-config.php file and check the page for a displayed error? If it displays an error, please post the error message here. |
|
|
This is what I get: Notice: Constant COOKIE_DOMAIN already defined in /home/esignlif/public_html/wp-content/sunrise.php on line 34 Notice: get_current_site_name is deprecated since version 3.9 with no alternative available. in /home/esignlif/public_html/wp-includes/functions.php on line 3085 Deprecated: Assigning the return value of new by reference is deprecated in /home/esignlif/public_html/wp-content/plugins/protect-selected-content/protect-selected-content.php on line 210 Warning: session_start(): Cannot send session cache limiter – headers already sent (output started at /home/esignlif/public_html/wp-content/sunrise.php:34) in /home/esignlif/public_html/wp-content/themes/forte/functions.php on line 4 Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /home/esignlif/public_html/wp-includes/functions.php on line 3193 |
Hi William, It looks like there may be a membership plugin running and that may be conflicting. Does the admin page load if you temporarily deactivate all plugins and reactivate Event Espresso and its addons? — |
|
|
I tried turning all plugins off and only turning on EVENT ESPRESSO 3 and THE PREMISSIONS BASIC PLUG IN. That did not make it appear. Here is a list of all the plugins I am using: AutoChimp b. rgds- bill |
Hi Bill, Could you clarify if this was originally working (before trying out EE4)? I thought it was but now that I’ve looked through your feedback again, it does not look like it has worked for you. If this is the case, could you try full defaults with a default WP theme and Event Espresso & its addons running? Be sure to restore your site afterwards. — |
|
|
This is a live site used by thousands. I can not do that. It was NOT working before. This is the first time we are trying it. Don’t know what to do as we want to add permissions to allow photo teachers to see their students. -b |
Would you happen to have a staging area that you can pull a copy of the site into? — |
|
William, You can rule out whether it’s the theme that’s causing the breakage by installing the theme test drive plugin and test driving a twenty-something theme. The site’s installed theme will remain for all non-admins while you test. It may be a theme function that’s causing the breakage since the theme was throwing errors with WP_DEBUG on. |
|
|
No we don’t. It is a new site we just launched. b. rgds- bill |
|
Maybe I should have my programming team in India look at it. b. rgds- bill |
It may help to reinstall and double check to make sure that all of the Roles and Permission basic plugin’s files are installed. Here’s a list its files: espresso-permissions.php |
|
|
I turned plugin off and then back on and that did not help. I will have to check the install tomorrow. b. rgds- bill |
Hi Bill, Did you test the with one of the default twenty* themes such as twentyfourteen using Theme Test Drive? The errors on that page are from your Domain Mapping plugin and your theme, the domain mapping errors should not cause issue, but the error caused by the theme may. |
|
Hi Bill, Can you verify whether this WordPress site is part of a Multisite network, and if it is, are Event Espresso and its add-ons network activated or activated per site? Typically if Event Espresso 3 is installed on Multisite, the Event Espresso plugins need to be activated per site. |
|
|
This is part of a multipress wordpress installation. I only activate the event espresso for this one site within the network (due to license issues) and it is NOT the main site within the multipress. b. rgds- bill |
Hi Bill, Did you check to see if all the files were uploaded? |
|
|
I checked and ALL THE FILES are there and correct. b. rgds- bill |
Hi, Have you tried the theme test drive plugin to rule out an issue with your theme? This works by showing WordPress admins one theme while showing your website visitors your original theme. https://eventespresso.com/topic/event-espresso-user-roles-manager-page-blank/#post-104830 — |
|
Bill, It may help to make a quick edit to the last part of the switch case in /includes/roles.php where it loads the file so it uses the full path to the file. Starting on line 72 the code change in context is from this: default : require_once( 'default-roles.php' ); break; to this: default : require_once( ESPRESSO_MANAGER_PLUGINFULLPATH . 'includes/default-roles.php' ); break; |
|
|
okay I tried this and nothing different happened. When I click the link to see the roles it definitely gets hung up for a while and then finally returns the blank page. b. rgds- bill |
|
I tried using the THEME TEST DRIVE. I used the standard 2014 template. Then went into the control panel and clicked PERMISSIONS and then ROLES. The ROLES page is still blank. b. rgds- bill |
Thanks for checking. There’s one more place where it loads up the template file for this page that you can try using the full path. Inside the same /includes folder you’ll find functions.php, where starting on line 226 a function that’s named “espresso_edit_roles_page()”. Can you try changing it so it now reads as follows: function espresso_edit_roles_page() { require_once( ESPRESSO_MANAGER_PLUGINFULLPATH . 'includes/roles.php' ); } |
|
|
I tried this and it still does not work. b. rgds- bill |
That’s interesting. Can you try this? 1) Create a new, temporary admininstrator user account for this site. If the above yields the same results, would you be okay with sending us the temp. user account creds so we can investigate further? If so, please send them via our secure form here: |
|
|
Okay I tried that too. Not working. Sending credentials, etc. for more personal help. b. rgds- bill |
Hi Bill, Thanks for sending. I checked the error log and here’s one of its last entries:
What this means is your server is running low on memory, to the point where when it crashes when it tries to load up the status widget on your WP dashboard. Do you notice it takes a long time when it tries to load up when it pulls up the User Roles Manager page, then it gives up and shows a blank page? This is because the User Roles Manager page loads up each of the user accounts’ capabilities. Since your site has ~30,000 users that is going to put a lot of strain on a server that’s already running low on memory. So what happens is it throws another fatal error when it tries to pull in the tens of thousands of users’ capabilities: PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 72 bytes) in /xx/wp-includes/meta.php on line 778 This server is hitting its limit. Here is a possible solution: Instead of trying to load up all the user accounts’ capabilities, you’ll likely only need to load up user accounts that have the espresso_event_admin role. This can be done by making a small edit to line 12 of espresso-permissions-basic/includes/default-roles.php. You can change it to what follows: $users_of_blog = get_users(array('role' => 'espresso_event_admin')); Making that change should help because now it will only be checking for capabilities for the Espresso Master Admin role accounts instead of the tens of thousands of other accounts. Of course, you’ll need to change the role of those you are granting Event Espresso access to this role, but you would have had to do that anyway. Hope that helps! |
|
|
Thank you so MUCH! That finally worked. b. rgds- bill |
You’re welcome. Have a great weekend. |
|
The support post ‘Event Espresso – User Roles Manager PAGE BLANK’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.