Support

Home Forums Event Espresso Premium Warning message after adding Waitlist feature

Warning message after adding Waitlist feature

Posted: May 5, 2017 at 9:27 am

Viewing 5 reply threads


Bosworthsgc

May 5, 2017 at 9:27 am

Hi

I have followed instructions to add a waitlist feature to our bookings system

After doing this I have the following warning message appear

The admin page for was not correctly setup because it is using an older method for integrating with Event Espresso Core. This means that full functionality for this component is not available. This error message usually appears with an Add-on that is out of date. Make sure you update all your Event Espresso 4 add-ons to the latest version to ensure they have necessary compatibility updates in place.

Can this be dismissed or is there a problem with the code I have added?

Thanks
Jonathan


Josh

  • Support Staff

May 5, 2017 at 9:46 am

May I ask which instructions for a waitlist feature did you follow?


Bosworthsgc

May 5, 2017 at 9:52 am

https://eventespresso.com/wiki/using-ninja-forms-to-create-wait-lists-for-your-events/


Josh

  • Support Staff

May 5, 2017 at 10:06 am

OK there’s an error in that code, and you fix it by changing:

if( method_exists( Ninja_Forms(), 'display') ) {
to:
if( method_exists( 'Ninja_Forms', 'display') ) {


Bosworthsgc

May 8, 2017 at 2:45 am

Hi Josh

I have changed this but the error message is still showing

I have this in a site specific plugin along with some other code you had previously supplied . I will paste it below – perhaps you could confirm if I have added the two pieces of code correctly?

Thanks

<?php
/*
Plugin Name: Site plugin for bosworthsgc.co.uk
Description: Site specific code for bosworthsgc.co.uk
*/
/* Begin Adding Functions Below This Line; Do not include an opening PHP tag as this sample code already includes one! */

function ee_mer_change_event_list_url(){
return ‘https://www.bosworthsgc.co.uk/our-events/&#8217;;
}

add_filter( ‘FHEE__EED_Multi_Event_Registration__set_definitions__events_list_url’, ‘ee_mer_change_event_list_url’ );

//* Please do NOT include the opening php tag, except of course if you’re starting with a blank file

// Display a contact form when the event is sold out
// to be used as a waiting list
function ee_espresso_clean_event_status( $event ) {
//$event = EEH_Event_View::get_event( $EVT_ID );
$status = $event instanceof EE_Event ? $event->get_active_status() : ‘inactive’;
return $status;
}

function ee_special_sold_out_message( $EVT_ID, $event ) {

//Set the ID of the Ninja Form you wish to call here.
$ninja_forms_id = 3;

//Check if the event is sold out.
if ( ee_espresso_clean_event_status( $event ) == ‘DTS’ ) {
if( method_exists( ‘Ninja_Forms’, ‘display’) ) {
//Using Ninja Forms v3+
Ninja_Forms()->display( $ninja_forms_id );
} elseif( function_exists( ‘ninja_forms_display_form’ ) ) {
//Using a previous version of Ninja Forms
ninja_forms_display_form( $ninja_forms_id );
}
}
}
add_action( ‘AHEE__ticket_selector_chart__template__after_ticket_selector’, ‘ee_special_sold_out_message’, 10, 2 );

/* Stop Adding Functions */


Tony

  • Support Staff

May 8, 2017 at 3:41 am

When posting code it is recommend to create a gist or pastebin and post the URL here for us to view.

However that code does not set up any admin pages, so it is unlikely that code is causing the notice mentioned, try disabling the plugin and see if the notice remains.

Are all of your EE add-on’s up to date?

Viewing 5 reply threads

The support post ‘Warning message after adding Waitlist feature’ 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