Title: Bug in include_once
Last modified: August 31, 2016

---

# Bug in include_once

 *  [prashantadevkota](https://wordpress.org/support/users/prashantadevkota/)
 * (@prashantadevkota)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/bug-in-include_once/)
 * In hammy.php inside the plugins/hammy directory, the below line fails to include
   the options.php file:
 * include_once( ‘includes/options.php’ );
 * Change that to:
    include_once( “{$hammyPath}/includes/options.php” );
 * You will obviously have to define $hammyPath, which you can by the following:
   
   $hammyPath = dirname( __FILE__ );
 * [https://wordpress.org/plugins/hammy/](https://wordpress.org/plugins/hammy/)

Viewing 1 replies (of 1 total)

 *  [Daniel Ribeiro](https://wordpress.org/support/users/danarrib/)
 * (@danarrib)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/bug-in-include_once/#post-6907190)
 * Hey! Thanks A LOT for the information. I’ve just updated this excelent plugin
   and it broke my WordPress. Thank to you i did fix my site!

Viewing 1 replies (of 1 total)

The topic ‘Bug in include_once’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/hammy_e3e3e3.svg)
 * [Hammy](https://wordpress.org/plugins/hammy/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hammy/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hammy/)
 * [Active Topics](https://wordpress.org/support/plugin/hammy/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hammy/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hammy/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Daniel Ribeiro](https://wordpress.org/support/users/danarrib/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/bug-in-include_once/#post-6907190)
 * Status: not resolved