Home › Forums › Calendar Products › Events Calendar PRO › Merge similar events doesn't work anymore
- This topic has 7 replies, 2 voices, and was last updated 10 years, 7 months ago by
Nico.
-
AuthorPosts
-
August 30, 2015 at 12:09 pm #1000310
Oliver
ParticipantHi,
to merge similar events an option in the settings can be activated by commenting this line in tribe-options-general.php:
//’conditional’ => ( $tec->getOption( ‘organizer_venue_amalgamation’, 0 ) < 1 ),https://www.dropbox.com/s/0bll3siod0llawg/Screenshot%202015-08-30%2021.06.41.png?dl=0
To make the button visible still works, but the ability to merge doesn’t work anymore.
Has this feature maybe deprecated? We used this a lot on our website to get rid of duplicate events.Best regards,
Oliver-
This topic was modified 10 years, 7 months ago by
Oliver.
August 31, 2015 at 1:15 pm #1000600Nico
MemberHi Oliver,
Glad to be helping you out with this one also!
Not sure about your screenshot because my German is very very very basic π but that option is to ‘Merge duplicate Venues & Organizers’ not to merge events. It was intended to fix possible duplicates generated when updating from 2.x to 3.0. Maybe the translation is showing a wrong description of this option?
Please let me know about it,
Best,
NicoAugust 31, 2015 at 2:49 pm #1000675Oliver
ParticipantSorry, my fault. I meant to merge “duplicate venues and organizers” (it was late when posting this).
And this is not working anymore :-()Any idea why? Is it deprecated?
Regards,
Oliver-
This reply was modified 10 years, 7 months ago by
Oliver.
September 2, 2015 at 1:18 pm #1001413Nico
MemberHi Oliver,
Oh, thanks for clarifying that. This feature is not deprecated, but you’ve discovered a bug in it!
There’s an encoding issue in the link for the ‘Merge Duplicates’ button, that’s why it doesn’t work. Take a look:
Actual link - wrong: wp-admin/edit.php?post_type=tribe_events&_wpnonce=b3dbee92de#038;page=tribe-events-calendar&amalgamate=1
Correct link: wp-admin/edit.php?post_type=tribe_events&_wpnonce=b3dbee92de&page=tribe-events-calendar&amalgamate=1
There’s an encoding issue after the _wpnonce value, hopefully if you change that manually and execute that URL, it will work. When this runs it sets the option ‘organizer_venue_amalgamation’ to 1, which prevents the button from showing up again. So if you need the option to be visible again just reset the option value, you can do by adding this code to your functions.php file:
add_action( 'admin_init', 'reset_amalgamator' );
function reset_amalgamator ( ) {
$events = Tribe__Events__Main::instance();
$events->setOption( 'organizer_venue_amalgamation', 0 );
}
This code will run every time you access the WP-Admin area, so just add this when you need to reactivate the button!
Thanks a lot for reporting this bug, a fix for this will be included in the upcoming release, which will see the light next week or so π
Please let me know if you can run it manually for now,
Best,
NicoSeptember 2, 2015 at 2:43 pm #1001474Oliver
ParticipantHi Nico!
the snippets for always displaying the “Merge Duplicates” button works great, thanks! π
To solve the bug: in which file do I need to change the link?
Best regards,
OliverSeptember 3, 2015 at 7:07 pm #1001989Nico
MemberHey Oliver,
Great to hear the snippet worked as expected π
You can take a look in the fix PR for this: https://github.com/moderntribe/the-events-calendar/pull/291. Bear in mind this will be part of the upcoming release, coming out most probably next week.
Thanks once again for reporting this! You rock!
Please let me know if there’s anything else I can help you with,
Best,
NicoSeptember 4, 2015 at 8:55 am #1002144Oliver
ParticipantThanks Nico!
I guess I will wait for the update π
Have a nice weekend!
OliverSeptember 4, 2015 at 1:02 pm #1002255Nico
MemberOliver,
Thank you π
Iβll go ahead and close out this thread, but if you need help with anything else please donβt hesitate to create a new one and we will be happy to assist you.
Have a great weekend yourself,
Cheers,
Nico -
This topic was modified 10 years, 7 months ago by
-
AuthorPosts
- The topic ‘Merge similar events doesn't work anymore’ is closed to new replies.
