Title: Missing constant
Last modified: August 31, 2016

---

# Missing constant

 *  Resolved [Troy Chaplin](https://wordpress.org/support/users/areziaal/)
 * (@areziaal)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/missing-constant/)
 * The following line seems to be missing from version 3.1.8
 * `define( 'AKISMET__PLUGIN_URL', plugin_dir_url( __FILE__ ) );`
 * There are several uses of this throughout the plugin and the change is causing
   errors.
 * [https://wordpress.org/plugins/akismet/](https://wordpress.org/plugins/akismet/)

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

 *  Plugin Author [Christopher Finke](https://wordpress.org/support/users/cfinke/)
 * (@cfinke)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/missing-constant/#post-7163168)
 * All instances of `AKISMET__PLUGIN_URL` were removed in 3.1.8; your plugin might
   not have updated completely.
 * I’d try removing it and reinstalling to ensure that all files are from version
   3.1.8. Let me know if that works.
 *  Thread Starter [Troy Chaplin](https://wordpress.org/support/users/areziaal/)
 * (@areziaal)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/missing-constant/#post-7163263)
 * Awesome, that fixed it… Odd, as I did not do the updated through the admin panel,
   I downloaded and replaced it on my local vagrant build and server install.

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

The topic ‘Missing constant’ is closed to new replies.

 * ![](https://ps.w.org/akismet/assets/icon-256x256.png?rev=2818463)
 * [Akismet Anti-spam: Spam Protection](https://wordpress.org/plugins/akismet/)
 * [Support Threads](https://wordpress.org/support/plugin/akismet/)
 * [Active Topics](https://wordpress.org/support/plugin/akismet/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/akismet/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/akismet/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Troy Chaplin](https://wordpress.org/support/users/areziaal/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/missing-constant/#post-7163263)
 * Status: resolved