Posted: October 30, 2019 at 9:14 am
|
Hi, Please advise. If you could email me directly at jon@spin350.com I would appreciate it. Thanks! Jon |
Hi Jon, May I ask which site? I checked and there are a number of sites attached to your account (e.g. domain.com/portal, domain.com/portal18). I can advise to remove the support license key from any additional sites. The key will work for updating on one site only. |
|
|
Hi Josh, Thanks for your reply. I believe that EE was reinstalled on this server, and now has multiple instances. EE hasn’t been updated in a long time, and users are seeing a spinning wheel when they go to check out. We would like to start our troubleshooting by updating all the EE plugins. We are not sure which EE instance is the correct one. Can you enable updates temporarily for two sites: https://friendshiphomeinc.org/portal Thanks! Jon |
Hi Jon, I’m afraid I actually cannot because the license key system doesn’t have an “enable updates temporarily for more sites” feature. What you can do is remove the key from one of the sites (go to Event Espresso > General Settings, blank out the key field, then save). Then you’ll be able to update the other site. Then, you can run a manual update on the site that doesn’t have a support license. The process for a manual update is as follows: 1) Download the EE4 plugin from your account page |
|
|
Thanks Josh! Just one last question. Is there a simple way to move EE to a clean WordPress installation? |
When you mention move EE, do you mean move the data like events, registration data, payments and so on? |
|
|
Yes. We would like to move the entire EE application to a clean installation of WordPress on another server. This move of the EE application would include all historical data. I do this all the time with apps like WooCommerce, etc. |
So there’s no posts or pages on the new site yet? If so, what you can do is copy all of the database tables that are prefixed with _esp_. Then you’ll also need to copy over the custom post type data from the posts table. At a minimum that would include rows with post type Then, if use post meta for your events and/or use the wp user add-on, you’ll also need to transfer the data from the postmeta table. And the user & usermeta tables if you use the wp user add-on. |
|
|
Great, thanks. Any concerns about serialization with exporting the tables? |
Yes, you should avoid making edits to serialized data (usually you’d find those in the options table). If you’re going to embark on migrating data from the options table, you can use a plugin like WP Migrate DB. |
|
|
John, thanks for your help with this. We are trying to update all our EE plugins to see if it fixes the issues. However, NONE of our WordPress Admins can’t see the WP dashboard items, PLUGINS, THEMES, or USERS. It’s almost like EE is restricting the user account, even though it’s an admin. I’ve tried adding another Admin account through the database, but the same thing happens. Is the WordPress user database linked somehow to EE? Have you ever seen this problem? Thanks Jon |
Hi Jon, Event Espresso does not include any code that restricts access to Plugins, Themes, or Users admin pages. Some other code on your site or some changes to user roles (which can be stored in the options table) may be doing that. |
|
|
Thanks Josh, so the EE users and WP users are separate and not linked in any way? |
Technically there are no EE users. They’re all WP users. In other words, there’s no separate user system provided by EE, a WP user account with admin level capabilities will also be able to access ee admin menus. What’s likely happening on your site is there was a change to the user roles where their access has been limited by removing capabilities or by removing menu links. EE does neither of those. If it’s the latter, where someone removed the admin menu links, then you should be able to go directly to yourdomain.com/wp-admin/plugins.php to manage plugins. If it’s the former, where someone changed user capabilities for user roles, then you may be able to use a plugin like this one, to restore the user role capabilities. |
|
|
Thanks. Then it sounds like I need to export the WP users from the broken site to the DEV site? |
It doesn’t sound that way, I’m not sure how that would help things. Have you tried going to yourdomain.com/wp-admin/plugins.php ? Does that page load for you when you’re logged in as an admin? |
|
|
No, it says “Sorry, you are not allowed to access this page.” |
That means it’s not a matter of hiding menu items then. In that case the user capabilities would need to be restored. I can only guess how your site got to this point. Is there a developer on your team that’s familiar with how the sites are set up? If so then they may be able to troubleshoot this. If not, then this guide may help: When you mention the idea of “export the WP users from the broken site to the DEV site” that doesn’t sound like the solution because exporting from the broken site would break the site where you import to. |
|
|
Thanks John. No idea who the previous dev was. Good news is I’ve migrated everything over just using Phpadmin and all the events and post types have come back fine. They ARE using the WP users plugin for EE. Could I just export their users from the broken site and restore to DEV? |
I’m not sure what you’re trying to accomplish by exporting users from a broken site. Do you understand what the WP user’s plugin for EE does? If not, here’s a link to its sales page that lists out its feature set: https://eventespresso.com/product/eea-wp-user-integration/ You’ll note that the WP users add-on for EE doesn’t add a new type of user to the site. What it does do is it adds features that can used by a registrant that has a WP user account. |
|
|
Hi Josh, Any chance you could log in an take a quick look if I gave you the credentials? I worked on this for 8 hours yesterday. The basic problem is that when users go into the EE portal, there’s a “spinning wheel.” It appears that the EE calendar is not loading, and I did notice some AJAX errors in the browser. Another problem, and I am not sure if it’s related. WP Administrator accounts are missing several links in the Dashboard, including THEMES, PLUGINS, and USERS. So I am unable to manage anything to diagnose the problem. Thanks, Jon |
Hi, The JavaScript errors in the console will be sufficient. With regards to a quick look, I’m afraid without admin access I won’t be able to troubleshoot either. If you follow this guide: |
|
|
Thanks Josh. It’s strange, the ADMIN account already had the meta value ‘a:1:{s:13:”administrator”;s:1:”1″;}’ which seems to be admin privileges, right? However, it won’t update to the value in the article, which is ‘a:1:{s:13:”administrator”;b:1;}’ |
|
Okay, I was able to change the admin meta value according to the article. However, when I login to /wp-admin it just takes me to the EE portal and doesn’t show the WordPress Console. There seems to be some link between user accounts and the EE front end. Thanks for any help! |
Yeah if that’s for your user ID, then that second |
|
|
Thanks, yes, it’s changed. But when I log in I can’t see any of the Dashboard features. It takes me straight to the EE front end. |
It sounds like someone added a redirect or some custom code that does the redirect. You could check the site’s .htaccess file for any out of the ordinary rewrite rules there. Also, and this will help with any other troubleshooting, you can FTP into the site and change the name of the /plugins/ folder, then as logged in as admin, visit the site’s wp-admin/plugins.php page. What that will do is deactivate all plugins, so then you can reactivate plugins one by one. You’ll want to watch out for any custom plugins that have code written specific for that site. The same is true for the theme’s functions.php file. If there’s custom code in that file written for that site, it should be reviewed to ensure it’s not causing the redirects. |
|
|
This reply has been marked as private. |
That’s all fairly standard .htaccess rules for WP, S2Member, redirecting, and Wordfence. So there’s likely some code on your site that’s restricting access. The thorough way to troubleshoot this is deactivate all plugins (as mentioned earlier) and temporarily switch to the default theme if the theme has any custom code specific to the site. |
|
|
Thanks Josh. I can rename the plugins folder, and test them one by one. But how do you deactivate them? Do I just put in the url admin.php/plugins after wp-admin? I’m not familiar with that method. |
If you rename the plugins folder, that will self-deactivate all of the plugins on the site. At which point, if you go to your WordPress dashboard, you can click on the Plugins menu item. You’ll see a list of all the deactivated plugins there. If at that point you still do not have a plugins menu item, you could try inputting |
|
|
This reply has been marked as private. |
Have you verified that you’ve renamed the plugins folder for the site in question? For example, with the plugins folder renamed, are the plugins now deactivated for that site? I understand you can’t reach the wp plugins page to verify that way, but any and all plugins settings pages (included EE’s) should all be automatically removed if all plugin files can’t be found. Also, have you checked the theme’s functions file(s) for any code that’s unique to that site? |
|
|
Yes, renamed plugins folder. Renamed functions. Changed theme to TwentyNineteen (using Phpmyadmin). Nothing I did seems to restore the WP Dashboard links like Themes, Plugins, etc. Also, admins cannot manage EE events, i.e. create or edit them. That was the reason they contacted us. |
Right, but when you’ve renamed the plugins folder, is there any change to the site in question? For example, after you’ve renamed the plugins folder, the site on the front end should be different in that things like EE events will no longer load (because EE’s plugin files can no longer be found). |
|
|
Yes, of course, EE goes away if/when I rename the plugins folder. And maybe some other ancillary plugins. But admins don’t have access to THEMES, PLUGINS, and USERS so those items don’t display and the dashboard is pretty empty. |
This rules out custom code from the wp-content/plugins folder then. You could also check for files in the wp-content/mu-plugins folder. If nothing there, then you can continue checking into the database. If you go into the options table of the database and get the option named |
|
|
There’s a lot of stuff under wp_user_roles value. You can see it here: Thanks! |
I don’t see Going in an editing serialized arrays in the options table could break the site even further, so a careful approach needs to be taken. This guide could be followed: http://shinephp.com/how-to-change-wordpress-user-role-capabilities/ Another approach you could take is get a serialized array from another site’s |
|
|
Thanks, I just checked and they ARE all there. Would it help to try a “clean” set of values from a fresh WP installation? And if it doesn’t work, or if it breaks the site more, I can just add the old values back in? |
It might help to try that, that’s similar to what I wrote in the last sentence of my last reply. |
|
|
When you say “import that value into your broken site’s database” you mean just copy it into the value field and save it, right? |
Yes. You’ll do well to make a backup of the database first too. |
|
|
This reply has been marked as private. |
|
This reply has been marked as private. |
Hi, You’ll need to check the PHP error log. On the calendar page, when the AJAX request for event data is made, there’s an internal server error (500) being thrown. The PHP error log may have a fatal error logged at the moment the calendar page was requested. |
|
|
Thanks. Debug log says “public_html/friendship/wp-content/themes/pro/framework/functions/frontend/generated-css/renew.php on line 135” It references this code in renew.php: .x-main { .x-sidebar { Any idea what that could mean? |
That’s from a PHP notice. You’re looking for a fatal error. What you could do is temporarily deactivate the other plugins on the dev site and if need be temporarily switch to a default theme to troubleshoot this. |
|
|
Hi Josh, So I’ve made some headway. I backed up wp_users_roles and used the values from a clean wordpress installation. Now everything came back up, except Event Espresso! I can see all the link in the WordPress Console but for some reason EE is now missing. |
That would be expected if your clean WordPress installation didn’t have Event Espresso installed. You could try going to the yourdomain.com/wp-admin/admin.php?page=espresso_maintenance_settings&action=data_reset Then click the button Reset Event Espresso Capabilities |
|
|
It’s giving me a page not found error, whereas if I go to /admin.php?page=espresso_events it says, “You do not have access to this route.” Any way to manually add the proper permissions in wp_user_roles? |
|
I forgot to add that EE was installed on the server that I copied the wp_user_roles information from. |
May I ask what’s the URL you’re inputing in exactly?
No because it’s a serialized array. |
|
|
“https://friendshiphomeinc.org/portal/wp-admin/admin.php?page=espresso_events” |
|
This chat isn’t letting me add the URL for some reason. Is there any way to get EE running now? The rest of the site is good but now I can’t access EE. Can I just reinstall the core plugin? |
Is the correct URL to get to the reset page. You’ll click on the Reset Event Espresso Capabilities button there. |
|
The support post ‘Error when updating’ 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.