Support

Home Forums Event Espresso Premium Registration Checkout blank page, Activating plugin breaks website

Registration Checkout blank page, Activating plugin breaks website

Posted: April 3, 2018 at 9:53 am


tnbadmin247

April 3, 2018 at 9:53 am

Hi there,

I’m having issues getting the registration page to display any content from the shortcode. At first it would display only a blank page. I read a few other threads and tried a few things:
– deactivated the plugin and activated it back;
– made sure that no other page had the shortcode;
– deleted the checkout page and created a new one;
– cleared the cache;

I finally activated wp_debug and it breaks the entire website, including WP dashboard area, and it displays an error:

An ReflectionException was thrown!   code: EE_Registry - getClass - 1198
"Class EventEspresso\core\services\cache\PostRelatedCacheManager does not exist"
click to view backtrace and class/method details 
/.../wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php   ( line no: 1198 )

Am I missing something to get the plugin activated?
Critical pages show everything is fine, and the other pages do display a little content on them (what I think is expected), but not the registration one.

This is the registration page, which comes following the event:
https://phase-two-sheenaspl.pantheonsite.io/registration-checkout/

Thanks for any help.


Tony

  • Support Staff

April 3, 2018 at 10:06 am

Hi there,

How did you upload EE onto that site? Through the plugins manager?

First, try de-activating and deleting EE and then re-upload through Dashboard -> Plugins -> Add new -> Upload plugin.

Do you know which PHP version is running on the server?


tnbadmin247

April 3, 2018 at 11:34 am

Ok, that made the error above disappear, but I still only get a blank registration page.
Trying to view the page from the Critical Pages Dashboard displays a message saying the Registration Page can not be accessed directly, which didn’t display before, so I guess it’s a start, but still blank page otherwise.

Here is a test event that I’m testing the registration for:
https://phase-two-sheenaspl.pantheonsite.io/programs/registration-seasonal-group-first-choice/


tnbadmin247

April 3, 2018 at 11:51 am

PHP 7


Josh

  • Support Staff

April 3, 2018 at 11:57 am

Hi there,

The “Registration Page can not be accessed directly” message is actually expected.

There’s a few moving parts to the issue you’re seeing, and one of them is the inclusion of the jQuery library from Google’s CDN. Ideally the included jQuery library should be bundled version that’s included with WordPress. It may be another plugin or the WP theme that’s switching the library.

Can you try temporarily switching to a default WP theme and temporarily deactivate all other plugins to help narrow down which one is loading the other library?


tnbadmin247

April 3, 2018 at 1:38 pm

Hi Josh,

Yes, weère using Foundationpress and it seems to be the only thing, all other plugins are activated and all forms and notices work normally.

Is there a way around this on the EE side? The project is in its final stages, I canèt afford to change themes at this point. Jquery tries to use ()unload is the error that I see now.

I’m also using WP-Client and it seems to have integrated fine for the sign-up form/registration form for both plugins.

Thank you very much for the help


Josh

  • Support Staff

April 3, 2018 at 2:53 pm

FoundationPress can actually use the bundled versions of jQuery. One way to make that happen is you add this function to the top of the theme’s functions.php:

function foundationpress_scripts() {

	// Enqueue the main Stylesheet.
	wp_enqueue_style( 'main-stylesheet', get_stylesheet_directory_uri() . '/dist/assets/css/' . foundationpress_asset_path( 'app.css' ), array(), '2.10.4', 'all' );

	// Enqueue Foundation scripts
	wp_enqueue_script( 'foundation', get_stylesheet_directory_uri() . '/dist/assets/js/' . foundationpress_asset_path( 'app.js' ), array( 'jquery' ), '2.10.4', true );

	// Enqueue FontAwesome from CDN. Uncomment the line below if you need FontAwesome.
	//wp_enqueue_script( 'fontawesome', 'https://use.fontawesome.com/5016a31c8c.js', array(), '4.7.0', true );

	// Add the comment-reply library on pages where it is necessary
	if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
		wp_enqueue_script( 'comment-reply' );
	}

}

add_action( 'wp_enqueue_scripts', 'foundationpress_scripts' );

Or if you prefer, the above code can be added into a site-specific plugin.


tnbadmin247

April 4, 2018 at 10:10 am

Thanks Josh for your help.

The code you provided didn’t work per se, but it lead me to finding the Google CDN call to jquery and remove it.

That being said, the registration form was still showing a blank page, no errors show up in the console for jquery, and no errors for wp_debug either.

I found an tag with the id “checkout” and it has a margin-left of -999em and pushes the entire content of the page out of the screen, tested with and without the CDN jquery and the form is there… so my guess is a styling issue now and not jquery.

Any reason why that tag is there and why does it have a -999em left margin?


tnbadmin247

April 4, 2018 at 10:11 am

Sorry, I didn’t know how html tags worked in regular comments. In my previous comment I meant I found an anchor tag:
<a> with the id checkout


Josh

  • Support Staff

April 4, 2018 at 10:42 am

You cannot just remove the CDN copy of jQuery because the theme deregisters the bundled version of jQuery provided by WordPress core.

It looks like there’s an issue with the how the .main-content div is set to display: flex:

https://slack-files.com/T02SY781D-FA1AGM05T-6ee46a1438


tnbadmin247

April 4, 2018 at 1:27 pm

Oh, my bad, I should have been clearer. I did also remove the function that deregisters jquery, so the bundled version of jquery was in place.

But again, once I noticed the CSS of the anchor tag, the jquery was irrelevant (for what I’ve tested so far*). I’m going to try tweaking the CSS.

There isn’t really any problem with the flex of the main-content, considering the whole website is rendered that way, but I do see how it can mess up the elements inside. I’ll call this a close for now, since my original problem was a blank page and now I know why, and if something else comes up I’ll come back.

Thanks a lot for your help Josh, appreciated!

The support post ‘Registration Checkout blank page, Activating plugin breaks website’ 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