Object tribe_events_linked_posts is undefined.

Home Forums Calendar Products Community Events Object tribe_events_linked_posts is undefined.

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1131507
    huroncounty
    Participant

    Hi there,

    I have been working on our site here: http://dev.huroncounty.ca/events/community/add

    When loading the form to submit a Community Event I receive a JavaScript error stating “tribe_events_linked_posts is undefined” even after renaming my themes tribe-events folder to tribe-events2. This causes the “Add Another Rule” button and delete icon for organizers fail to operate.

    I have pasted evens-admin.js over events-admin.min.js to try and debug. The error occurs on line 499 when trying to iterate through the “tribe_events_linked_posts” object. I wrapped the entire “for” loop with “if (typeof tribe_events_linked_posts != “undefined”) {” which seems fine, but now I can’t update correctly.

    As I don’t know what this feature really is could you please explain what this is doing and if it is a bug?

    Thanks!

    Jake

    #1131712
    Brook
    Participant

    Howdy Jake,

    I would love to help you with this.

    The linked posts that is talking about are posts like the Organizers and Venues. These are their own post_type, but obviously they are attached (linked) to the main Event post type.

    It would seem that your error is indicating that on your site there are no linked posts present. An odd thing indeed.

    I appreciate your debugging thus far. Good call on trying to rename tribe-events. Just a quick tip, if you are ever trying to debug a JavaScript file you can set SCRIPT_DEBUG to true in your wp-config.pnp to make all minified files load the nonminified versions.

    Could you take the debugging one step further for me and do a full conflict test? This guide walks you through how to test for a conflict, and then identify what is conflicting.  I am thinking there must be something somewhere causing no linked posts to appear, hopefully that will help 0 in on the cause and thus help find a fix.

    Cheers!

    – Brook

    #1131794
    huroncounty
    Participant

    This reply is private.

    • This reply was modified 9 years, 10 months ago by huroncounty.
    #1131797
    huroncounty
    Participant

    This reply is private.

    #1131817
    Brook
    Participant

    This reply is private.

    #1131979
    huroncounty
    Participant

    This reply is private.

    • This reply was modified 9 years, 10 months ago by huroncounty.
    #1131981
    huroncounty
    Participant

    This reply is private.

    #1132755
    Brook
    Participant

    This reply is private.

    #1133449
    huroncounty
    Participant

    Our HTML prototype was calling for a later version of jquery so early on in the project I de-registered jquery and registered a newer version in our functions.php to avoid potential conflicts. Unfortunately this seems to have only caused a conflict.

    With any luck everything will just work with the default jquery. Haven’t tested yet. 🙂

    #1133814
    Brook
    Participant

    Oh nice catch! Yeah our plugin is designed for the WP default version of jQuery, which is an older compatibility version.

    Let me know if you need anything else. Cheers!

    – Brook

    #1139770
    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.

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Object tribe_events_linked_posts is undefined.’ is closed to new replies.