Support

Home Forums Event Espresso Premium Removing EE4 completely to allow EE3 to be installed

Removing EE4 completely to allow EE3 to be installed

Posted: March 30, 2016 at 2:00 pm


Mark Barclay

March 30, 2016 at 2:00 pm

Hi

I have removed all EE4 core plugins and extentions and have installed EE3 but its a bit of a mess, I checked the database and there seems to be alot of EE4 dtat still there.
Is there any documentation on removing the data from the database so I can have a clean instal of EE3.
I dont want to have to rebuild the WP installation again.

Thank you

br
Mark


Josh

  • Support Staff

March 30, 2016 at 2:17 pm

Hi Mark,

EE4 has a built-in database cleanup tool that you can find on the Event Espresso > Maintenance page. You can run the tool by clicking on the Permanently Delete ALL Event Espresso Data button there. You’ll need to temporarily deactivate EE3 then re-install EE4 to run the tool.


Mark Barclay

March 30, 2016 at 2:19 pm

OK thats cool, however I now have a more pressing problem after installing EE3 I cant loginto the backend it just redirects to the front end home page.

Im looking at that issue before I can reintall EE4 to use the tool
br
Mark


Josh

  • Support Staff

March 30, 2016 at 2:28 pm

You can manually deactivate EE3 by changing the its folder name (you FTP into the site). Or you can set the active_plugins value for the options table to disable the plugins by following this guide:

https://perishablepress.com/quickly-disable-or-enable-all-wordpress-plugins-via-the-database/


Mark Barclay

March 30, 2016 at 3:00 pm

Hi Josh

I completely removed the wp installation and created a new install with a fresh database. I added the them which is canvas with a child theme then added EE3 and when Im in the backend and tried to enter an event it redirected to the front end home page.
Any ideas have you seen this before?

br
Mark


Josh

  • Support Staff

March 30, 2016 at 3:22 pm

No I haven’t seen that before. Have you checked you PHP error log for the time when you were redirected? You can also try setting WP_DEBUG to true in the wp-config.php file and that may show an error that happens before the redirect.


Mark Barclay

April 1, 2016 at 1:04 pm

Hi Josh

To be absolutely sure I reinstalled a fresh WP install onto a dedicated IP Adresss and loaded my theme. Tested everything and all OK. I then installed EE3 and tried to add an event it then did the same thing and redirected to the home page on the front end. It looks like the server is getting over loaded. So I looked at the error logs at the time and this is the error reported

[Fri Apr 01 12:49:50.989128 2016] [fcgid:warn] [pid 22102] [client 71.241.146.85:50811] mod_fcgid: stderr: ALERT – script tried to increase memory_limit to 268435456 bytes which is above the allowed value (attacker ‘71.241.146.85’, file ‘removed for privacy/wp-admin/admin.php’, line 155), referer: http://removed for privacy/wp-admin/admin.php?page=event_espresso


Josh

  • Support Staff

April 1, 2016 at 1:57 pm

You should be able to solve that by adding the following to your wp-config.php file:

define('WP_MAX_MEMORY_LIMIT', '128M');
define('WP_MEMORY_LIMIT', '128M');


Mark Barclay

April 1, 2016 at 3:10 pm

Unfortunately that didnt fix it


Josh

  • Support Staff

April 1, 2016 at 3:29 pm

Hi Mark,

You’ll find a few other solutions in these threads:

https://pablumfication.co.uk/2010/02/27/wordpress-suhosin-memory-limit/

http://www.dedicatedukhosting.com/blog/php-suhosin-settings-when-receiving-increase-memory-limit-alerts/

http://benohead.com/wordpress-alert-script-tried-to-increase-memory_limit-to-268435456-bytes-which-is-above-the-allowed-value/

https://wordpress.org/support/topic/adminphp-tries-to-increase-memory_limit


Mark Barclay

April 2, 2016 at 10:56 am

Hi Josh

