Event attendee registration does not work with X Theme

Hi,

I have the same issue as in https://theme.co/apex/forum/t/attendee-registration-page-404-x-theme-only/49175

My site does not collect attendee registration data with The Event Calendar Pro + Event Tickets Plus by Modern Tribe.

With the latest Wordpress theme it works, but not with X Theme.

I’m using Event Tickets Plus with The Events Calendar to sell tickets and collect attendee information. Normally, before the checkout, users are sent to the Attendee Registration page to submit information for each ticket holder. This functions correctly using any of the default WordPress themes.

When I switch to the X theme, however, this page is empty with only a text message, but no form fields.

Thank you & greetings,
Hannes

Hi Hannes,

Thanks for writing in! We do not provide support for 3rd party plugins or scripts as it would be outside the scope of our support. I would suggest you to contact the plugin authors directly to escalate your issue.

As to troubleshooting your issue, you can also add the following code into your wp-config.php file by replacing the line you already have define('WP_DEBUG', false);.

define( 'WP_DEBUG', true ); 
if ( WP_DEBUG ) {
    define( 'WP_DEBUG_LOG', true );
    define( 'WP_DEBUG_DISPLAY', false );
    @ini_set( 'display_errors', 0 );
}

This will create an error log file under your wp-content directory, with the name of debug.log. Once you perform some actions/tasks on your site (for example, test the page that integrates events calendar), it will record any errors in your error log which will help you to identify the cause.

I would also suggest you to check the PHP Version running on your server. We recommend PHP v5.6.x or higher to avoid incompatibility issues. Some hosts allows to switch PHP versions within the hosting control panel. If not, you can contact your hosting provider and ask them to update. I would also suggest you to switch to a different version such as PHP 7.2.x.

Thanks!

Thank you.

The notice below I get on every page on my development server.

Notice: Undefined index: WP_Widget_Recent_Comments in /mnt/web011/e1/71/57181971/htdocs/DEVELOPMENT/…/wordpress/wp-content/themes/x/framework/functions/setup.php on line 213

On the production server I get another notice ONLY on the problematic page /attendee-registration/:

[host …] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /is/htdocs/…/wordpress/wp-includes/post-template.php on line 284

On the production server caching is not active.

Since it works with the newest Wordpress theme Twenty Nineteen, I do not understand your attitude. Your support has helped me very often and always reliably. It is very incomprehensible to me that you are not responsible in such a case.

Greetings,
Hannes

Hello Hannes,

You are seeing a PHP Notices:

Notice: Undefined index: WP_Widget_Recent_Comments in /mnt/web011/e1/71/57181971/htdocs/DEVELOPMENT/.../wordpress/wp-content/themes/x/framework/functions/setup.php on line 213
[host ...] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /is/htdocs/.../wordpress/wp-includes/post-template.php on line 284

A php notices is a message that a variable is not yet initialize or currently set to null. This usually appear when debug mode is enabled. Please disable debug mode instead. You can do this by opening wp-config.php and adding


define('WP_DEBUG', false);

/* That's all, stop editing! Happy blogging. */

When you revisit the page, you should no longer be seeing those PHP notices.

Please let us know how it goes.

The notices are not the problem.
I activated debug mode as your colleague suggested.
Please read my first post and further to understand what the issue is here.
Thank you

Hi @salilou,

In that case, please provide the correct login URL, it’s currently redirecting me to a page that saying Du musst dich anmelden, um auf das Back End zugreifen zu können..

Then please allow me to deactivate the plugins and themes so I could see how it should work for first hand.

Thanks!

I send you the credentials for a non-productive site in a secure note
There you can do your tests and changes
Thank you

Hi @salilou,

It seems to be using an archive template, and when displayed on the archive page, it will then generate an excerpt instead of actual content. Please go to this setting and choose proper template

Try the Blank of Layout templates, the standard will default back to archive.

Thanks!

Thank you.
I have set “Blank - Container Header Footer” and “Layout - Fullwidth” - without success.
I have saved permalinks after each change.
Could you make it work with one of these settings?

Hi @salilou,

I checked the coding and it appears it’s not following the configured template. The code is still the same, not even the default Event default template is being followed. It still uses the archive template of the theme. Though, it works well on other parts of the event, not just on that attendee registration which means, it’s probably not properly integrated to the main event plugin. I recommend contacting the attendee plugin author and tell them that it should follow the template set in the configuration.

The reason it’s working on Twenty Nineteen theme is that it has minimal templates and layout that doesn’t require a dedicated template. If the attendee plugin will not follow the main event configuration then that option has no use at all, it’s clear that it’s added there to add compatibility to the theme it’s running for. That setting should be applied regardless of the addons and theme.

Thanks!

Thank you very much, I have forwarded your message to the Modern Tribe support and hope they solve this issue.
Thank you for your investigation and have a nice weekend!
Hannes

You are most welcome. You have nice weekend too. :slight_smile:

Hey,

I managed to resolve this issue by editing the following:

In:

wp-content/themes/x/framework/views/global
_content.php

Changed:

if ( is_singular() || $is_full_post_content_blog) :

if ( is_singular() || $is_full_post_content_blog || get_post_type()==“page” ) :

Cheers

Thanks for sharing @danashcroft :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.