Title: require_once error
Last modified: August 20, 2016

---

# require_once error

 *  Resolved [icc97](https://wordpress.org/support/users/icc97/)
 * (@icc97)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/require_once-error/)
 * I’ve just solved a maddening error, so if you get the following error:
 * `require_once(Net/SFTP.php)`
 * Then the likelihood is that your apache settings are preventing the PHP function
   set_include_path from working ([http://www.php.net/manual/en/function.set-include-path.php#92504](http://www.php.net/manual/en/function.set-include-path.php#92504)).
   I’m using Plesk and had the include_path PHP setting set. This prevents set_include_path
   from working, which knackers this plugin and quite a few other bits of software.
 * By unsetting the include_path apache config value this plugin worked again.
 * [http://wordpress.org/extend/plugins/ssh-sftp-updater-support/](http://wordpress.org/extend/plugins/ssh-sftp-updater-support/)

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

 *  Plugin Author [TerraFrost](https://wordpress.org/support/users/terrafrost/)
 * (@terrafrost)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/require_once-error/#post-3492094)
 * Didn’t know that setting the include_path via php.ini could prevent set_include_path()
   from working. Interesting..
 * Anyway nice find!
 *  Thread Starter [icc97](https://wordpress.org/support/users/icc97/)
 * (@icc97)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/require_once-error/#post-3492135)
 * I think its actually in the apache config file (or .htaccess file) rather than
   in the php.ini file. Plesk allows differing PHP settings for each Virtual Host
   on the server – so I suspect that they have some apache config magic somewhere
   buried, but its difficult to figure out where they put it. Perhaps the php.ini
   file might knacker it too, but I haven’t tested that.

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

The topic ‘require_once error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/ssh-sftp-updater-support.svg)
 * [SSH SFTP Updater Support](https://wordpress.org/plugins/ssh-sftp-updater-support/)
 * [Support Threads](https://wordpress.org/support/plugin/ssh-sftp-updater-support/)
 * [Active Topics](https://wordpress.org/support/plugin/ssh-sftp-updater-support/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ssh-sftp-updater-support/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ssh-sftp-updater-support/reviews/)

## Tags

 * [apache](https://wordpress.org/support/topic-tag/apache/)
 * [config](https://wordpress.org/support/topic-tag/config/)
 * [require_once](https://wordpress.org/support/topic-tag/require_once/)

 * 2 replies
 * 2 participants
 * Last reply from: [icc97](https://wordpress.org/support/users/icc97/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/require_once-error/#post-3492135)
 * Status: resolved