I have increased the php config to -1 (unlimited) and 256M rebooted apache and tried again after clearing the cache.
I can login to /wp-admin
I can move around the backend OK until I get to EE and try to add an event, it then throws me out to the home page then if I try to log backinto the /wp-admin it just redirects me to the home page again.

The action of ‘add new event’ is hammering the server.

I have persuaded my client to use EE and I need it up and running on Monday so I have the weekend to get this fixed so I can finish the site.

Any help here would be appreciated.

br
Mark


Josh

  • Support Staff

April 2, 2016 at 1:48 pm

Hi Mark,

Can you install Event Espresso on a different server? I can recommend WPEngine, Siteground, Hostgator, and the others listed on this page:

https://eventespresso.com/requirements/


Mark Barclay

April 2, 2016 at 2:46 pm

I think I will have to give up on EE even when I try to load your Requirements plugin it slams the server.

We run over 200 WP websites on our server so Its not the server and wouldnt use another server.

Best regards
Mark


Tony

  • Support Staff

April 4, 2016 at 3:58 am

There is very little within the EE Requirments plugin that ‘slams the server’ so I don’t know why it would cause problems. The plugin reads a lot of values, but there is actually very little processing and it does not use very much ram at all, there is a RAM test feature (depending on which version you are using) but that doesn’t run on page load. I can load it on a shared host using 40MB (PHP is set to 32MB but WP will automatically up that to 40MB on a single site install)

However WordPress does set WP_MAX_MEMORY_LIMIT = 256MB by default, and that value is used within the WordPress dashboard, so admin.php will try to set the memory limit to 256MB but that’s WP and not EE. So I would have thought you would have seen that previously if it was the problem, but it seems so, as that’s the only place that sets the memory_limit to 256MB by default.

When you set:

define('WP_MAX_MEMORY_LIMIT', '128M');
define('WP_MEMORY_LIMIT', '128M');

Did the about alert change the byte value to match roughly 128MB?

EE has been installed on thousands of servers and we (the support team) install EE on a wide range of hosts from shared to dedicated during testing, this is the first time we’ve seen this happen. So it must be a config issue somewhere along the way, be that within the server or WP, its really strange because on a clean install, EE (and especially the requirements plugin) does not use very many resources.


Mark Barclay

April 4, 2016 at 4:51 am

Hi Tony

Thanks for the explanation. I spent alot of the weekend trying to get your script working and finally found it was a Mod Security issue. I got it all working and spent most of yesterday setting it up.

FYI it only happened when I tried to setup a new event.

So when I tried to change the time zone to New York it then brought up this error:

UTC time is 2016-04-03 20:46:47
Local time is 2016-04-03 20:46:47
This timezone is currently in standard time.

Fatal error: Uncaught exception ‘Exception’ with message ‘DateTimeZone::__construct(): Unknown or bad timezone (UTC-4)’ in /home/hpenfvetsi/public_html/wp-content/plugins/event-espresso/includes/functions/time_date.php:536 Stack trace: #0 /home/hpenfvetsi/public_html/wp-content/plugins/event-espresso/includes/functions/time_date.php(536): DateTimeZone->__construct(‘UTC-4’) #1 /home/hpenfvetsi/public_html/wp-content/plugins/event-espresso/includes/event-management/edit_event.php(506): eventespresso_ddtimezone(‘1’) #2 /home/hpenfvetsi/public_html/wp-content/plugins/event-espresso/includes/event-management/index.php(100): edit_event(‘1’) #3 [internal function]: event_espresso_manage_events(”) #4 /home/hpenfvetsi/public_html/wp-includes/plugin.php(525): call_user_func_array(‘event_espresso_…’, Array) #5 /home/hpenfvetsi/public_html/wp-admin/admin.php(236): do_action(‘event-espresso_…’) #6 {main} thrown in /home/hpenfvetsi/public_html/wp-content/plugins/event-espresso/includes/functions/time_date.php on line 536

