Title: Getting php undefined variable errors in logs
Last modified: November 25, 2019

---

# Getting php undefined variable errors in logs

 *  Resolved [cito](https://wordpress.org/support/users/cito/)
 * (@cito)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/getting-php-undefined-variable-errors-in-logs/)
 * I was checking apache’s error.log and noticed I’ve been getting these undefined
   variable php errors that refer to 3 different locations in one file, lines 405,
   465, and 466.
 * I quickly noticed what the cause was for these 3 errors to repeat in the log.
   In my WordPress when I go to my plugins list at the top you know where the links
   for (all, active, inactive) are there is also “must-use” to right of inactive.
   When checking “must use” just clicking the word must-use is what is causing these
   3 error lines referring to 3 different locations in a file to repeat in the error.
   log.
 * >  PHP Notice: Undefined variable: bpspro_version in /var/www/wordpress/wp-content/
   > plugins/bulletproof-security/admin/includes/admin.php on line 465, referer:
   > [http://<removed>/wp-admin/plugins.php?plugin_status=mustuse](http://<removed>/wp-admin/plugins.php?plugin_status=mustuse)
   > PHP Notice: Undefined variable: bpspro_version in /var/www/wordpress/wp-content/
   > plugins/bulletproof-security/admin/includes/admin.php on line 466, referer:
   > [http://<removed>/wp-admin/plugins.php?plugin_status=mustuse](http://<removed>/wp-admin/plugins.php?plugin_status=mustuse)
   > PHP Notice: Undefined variable: tag in /var/www/wordpress/wp-content/plugins/
   > bulletproof-security/admin/includes/admin.php on line 405, referer: [http://<removed>/wp-admin/plugins.php?plugin_status=mustuse](http://<removed>/wp-admin/plugins.php?plugin_status=mustuse)
 * Is there a simple fix I could maybe do by editing the file or whatnot?
 * Anhow, thanks for any info.

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

 *  Plugin Author [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/getting-php-undefined-variable-errors-in-logs/#post-12175031)
 * A php undefined error is typically a nick nack issue. We will take care of these
   errors in the next BPS plugin release. You can just ignore these php errors for
   now.
 *  Thread Starter [cito](https://wordpress.org/support/users/cito/)
 * (@cito)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/getting-php-undefined-variable-errors-in-logs/#post-12185979)
 * Ah okay, thank you
 *  Plugin Author [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/getting-php-undefined-variable-errors-in-logs/#post-12190316)
 * We will be releasing a new BPS plugin version this Monday – 3 days from now. 
   Actually as it turned out the “Undefined variable: bpspro_version” error was 
   a minor screw up. That variable is for the BPS Pro plugin. The BPS plugin uses
   a different variable name. We forgot to change the variable name in the BPS plugin
   when we copied the code from BPS Pro. 😉 Anyway it only causes a very minor issue
   with the WP version tag not displaying in a BPS js script.
    -  This reply was modified 6 years, 6 months ago by [AITpro](https://wordpress.org/support/users/aitpro/).
    -  This reply was modified 6 years, 6 months ago by [AITpro](https://wordpress.org/support/users/aitpro/).
 *  Plugin Author [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/getting-php-undefined-variable-errors-in-logs/#post-12201199)
 * The php errors were fixed in BPS 3.8, which was released yesterday.

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

The topic ‘Getting php undefined variable errors in logs’ is closed to new replies.

 * ![](https://ps.w.org/bulletproof-security/assets/icon-128x128.png?rev=1731938)
 * [BulletProof Security](https://wordpress.org/plugins/bulletproof-security/)
 * [Support Threads](https://wordpress.org/support/plugin/bulletproof-security/)
 * [Active Topics](https://wordpress.org/support/plugin/bulletproof-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bulletproof-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bulletproof-security/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [undefined variable](https://wordpress.org/support/topic-tag/undefined-variable/)

 * 4 replies
 * 2 participants
 * Last reply from: [AITpro](https://wordpress.org/support/users/aitpro/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/getting-php-undefined-variable-errors-in-logs/#post-12201199)
 * Status: resolved