Support

Home Forums Event Espresso Premium Registration page not working

Registration page not working

Posted: March 7, 2015 at 6:50 am


winuk

March 7, 2015 at 6:50 am

Hi,

I’m in the process of setting up my first event and have added some tickets and a dummy ticket as well to the event page here (it’s for a Church Camp).

I use the very latest version of EE4 (4.6.14.p) and have also installed and configured MailChimp (2.2.2.p). WordPress itself is running 4.1.1 and my theme is The7.

Upon trying to buy one or more of the tickets, the registration page is simply not loading. It worked a few days ago but as I returned this weekend to make some tweaks to the event, the registration step has since failed to load.

The registration uses multiple question groups (not sure if this is important or not).

I should note that I am using a custom function to change the slug of Event Espresso (I already have another tool using the events slug) but given this function used to work, I am not sure why it is not working any longer… and if the two are event related because the events do seem to be loading as per the link above…

In case you need it, this is the function I use to rewrite the slug and it has been added to my functions file in the theme:

/**
	 * Rewrite the slug for event espresso.
	 * @ 2015-03-04
	 * @ Edit made by KR
	 */
add_filter( 'FHEE__EE_Register_CPTs__register_CPT__rewrite', 'my_custom_event_slug', 10, 2 );
    function my_custom_event_slug( $slug, $post_type ) {
    	if ( $post_type == 'espresso_events' ) {
    		$custom_slug = array( 'slug' => 'tickets' );
    		return $custom_slug;
    	}
    	return $slug;
    }

I’m close to tearing my hair out as I cannot figure out what is going wrong…

Would anyone here on this forum have any ideas or suggestions on how to get event espresso to work again with the registration page???

Many thanks,

Kenneth


Lorenzo Orlando Caum

  • Support Staff

March 7, 2015 at 5:25 pm

Hi there Kenneth,

I started registration for that event and it worked as expected.

What error are you seeing? Could you copy and paste any errors that are shown?

Thanks in advance


Lorenzo


winuk

March 8, 2015 at 4:13 am

Hi Lorenzo,

Thanks so much for getting back to me. The registration page just isn’t loading for me. I’ve loaded a screenshot here that shows how the page ‘aborts’ from loading.

I’m not sure if this could be a cookie issue but even then, I’ve tried to clear my cache and everything to no avail.

This error happens in Safari, Chrome and Firefox on a Mac. My friends have also tried using the same browsers on Windows without luck.

Is there something I can do to try and generate some useful debug data?

Any further help you can provide is greatly appreciated!

Thanks

Kenneth


winuk

March 8, 2015 at 2:30 pm

Hi Lorenzo,

Further to my note above, I have been able to get the following from my debug.log

[08-Mar-2015 17:51:46 UTC] PHP Notice:  Undefined variable: this in /wp-content/plugins/wpseo-local/classes/class-core.php on line 42
[08-Mar-2015 17:51:49 UTC] PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 75487 bytes) in /wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_Template.helper.php on line 283
[08-Mar-2015 17:51:55 UTC] PHP Notice:  Undefined variable: this in /wp-content/plugins/wpseo-local/classes/class-core.php on line 42
[08-Mar-2015 17:51:57 UTC] PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 81921 bytes) in /wp-content/plugins/event-espresso-core-reg/modules/single_page_checkout/templates/attendee_information/attendee_info_main.template.php on line 53

What I think is quite clear is that there is a conflict happening between the Yoast Local SEO plugin and Event Espresso. I don’t know quite what the conflict is but EE4 is now working with the Local SEO ‘switched off’. Do you know what could be causing this?

Thanks,

Kenneth

  • This reply was modified 4 years, 8 months ago by  Tony. Reason: Removed server details


Tony

  • Support Staff

March 9, 2015 at 9:43 am

Hi Kenneth,

This error:

[08-Mar-2015 17:51:49 UTC] PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 75487 bytes) in /wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_Template.helper.php on line 283

Means that your site is running our of memory. 67108864 bytes is roughly 64MB (its actually 67MB) which would be the default memory allocation for PHP in many shared hosting providers.

Rather than a conflict between the two plugins, what is likely happening is your site is using more memory with Yoast Local SEO enabled so when EE tried to run it is running out of memory. This won’t be specific to EE and Local SEO, if you find another plugin that uses enough memory the same would happen.

So to fix, you’ll need to edit your wp-config.php file and ass something like this:

define( 'WP_MEMORY_LIMIT', '96M' );

Which will increase the memory limit to 96MB (if your host allows) you may event want to increase this further ans use 128M:

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

Which should allow both those plugins to run at the same time.

You can find more information here on WP_MEMORY_LIMIT here:

http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

If you are unsure of how to do this I would recommend contacting your hosting provider and have them increase the PHP memory limit for you.


winuk

March 14, 2015 at 6:30 pm

the memory fix seems to have done the trick. thanks a lot!!!

The support post ‘Registration page not working’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  winuk 4 years, 8 months ago ago

Topic Tags

Notifications

This topic is: resolved
Do NOT follow this link or you will be banned from the site!
[for="input_96_5_3"]
[for="input_96_5_3"]
[gravityform id=96 title=false description=false]
  • This field is for validation purposes and should be left unchanged.
[i]
[i]
[gravityform id=69 title=false description=false]
  • This field is for validation purposes and should be left unchanged.