Support

Home Forums Event Espresso Premium Possible Conflict with template? Need some help.

Possible Conflict with template? Need some help.

Posted: November 8, 2012 at 6:14 pm

Viewing 21 reply threads


Bryan Wolfe

November 8, 2012 at 6:14 pm

Hi there,

I’ve installed Event Espresso on a site using GoodLayer’s Phoenix template, and I appear to be encountering a problem I can’t get to the bottom of.

When I am on the event details page and “Submit” button underneath Registration Details, the page it takes me to (the confirmation screen) is blank. If I activate the default WordPress template, the confirmation screen shows up just fine.

I’m sure you’ve encountered an issue similar to this before, so I am wondering if you couldn’t possibly give me a few ideas about why such an issue may occur.

http://designpointdev.com/WAC/classes/class-registration/


Jonathan Wilson

November 8, 2012 at 7:22 pm

Hey Bryan,

Looks like there might be some JS conflicts in the theme. Try wrapping your [ESPRESSO_EVENTS] shortcode in a [raw] tag, like this: [raw][ESPRESSO_EVENTS][/raw]

That shortcode will be in you main event registration page.

Let me know whether that fixes it for you.


Bryan Wolfe

November 9, 2012 at 9:22 am

Hi Jonathan –

When I wrap the shortcode in the raw tag, when I click the Submit button the confirmation page only displays “[raw][/raw]”.


Jonathan Wilson

November 9, 2012 at 9:46 am

Hey Bryan,

Can you try all caps for the [RAW] tag? Sorry about that.
Also, on our troubleshooting page, we have instructions on how to correct j-Query conflicts.


Bryan Wolfe

November 9, 2012 at 10:14 am

Hi Jonathan –

No luck with all caps, I will refer to the troubleshooting page.


Jonathan Wilson

November 9, 2012 at 2:11 pm

Bryan,

Let me know whether you are able to resolve the issue, or if you need more assistance.


Bryan Wolfe

November 9, 2012 at 2:53 pm

Jonathan –

Thanks for the response… so far I’ve had no luck. I’ve tried other themes by the same developer, and a theme from a different developer, and none have worked. When I go back to a stock WordPress template, all is fine. So it’s definitely something with the theme I am using.

It appears that the event espresso plugin just isn’t loaded when it tries to access the registration page. I don’t believe it’s a javascript conflict, I have no other plugins active, etc.

Event Espresso works in other places… the [EVENT_LIST] shortcode works fine, as shown here:
http://designpointdev.com/WAC/classes/register/

You can get to the details of an event, but as soon as you click submit, that’s when it breaks when trying to load the page with the main [ESPRESSO_EVENTS] shortcode on it (in this case, the “Event Registration” page.


Bryan Wolfe

November 9, 2012 at 3:16 pm

The problem may be larger than I thought… this isn’t working either for some reason.

http://designpointdev.com/WAC/classes/test/


Bryan Wolfe

November 9, 2012 at 3:25 pm

nevermind, that last post was user error, but the previous post still stands. thanks.


Josh

  • Support Staff

November 9, 2012 at 3:42 pm

Hi Bryan,

Can you look in the theme’s functions.php file (or possibly other functions files that are included in the theme) for code that looks like this:

//Disable Automatic formatting in WordPress posts
function my_formatter($content) {
    $new_content = '';
    $pattern_full = '{(\[raw\].*?\[/raw\])}is';
    $pattern_contents = '{\[raw\](.*?)\[/raw\]}is';
    $pieces = preg_split($pattern_full, $content, -1, PREG_SPLIT_DELIM_CAPTURE);

    foreach ($pieces as $piece) {
        if (preg_match($pattern_contents, $piece, $matches)) {
            $new_content .= $matches[1];
        } else {
            $new_content .= wptexturize(wpautop($piece));
        }
    }
    return $new_content;
}

remove_filter('the_content', 'wpautop');
remove_filter('the_content', 'wptexturize');

add_filter('the_content', 'my_formatter', 99);

If you find code just like the above, you can try commenting it out or even removing it.


Bryan Wolfe

November 9, 2012 at 4:16 pm

Josh –

I don’t see any code like that in the functions.php file, or any other files.


Josh

  • Support Staff

November 9, 2012 at 4:39 pm

Thanks for checking. Another thing you can try is to set the option to skip the confirmation page in Event Espresso>General Settings. It will go directly to the payment page when the registrant submits the registration form.


Bryan Wolfe

November 9, 2012 at 4:49 pm

Hi Josh –

When I do that, I get the following error:

“An error occured. The primary attendee could not be found.”


Josh

  • Support Staff

November 9, 2012 at 4:57 pm

Hi Bryan,

When I’m troubleshooting conflicts with themes, what I’ll do is go through the theme’s functions files and if any look like they are suspect (like overriding core WordPress functionality, as the one I posted above eg. remove_filter ‘the_content’) I’ll comment out the entire function and test again. Each function can be viewed as a separate plugin that is executing code somewhere. With a little trial and error, you can narrow down the function that’s causing the conflict. If you find it, please contact the theme author and let them know what you’ve found.


Bryan Wolfe

November 9, 2012 at 5:12 pm

Josh –

Gotcha. So at this point it sounds like we’ve exhausted our free options.

Is that the kind of support that requires a priority ticket? If so, is that the kind of thing you can usually flush out in 30 minutes or so?


Josh

  • Support Staff

November 12, 2012 at 9:06 am

Hi Bryan,

It is something that we can usually find in 30 minutes, with the exception being a case where the theme has a large number of framework-like files where we’d have to comb through each one. That’s more of an exception as most themes are not built that way. If you decide to have us look through the theme, we will need FTP access and wp admin access, which you can send if you purchase a priority support token.


Bryan Wolfe

November 12, 2012 at 4:16 pm

Hi Josh –

I just purchased a priority support token, will send the info over now. Thanks.


Bryan Wolfe

November 12, 2012 at 4:29 pm

Hi Josh –

I just sent you a PM so I can get you set up with credentials.


Josh

  • Support Staff

November 12, 2012 at 6:16 pm

Hi Bryan,

In line 86 of page.php of your theme it reads:

$content = apply_filters('the_content', $content);

I changed it to this:

if (!is_page( 66 )){
$content = apply_filters('the_content', $content);
}

What that will do is only let the theme apply its filters to the content on all the other pages except the page with the ID of 66, which is the page with the [ESPRESSO_EVENTS] shortcode.

You will need to adjust some of the CSS or try another themeroller option, because the confirmation buttons are displaying white on white. Let me know if you need further help on that one. You may even want to opt to skip the confirmation page, so if you do, you’ll likely not need to make any further customizations.


Bryan Wolfe

November 13, 2012 at 9:39 am

Josh –

Thanks so much! I appreciate your help. You guys provide excellent customer service.


Bryan Wolfe

November 13, 2012 at 10:20 am

I have a follow-up question, unrelated to the issue you guys just resolved.

I am unable to upgrade Event Espresso through the WordPress Admin, and it’s saying I need a valid license key to upgrade. I have a valid license key and it’s correct in the Event Espresso settings. Do I need to request a new key to upgrade, or should I just download the latest release and install?


Bryan Wolfe

November 13, 2012 at 11:00 am

^disregard last post, reinstalled plugin.

Viewing 21 reply threads

The support post ‘Possible Conflict with template? Need some help.’ 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