Title: Missing global in version 1.2
Last modified: August 22, 2016

---

# Missing global in version 1.2

 *  Resolved [Jess Mann](https://wordpress.org/support/users/avranu/)
 * (@avranu)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/missing-global-in-version-12/)
 * Tested the plugin in wordpress 4.1, and everything seems to work fine.
 * However, you are missing a line of code in ecgf.php in function render_registration_form.
   The code should read:
 *     ```
       public static function render_registration_form($returnOutput = false){
           global $post;
           if($returnOutput) {
               ob_start();
           }
   
             //check to see if the page is a single event
             if (is_singular('tribe_events')) :
   
               // set some dates and times for use
               $startdatetime = tribe_get_start_date($post->ID, false, 'U'); // get the start date and time set for the event
       ```
   
 * Line 183 is omitted (global $post;), causing an error to be thrown when you use
   $post on line 191. Simply inserting the global declaration solves the problem.
 * Also, line 65 fails to check if a variable exists before testing its value, which
   results in an error being thrown. It should read:
 *     ```
       if(isset($_REQUEST['page']) && $_REQUEST['page'] === 'tribe-events-calendar-registration-export' and !is_null($_REQUEST['id'])) {
       ```
   
 * …where the first condition (isset(…)) has been added.
 * Thanks!
 * [https://wordpress.org/plugins/the-events-calendar-registration/](https://wordpress.org/plugins/the-events-calendar-registration/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [Jess Mann](https://wordpress.org/support/users/avranu/)
 * (@avranu)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/missing-global-in-version-12/#post-5768899)
 * Ugh… I think I posted this to the main wordpress support forum, when I meant 
   it to only go to the plugin’s author. Sorry about that!
 * Can someone delete or archive this thread for me? I don’t need any help on this
   issue.
 * Thank you,

Viewing 1 replies (of 1 total)

The topic ‘Missing global in version 1.2’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/the-events-calendar-registration.
   svg)
 * [The Events Calendar Gravity Forms Registration](https://wordpress.org/plugins/the-events-calendar-registration/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-events-calendar-registration/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-events-calendar-registration/)
 * [Active Topics](https://wordpress.org/support/plugin/the-events-calendar-registration/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-events-calendar-registration/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-events-calendar-registration/reviews/)

## Tags

 * [bugfix](https://wordpress.org/support/topic-tag/bugfix/)

 * 1 reply
 * 1 participant
 * Last reply from: [Jess Mann](https://wordpress.org/support/users/avranu/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/missing-global-in-version-12/#post-5768899)
 * Status: resolved