Move the RSVP Form Problem

Home Forums Ticket Products Event Tickets Plus Move the RSVP Form Problem

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1035825
    Dan Feeley
    Participant

    I was using this example to move the event template RSVP form:

    How to move the RSVP form?

    It does move the form however with debugging on I see the following error:

    Notice: wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in C:\Program Files (x86)\Ampps\www\wp-includes\functions.php on line 3622

    #1036845
    Josh
    Participant

    Hey Dan,

    Thanks for reaching out to us!

    Looking at the error, does the error only display after you’ve made the change from the previous thread? If you remove that snippet, does the error go away? I only ask because it doesn’t appear that the snippet would have any impact on the enqueueing of resources.

    Thanks!

    #1036867
    Dan Feeley
    Participant

    I agree, that’s the part that threw me as well but if I remove the snippet the error goes away.

    To be sure I also tested it with WordPress Twenty Fifteen theme and only WooCommerce, Events Calendar, and Event Tickets enabled. If I add that snippet, I get the error (with debugging enabled).

    #1038054
    Josh
    Participant

    Hey Dan,

    Thanks for following up here.

    I’ve tried the code in my local install, however I’m not getting the same error that you’ve posted. Are you using any additional debugging plugins on your install?

    Also, does the issue persist if you switch to a default theme and add the snippet there?

    Thanks!

    #1038286
    Dan Feeley
    Participant

    This reply is private.

    • This reply was modified 10 years, 4 months ago by Dan Feeley.
    #1039336
    Josh
    Participant

    Hey Dan,

    Thanks for following up. To verify, this is the snippet that you’re using on the site?

    
    if (class_exists('Tribe__Tickets__RSVP')) {
    remove_action( 'tribe_events_single_event_after_the_meta', array( Tribe__Tickets__RSVP::get_instance(), 'front_end_tickets_form' ), 5 );
    add_action( 'tribe_events_single_event_before_the_meta', array( Tribe__Tickets__RSVP::get_instance(), 'front_end_tickets_form' ), 5 );
    }
    
    #1039360
    Dan Feeley
    Participant

    Yes, that is correct.

    #1041681
    Josh
    Participant

    Hey Dan,

    I reset all of my content and updated my TwentyFifteen theme and retested the snippet. I was able to recreate the issue that you’re describing. Reviewing the code I didn’t see anything on the surface the seemed out of place that would be causing this.

    I’ve created an internal bug ticket to track this issue and you’ll be notified here as we make progress on this one.

    Thanks!

    #1076228
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

    #1088741
    Leah
    Member

    Hello,

    Thank you for reporting this issue. We weren’t able to get a fix for it into our upcoming release (4.1). However, please know that the problem is still on our radar and is ticketed within our system to be addressed in a future maintenance release. We’ll do our best to keep you posted when we are able to get a solution in place. Thank you for your patience while we improve and expand our plugins.

    Best,
    Leah

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Move the RSVP Form Problem’ is closed to new replies.