Title: Warning when activating plugin
Last modified: April 11, 2019

---

# Warning when activating plugin

 *  Resolved [pbchambers26](https://wordpress.org/support/users/pbchambers26/)
 * (@pbchambers26)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/warning-when-activating-plugin-3/)
 * When I activate this plugin I get a warning
 * Constants may only evaluate to scalar values in /home/nccofc/public_html/wp-content/
   plugins/force-refresh/filter-force-refresh.php on line 30
 * and I can’t see the plugin in the Tools Menu.
 * Am I doing something wrong?

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

 *  Plugin Author [jordanleven](https://wordpress.org/support/users/jordanleven/)
 * (@jordanleven)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/warning-when-activating-plugin-3/#post-11425288)
 * pbchambers26,
 * It sounds like you’re using a version of PHP prior to 5.6. Can you send along
   the version you’re using?
 *  Plugin Author [jordanleven](https://wordpress.org/support/users/jordanleven/)
 * (@jordanleven)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/warning-when-activating-plugin-3/#post-11450959)
 * pbchambers26,
 * I haven’t heard back from you, so I’m going to close out this request. If you
   want to reopen it, feel free to respond to this thread.
 *  [jesusdlg](https://wordpress.org/support/users/jesusdlg/)
 * (@jesusdlg)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/warning-when-activating-plugin-3/#post-11922425)
 * I’m having this same error. I’m using PHP 7.3
 * Thank you!
 * `PHP Warning: Constants may only evaluate to scalar values in /home/public_html/
   wp-content/plugins/force-refresh/filter-force-refresh.php on line 30`
 *  Plugin Author [jordanleven](https://wordpress.org/support/users/jordanleven/)
 * (@jordanleven)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/warning-when-activating-plugin-3/#post-11922432)
 * [@jesusdlg](https://wordpress.org/support/users/jesusdlg/), this is an error 
   if you’re using a version of PHP prior to 5.6 (scarlet values for constants weren’t
   supported then). Please double check that you’re using PHP that is supported.

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

The topic ‘Warning when activating plugin’ is closed to new replies.

 * ![](https://ps.w.org/force-refresh/assets/icon-256x256.png?rev=2428247)
 * [Force Refresh](https://wordpress.org/plugins/force-refresh/)
 * [Support Threads](https://wordpress.org/support/plugin/force-refresh/)
 * [Active Topics](https://wordpress.org/support/plugin/force-refresh/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/force-refresh/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/force-refresh/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [jordanleven](https://wordpress.org/support/users/jordanleven/)
 * Last activity: [6 years, 9 months ago](https://wordpress.org/support/topic/warning-when-activating-plugin-3/#post-11922432)
 * Status: resolved