When I checked the tables WP_Options and UTC Change the value was zero.

Do you have any thoughts on this one as now I cannot edit the event. I am so close to finishing it.

Best regards
Mark


Tony

  • Support Staff

April 4, 2016 at 5:32 am

I’m glad you got it working.

I spent alot of the weekend trying to get your script working and finally found it was a Mod Security issue.

Can you provide any details on the cause? We can then note it internally and investigate further.

So when I tried to change the time zone to New York it then brought up this error:

So is that within a single event?

If you navigate to Dashboard -> Settings -> General.

Is your Timezone there set to UTC-4 or a location? It should be set to a location in the timezone you need for EE to work correctly.


Mark Barclay

April 4, 2016 at 5:37 am

I had to turn of Mod_Security to get it working.

This is a single event and I have the Dashboard>Settings>General set to New York


Mark Barclay

April 4, 2016 at 5:43 am

Looks to me like on the event edit page the EE time is set to GMT-4 and general WP setting is set to New York


Tony

  • Support Staff

April 4, 2016 at 6:27 am

Yeah the problem is the event has been saved with a UTC timezone rather than a location, I’ve created a ticket to investigate this further.

Currently to fix that event you’ll need to remove the ‘timezone_string’ value from the event within the database, I’m assuming your comfortable using PHPMyAdmin or similar?

You’ll need to open up the {prefix}_events_datail table.

Find your event within that table (you can use the event id within EE and match it to the ID within that table)

Find the ‘timezone_string’ value – http://take.ms/yIi2m

Remove the value set there and refresh the event page, the event should then load. Now you can set the timezone to a location and it should work as expected.

Be sure to create a database backup before doing the above, just to be safe.

If you are not comfortable doing the above I can do it for you using the Admirer plugin if you prefer.


Mark Barclay

April 4, 2016 at 6:37 am

Thanks Tony

All fixed now and working

Just to be sure:
In General>Settings Do I set the time zone to where I am and then on the event edit page set the time zone to the actual city of the event?
And obviously dont use the GMT offset feature just cities


Tony

  • Support Staff

April 4, 2016 at 7:15 am

Yes.

General -> Settings timezone would be what your whole site uses. So you set that timezone for whichever timezone you want to be used by default fro all datetimes shown on your date (not just EE)

The timezone within the event allows you to override that for each individual event.


Mark Barclay

April 4, 2016 at 7:39 am

OK great Thanks Tony.

So one last thing as I set about styling the site for branding.
I have disabled Themeroller on the ‘Templates Settings’ page as its quicker for me to edit the actual style sheet. I have followed the instructions and have amade a copy of event_espresso_style.css and moved it to “wp-content/uploads/espresso/templates”.
However when I add some CSS for example:

.ee-event-datetimes-ul {
display: none;
}

to the file it does not work. I am trying to remove the Price, StartTime,End Time & Date from the registration page.

I may not have followed the instructions correctly ๐Ÿ™


Mark Barclay

April 4, 2016 at 7:40 am

See the page http://hpenfvetsi.com/event-registration/?ee=1


Tony

  • Support Staff

April 4, 2016 at 9:24 am

Where are you finding .ee-event-datetimes-ul?

That class is from EE4, but you are using EE3. So it won’t change anything.

To remove those sections you’ll need:

.event_prices, .event_time, .start_date {
    display: none;
}


Mark Barclay

April 4, 2016 at 9:37 am

Apologies I was using my snippets list from my original EE4


Tony

  • Support Staff

April 4, 2016 at 11:20 am

No problem, you had me double checking to make sure anyway ๐Ÿ™‚

If you have any further questions just let us know.


Mark Barclay

April 4, 2016 at 1:19 pm

I did open another ticket because I thought it more appropriate as another subject about disabling the auto format in your editors coz it is scrambling the HTML emails in Outlook.

The support post ‘Removing EE4 completely to allow EE3 to be installed’ 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.

Event Espresso