Title: error after upgrade!
Last modified: August 21, 2016

---

# error after upgrade!

 *  [sopedro](https://wordpress.org/support/users/sopedro/)
 * (@sopedro)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/error-after-upgrade-12/)
 * Hi Themeloy,
 * Width degub enabled i get a notice in events-block.php line 27 of an undefined
   variable $id.
 * BTW, with this update i have to rectify all my templates because the new features
   and the translation system.
 * Regards,
 * Pedro
 * [https://wordpress.org/plugins/sportspress/](https://wordpress.org/plugins/sportspress/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Thread Starter [sopedro](https://wordpress.org/support/users/sopedro/)
 * (@sopedro)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/error-after-upgrade-12/#post-5034245)
 * One more thing,
 * I’m listing the events below venue map, but how can i list only the events of
   that venue.
 * Right now i’m getting a list of all events in all venues.
 * Regards,
 *  Plugin Author [ThemeBoy](https://wordpress.org/support/users/themeboy/)
 * (@themeboy)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/error-after-upgrade-12/#post-5034246)
 * Hi Pedro,
 * Are you loading event-blocks.php via a page template? The template requires an
   id, so something like this should work:
 *     ```
       sp_get_template( 'event-blocks.php', array( 'id' => get_the_ID() ) );
       ```
   
 * The translation system has been changed to eliminate complicated functions. Replacing
   all instances of
 *     ```
       SP()->text->string( $string )
       ```
   
 * with
 *     ```
       __( $string, 'sportspress' )
       ```
   
 * will bring the template up to date.
 * Please let me know if there are any other new features that are affecting the
   templates. I’d be happy to help you.
 *  Plugin Author [ThemeBoy](https://wordpress.org/support/users/themeboy/)
 * (@themeboy)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/error-after-upgrade-12/#post-5034247)
 * With the venue events, is this in the taxonomy-venue.php template?
 *  Thread Starter [sopedro](https://wordpress.org/support/users/sopedro/)
 * (@sopedro)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/error-after-upgrade-12/#post-5034249)
 * You’re the man,
 * The solution you gave me work very well, thanks.
    I don’t know if i did the right
   thing, but i change the taxonomy-venue.php to place a map in full screen, than
   in venue-map.php i list the events below map.
 * Then i create another file venue-map-list.php and i call this file from event-
   venue in this way `<?php sp_get_template( 'venue-map-list.php', array( 'meta'
   => $meta ) ); ?>`, so i can template this file too…
 * Note: I like the new translation system, more simple to use as wordpress. 🙂
 * Regards,
 * Pedro
 *  Thread Starter [sopedro](https://wordpress.org/support/users/sopedro/)
 * (@sopedro)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/error-after-upgrade-12/#post-5034263)
 * Hi Themeloy,
 * Just one suggestion, in event-performance.php i moved the if condition `<?php
   if ( $has_players && $show_players ): ?>` outside the table, without this hack,
   even if i switch off the players from events it shows an empty table.
 * Regards,
 *  Plugin Author [ThemeBoy](https://wordpress.org/support/users/themeboy/)
 * (@themeboy)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/error-after-upgrade-12/#post-5034306)
 * Hi Pedro,
 * That sounds like a good solution.
 * Regarding the event performance table, the reason the if condition is inside 
   the table is because we still want to show the total performance even when individual
   players aren’t displayed. That way, you can add performance per team, like fouls,
   attempts, etc.
 * Glad to hear you like the new translation system too 🙂

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘error after upgrade!’ is closed to new replies.

 * ![](https://ps.w.org/sportspress/assets/icon-256x256.png?rev=1252005)
 * [SportsPress - Sports Club & League Manager](https://wordpress.org/plugins/sportspress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sportspress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sportspress/)
 * [Active Topics](https://wordpress.org/support/plugin/sportspress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sportspress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sportspress/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [ThemeBoy](https://wordpress.org/support/users/themeboy/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/error-after-upgrade-12/#post-5034306)
 * Status: not resolved