Title: Variables.php
Last modified: May 24, 2021

---

# Variables.php

 *  Resolved [Dennis Barber](https://wordpress.org/support/users/dmbarber/)
 * (@dmbarber)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/variables-php/)
 * Hello!
 * While trying to debug why we were not getting an ID on upload of our .oam file
   I noticed that your variables.php file seems to be incorrectly written. You do
   not declare global $wpdb before using the variable. Also the first line just 
   outputs a boolean: defined(‘ABSPATH’);
 * Is there a reason you wrote this plugin this way?

Viewing 1 replies (of 1 total)

 *  Plugin Author [tumultinc](https://wordpress.org/support/users/tumultinc/)
 * (@tumultinc)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/variables-php/#post-14483097)
 * Hi Dennis,
 * We do have a branch with an improved variable init order that seemed to fix an
   issue when installing Hype via composer. Is that your case?
 * The branch is here: [https://github.com/tumult/hype-wordpress-plugin/tree/initvariablechange](https://github.com/tumult/hype-wordpress-plugin/tree/initvariablechange)
   and you can download that version via [https://github.com/tumult/hype-wordpress-plugin/archive/refs/heads/initvariablechange.zip](https://github.com/tumult/hype-wordpress-plugin/archive/refs/heads/initvariablechange.zip)
 * Can you let me know if that resolves the issue for you? It’s unclear why in rare
   circumstances the plugin does not work.
 * You are correct that `defined(‘ABSPATH’);` may not be necessary — if you are 
   interested in submitting a pull request that would be great: [https://github.com/tumult/hype-wordpress-plugin/tree/master](https://github.com/tumult/hype-wordpress-plugin/tree/master)

Viewing 1 replies (of 1 total)

The topic ‘Variables.php’ is closed to new replies.

 * ![](https://ps.w.org/tumult-hype-animations/assets/icon-256x256.png?rev=3409872)
 * [Tumult Hype Animations](https://wordpress.org/plugins/tumult-hype-animations/)
 * [Support Threads](https://wordpress.org/support/plugin/tumult-hype-animations/)
 * [Active Topics](https://wordpress.org/support/plugin/tumult-hype-animations/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tumult-hype-animations/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tumult-hype-animations/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [tumultinc](https://wordpress.org/support/users/tumultinc/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/variables-php/#post-14483097)
 * Status: resolved