Skip Navigation

Waiting for author

Reported for: إضافة WPML Multilingual CMS 4.5.14

Topic Tags: Compatibility

Overview of the issue

The Events Calendar PRO plugin introduced a new feature – Series events – which is only partially compatible with WPML at the moment. We are working closely with the author in order to achieve full compatibility for the following issues soon:

  • When using The Event Calendar PRO shortcode to display venues, cities, organizers, etc. they aren’t shown in the front-end.
  • Google’s map isn’t displayed on the first page load, you need to refresh the page.

Workaround

Please, make a full backup of your site before proceeding.

Open the …./wp-content/plugins/the-events-calendar/src/Tribe/Integrations/WPML/Meta.php. file and make the following two modifications.

  1. Change:
    use Tribe__Events__Main as Main;
    

    To:

    use Tribe__Events__Main as Main;
    use TEC\Events\Custom_Tables\V1\Models\Occurrence;
    
  2. And change:
    		if (!empty($_POST)) {
    			return $value;
    		}
    

    To:

    		if (!empty($_POST)) {
    			return $value;
    		}
    
    		if (tribe()->getVar('ct1_fully_activated')) {
    			$object_id = Occurrence::normalize_id($object_id);
    		}
    
    

6 ردود إلى “The Events Calendar PRO - Recurring events, venue details and maps issues in series”

  1. Prerequisites: I saw, I have no amount of words I can translate, so how shall I make a real test at the end?

    Testing your code
    1) Hi, I have installed the WPML Plugin
    2) I made all of the above changes
    3) I activated the WPML
    4) I installed the “WPML Multilingual CMS” and activated it

    Results
    a) The page is still functional and working fine
    b) I cant setup anything in WPML, there is no wizzard , nothing showing up to setup something

    So whats the next Step?

  2. Fatal error: Uncaught Error: Class "Occurrence" not found in /homepages/43/d889037567/htdocs/clickandbuilds/WordPress/TangoCMS/wp-content/plugins/the-events-calendar/src/Tribe/Integrations/WPML/Meta.php:38 Stack trace: #0 /homepages/43/d889037567/htdocs/clickandbuilds/WordPress/TangoCMS/wp-content/plugins/the-events-calendar/common/vendor/lucatume/di52/src/tad/DI52/closuresSupport.php(31): Tribe__Events__Integrations__WPML__Meta->translate_post_id(NULL, 3, '_wp_suggested_p...', false) #1 /homepages/43/d889037567/htdocs/clickandbuilds/WordPress/TangoCMS/wp-includes/class-wp-hook.php(310): {closure}(NULL, 3, '_wp_suggested_p...', false) #2 /homepages/43/d889037567/htdocs/clickandbuilds/WordPress/TangoCMS/wp-includes/plugin.php(205): WP_Hook->apply_filters(NULL, Array) #3 /homepages/43/d889037567/htdocs/clickandbuilds/WordPress/TangoCMS/wp-includes/meta.php(632): apply_filters('get_post_metada...', NULL, 3, '_wp_suggested_p...', false, 'post') #4 /homepages/43/d889037567/htdocs/clickandbuilds/WordPress/TangoCMS/wp-content/plugins/real-cookie-banner-pro/vendor/devowl-wp/utils/src/FixInvalidJsonInDb.php(141): get_metadata_raw('post', 3, '_wp_suggested_p...', false) #5 /homepages/43/d889037567/htdocs/clickandbuilds/WordPress/TangoCMS/wp-content/plugins/real-cookie-banner-pro/vendor/devowl-wp/utils/src/FixInvalidJsonInDb.php(74): DevOwl\RealCookieBanner\Vendor\MatthiasWeb\Utils\FixInvalidJsonInDb->get_metadata_raw('post', 3, '_wp_suggested_p...', false) #6 /homepages/43/d889037567/htdocs/clickandbuilds/WordPress/TangoCMS/wp-includes/class-wp-hook.php(308): DevOwl\RealCookieBanner\Vendor\MatthiasWeb\Utils\FixInvalidJsonInDb->get_metadata(NULL, 3, '_wp_suggested_p...', false, 'post') #7 /homepages/43/d889037567/htdocs/clickandbuilds/WordPress/TangoCMS/wp-includes/plugin.php(205): WP_Hook->apply_filters(NULL, Array) #8 /homepages/43/d889037567/htdocs/clickandbuilds/WordPress/TangoCMS/wp-includes/meta.php(632): apply_filters('get_post_metada...', NULL, 3, '_wp_suggested_p...', false, 'post') #9 /homepages/43/d889037567/htdocs/clickandbuilds/WordPress/TangoCMS/wp-includes/meta.php(571): get_metadata_raw('post', 3, '_wp_suggested_p...', false) #10 /homepages/43/d889037567/htdocs/clickandbuilds/WordPress/TangoCMS/wp-includes/post.php(2490): get_metadata('post', 3, '_wp_suggested_p...', false) #11 /homepages/43/d889037567/htdocs/clickandbuilds/WordPress/TangoCMS/wp-admin/includes/class-wp-privacy-policy-content.php(69): get_post_meta(3, '_wp_suggested_p...') #12 /homepages/43/d889037567/htdocs/clickandbuilds/WordPress/TangoCMS/wp-includes/class-wp-hook.php(308): WP_Privacy_Policy_Content::text_change_check('') #13 /homepages/43/d889037567/htdocs/clickandbuilds/WordPress/TangoCMS/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #14 /homepages/43/d889037567/htdocs/clickandbuilds/WordPress/TangoCMS/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #15 /homepages/43/d889037567/htdocs/clickandbuilds/WordPress/TangoCMS/wp-admin/admin.php(175): do_action('admin_init') #16 /homepages/43/d889037567/htdocs/clickandbuilds/WordPress/TangoCMS/wp-admin/plugins.php(10): require_once('/homepages/43/d...') #17 {main} thrown in /homepages/43/d889037567/htdocs/clickandbuilds/WordPress/TangoCMS/wp-content/plugins/the-events-calendar/src/Tribe/Integrations/WPML/Meta.php on line 38
    

    There has been a critical error on this website. Please check your site admin email inbox for instructions.

    Learn more about troubleshooting WordPress.

    • Thank you for your report, however I am not able to reproduce it.
      Could you please open a ticket in our support forum and ask for my feedback directly so I can investigate it?
      You can also add your ticket here.

  3. Hi Andrès,
    I cant make it currently, I dont have enough time.
    But your colleagues still have Admin access to my webpage and can sandbox the site to check for yourself.

    regards Andi

ترك رد

Please stay on topic and be respectful to others. If you need help with issues not related to this post, use our Support Forum to start a chat or submit a ticket.

يمكنك استخدام هذه العلامات:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>