Title: Plugin activation error with PHP version lower than 5.3.0
Last modified: August 21, 2016

---

# Plugin activation error with PHP version lower than 5.3.0

 *  [西門 正 Code Guy](https://wordpress.org/support/users/simongcc/)
 * (@simongcc)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/plugin-activation-error-with-php-version/)
 * Since one of my client server is running PHP 5.2.9
    When I turn this plugin on,
   error is occured due to __DIR__ is added since 5.3.0
 * So, I suggest you the following way to be the path instead:
    plugin_dir_path(
   __FILE__)
 * because magical constant __FILE__ is added since PHP 4.0.2
    ref: [http://www.php.net/manual/en/language.constants.predefined.php](http://www.php.net/manual/en/language.constants.predefined.php)
 * Many thanks
 * [http://wordpress.org/plugins/scriblio-authority/](http://wordpress.org/plugins/scriblio-authority/)

The topic ‘Plugin activation error with PHP version lower than 5.3.0’ is closed 
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/scriblio-authority.svg)
 * [Scriblio Authority](https://wordpress.org/plugins/scriblio-authority/)
 * [Support Threads](https://wordpress.org/support/plugin/scriblio-authority/)
 * [Active Topics](https://wordpress.org/support/plugin/scriblio-authority/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/scriblio-authority/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/scriblio-authority/reviews/)

## Tags

 * [activation error](https://wordpress.org/support/topic-tag/activation-error/)
 * [path](https://wordpress.org/support/topic-tag/path/)

 * 0 replies
 * 1 participant
 * Last reply from: [西門 正 Code Guy](https://wordpress.org/support/users/simongcc/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/plugin-activation-error-with-php-version/)
 * Status: not resolved