Support » Plugin: Eventbrite API » Public event not showing, Keyring test = ok, API Search = ok

Viewing 9 replies - 1 through 9 (of 9 total)
  • Same problem here!

    Plugin Author Automattic

    (@automattic)

    Hi,

    Looking at that event page, it doesn’t have the Events page template assigned – can you verify that again? A page with the template successfully assigned will have a page-template-eventbrite-index body class.

    Hi, I am 100% sure the Events Template is attached to this page, because when we edit code in eventbrite-index.php, the changes are visible immediately.
    We now have a different issue that we have reported to WPML: https://wpml.org/forums/topic/wpml-breaks-eventbrite-template-again/

    Plugin Author Automattic

    (@automattic)

    Hm, OK, so something else may be affecting the body classes – either way, it looks like we’ve got the test event. Are you seeing any other issues?

    puregraphx

    (@puregraphx)

    Yes, we now see the test event because of some code changes in the WPML files

    diff --git a/classes/translations/class-wpml-post-element.php b/classes/translations/class-wpml-post-element.php
    index a93c8bf..e33a32b 100644
    --- a/classes/translations/class-wpml-post-element.php
    +++ b/classes/translations/class-wpml-post-element.php
    @@ -21,7 +21,10 @@ class WPML_Post_Element extends WPML_Translation_Element implements WPML_Duplica
                            return $post->post_type;
                    }
      
    -               return $this->get_wp_object()->post_type;
    +               $post = $this->get_wp_object();
    +               if ( $post ) {
    +                       return $post->post_type;
    +               }
            }
      
            function get_wpml_element_type() {
    diff --git a/classes/translations/class-wpml-translation-element.php b/classes/translations/class-wpml-translation-element.php
    index f1473ec..17ce183 100644
    --- a/classes/translations/class-wpml-translation-element.php
    +++ b/classes/translations/class-wpml-translation-element.php
    @@ -115,9 +115,6 @@ abstract class WPML_Translation_Element extends WPML_SP_User {
                    if ( is_wp_error( $element ) ) {
                            throw new UnexpectedValueException( $element->get_error_message() );
                    }
    -               if ( false === (bool) $element ) {
    -                       throw new UnexpectedValueException( 'Element does not exists.' );
    -               }
      
                    return $this->get_type( $element );
            }
    
    Plugin Author Automattic

    (@automattic)

    Hi puregraphx, are you still having issues? The test event looks like it’s past, so it won’t show up now regardless.

    puregraphx

    (@puregraphx)

    Hi,
    no issues thanks to the WPML code changes.

    Plugin Author Automattic

    (@automattic)

    Great, glad it got fixed up.

    jasper1311

    (@jasper1311)

    Thank you all!!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Public event not showing, Keyring test = ok, API Search = ok’ is closed to new replies.