Home › Forums › Calendar Products › Community Events › Object tribe_events_linked_posts is undefined.
- This topic has 11 replies, 4 voices, and was last updated 9 years, 9 months ago by
huroncounty.
-
AuthorPosts
-
June 24, 2016 at 8:23 am #1131507
huroncounty
ParticipantHi 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
June 24, 2016 at 12:24 pm #1131712Brook
ParticipantHowdy 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
June 24, 2016 at 5:44 pm #1131794huroncounty
ParticipantThis reply is private.
-
This reply was modified 9 years, 10 months ago by
huroncounty.
June 24, 2016 at 5:58 pm #1131797huroncounty
ParticipantThis reply is private.
June 24, 2016 at 10:27 pm #1131817Brook
ParticipantThis reply is private.
June 25, 2016 at 11:58 am #1131979huroncounty
ParticipantThis reply is private.
-
This reply was modified 9 years, 10 months ago by
huroncounty.
June 25, 2016 at 12:08 pm #1131981huroncounty
ParticipantThis reply is private.
June 28, 2016 at 12:00 am #1132755Brook
ParticipantThis reply is private.
June 29, 2016 at 8:47 am #1133449huroncounty
ParticipantOur 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. 🙂
June 29, 2016 at 11:12 pm #1133814Brook
ParticipantOh 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
July 14, 2016 at 9:35 am #1139770Support Droid
KeymasterThis 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. -
This reply was modified 9 years, 10 months ago by
-
AuthorPosts
- The topic ‘Object tribe_events_linked_posts is undefined.’ is closed to new replies.
