Title: Trouble activating plugin
Last modified: August 30, 2016

---

# Trouble activating plugin

 *  Resolved [Noemi-van-de-Moosdijk](https://wordpress.org/support/users/noemi-van-de-moosdijk/)
 * (@noemi-van-de-moosdijk)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/trouble-activating-plugin-1/)
 * Hi,
 * We have a customer on a shared hosting who is trying to install you’re plugin
   and got an open_basedir error (see below).
 * The sites are placed on the same server, have a shared (10) IP, but NOT the same
   IP.
 * We also tried to install the plugin on 2 sites also together on (another) the
   same server, one with a private IP and one with shared IP, but also there we 
   get the same error.
    So it looks like in someday there is a wrong reference that
   causes that the plugin can be installed only on 1 account on a shared hosting
   server. Can you help us out? We tried everything locally we can think of and 
   both customers would like to checkout you’re plugin.
 * Thanks in advance!
 * Error on activating:
    Plugin could not be activated because it triggered a fatal
   error.
 * Warning: require_once(): open_basedir restriction in effect. File(/var/www/vhosts/
   domain-with-plugin-activated.com/httpdocs/wp-content/plugins/pronamic-ideal/vendor/
   composer/autoload_real.php) is not within the allowed path(s): (/var/www/vhosts/
   anotherdomain.com/:/tmp/) in /var/www/vhosts/anotherdomain.com/httpdocs/wp-content/
   plugins/pronamic-ideal/vendor/autoload.php on line 5
 * Warning: require_once(/var/www/vhosts/domain-with-plugin-activated.com/httpdocs/
   wp-content/plugins/pronamic-ideal/vendor/composer/autoload_real.php): failed 
   to open stream: Operation not permitted in /var/www/vhosts/anotherdomain.com/
   httpdocs/wp-content/plugins/pronamic-ideal/vendor/autoload.php on line 5
 * Fatal error: require_once(): Failed opening required ‘/var/www/vhosts/domain-
   with-plugin-activated.com/httpdocs/wp-content/plugins/pronamic-ideal/vendor/composer/
   autoload_real.php’ (include_path=’.:/usr/share/php:/usr/share/pear’) in /var/
   www/vhosts/anotherdomain.com/httpdocs/wp-content/plugins/pronamic-ideal/vendor/
   autoload.php on line 5
 * [https://wordpress.org/plugins/pronamic-ideal/](https://wordpress.org/plugins/pronamic-ideal/)

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

 *  Plugin Author [Reüel](https://wordpress.org/support/users/pronamic_reuel/)
 * (@pronamic_reuel)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/trouble-activating-plugin-1/#post-6765330)
 * The line which triggers the errors is the following, from `/wp-content/plugins/
   pronamic-ideal/vendor/autoload.php`:
 * `require_once __DIR__ . '/composer' . '/autoload_real.php';`
 * `__DIR__` [should expand](http://php.net/manual/en/language.constants.predefined.php)
   to the directory of the current file. Which should be `/var/www/vhosts/anotherdomain.
   com/httpdocs/wp-content/plugins/pronamic-ideal/vendor` if you try to activate
   the plugin on **anotherdomain.com**, but instead it expands to `/var/www/vhosts/
   domain-with-plugin-activated.com/httpdocs/wp-content/plugins/pronamic-ideal/vendor`.
 * From what I can see in the error messages, something on your hosting platform
   causes the `__DIR__` to be set incorrectly. This is not a bug in the Pronamic
   iDEAL plugin and I’d recommend contacting the server administrator for further
   testing, they should be able to discover why `__DIR__` is not set properly.
 *  Thread Starter [Noemi-van-de-Moosdijk](https://wordpress.org/support/users/noemi-van-de-moosdijk/)
 * (@noemi-van-de-moosdijk)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/trouble-activating-plugin-1/#post-6765333)
 * Thanks for looking into it Reüel.
 * Because of your remark we found that a caching setting was giving trouble.
 * Customer can use the plugin now.
 *  Plugin Author [Reüel](https://wordpress.org/support/users/pronamic_reuel/)
 * (@pronamic_reuel)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/trouble-activating-plugin-1/#post-6765334)
 * You’re welcome, glad to hear this issue has been resolved.
 *  [UmbrellaofHopeUganda](https://wordpress.org/support/users/umbrellaofhopeuganda/)
 * (@umbrellaofhopeuganda)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/trouble-activating-plugin-1/#post-6765358)
 * We recently activated Pronamic IDEAL plugin and also received a license key from
   Pronamic.eu.
    I need your advise on what to fill in for the optoins below
 * Default Gateway…………….
    Currency……………….
 * Thousands Seperator……………
    Decimal Seperator………………. Payment Status Pages
 * Error …………………….
    Canceled……………………. Unknown ……………………… Expired …………………. Completed……………………
 *  Plugin Author [Reüel](https://wordpress.org/support/users/pronamic_reuel/)
 * (@pronamic_reuel)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/trouble-activating-plugin-1/#post-6765359)
 * [@umbrellaofhopeuganda](https://wordpress.org/support/users/umbrellaofhopeuganda/)
   please open a new topic for your questions.

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

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

 * ![](https://ps.w.org/pronamic-ideal/assets/icon.svg?rev=3062720)
 * [Pronamic Pay](https://wordpress.org/plugins/pronamic-ideal/)
 * [Support Threads](https://wordpress.org/support/plugin/pronamic-ideal/)
 * [Active Topics](https://wordpress.org/support/plugin/pronamic-ideal/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pronamic-ideal/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pronamic-ideal/reviews/)

## Tags

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

 * 5 replies
 * 3 participants
 * Last reply from: [Reüel](https://wordpress.org/support/users/pronamic_reuel/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/trouble-activating-plugin-1/#post-6765359)
 * Status: resolved