Title: Failed opening required &#8216;../../../../wp-load.php&#8217;`
Last modified: December 24, 2021

---

# Failed opening required ‘../../../../wp-load.php’`

 *  Resolved [strarsis](https://wordpress.org/support/users/strarsis/)
 * (@strarsis)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/failed-opening-required-wp-load-php/)
 * The server error log is full with these entries:
 *     ```
       PHP Fatal error:  require(): Failed opening required '../../../../wp-load.php' (include_path='.:/usr/share/php') in /srv/www/example.com/releases/20211224140010/web/app/plugins/wp-piwik/proxy/config.php on line 3" while reading response header from upstream
       ```
   
 * One reason could be that different paths are used for core, plugins, themes, 
   etc. – but this shouldn’t be an issue. This plugin probably has this path hardcoded
   instead of retrieving it using the proper WordPress function:
 *     ```
       $wpRootDir = isset($wpRootDir)?$wpRootDir:'../../../../';
       require ($wpRootDir.'wp-load.php');
       ```
   
    -  This topic was modified 4 years, 5 months ago by [strarsis](https://wordpress.org/support/users/strarsis/).
    -  This topic was modified 4 years, 5 months ago by [strarsis](https://wordpress.org/support/users/strarsis/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [braekling](https://wordpress.org/support/users/braekling/)
 * (@braekling)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/failed-opening-required-wp-load-php/#post-15339344)
 * It is not possible to use a WordPress function here because first `wp-load.php`
   has to be included to use WordPress functionality 😉
 * But with the latest version (1.0.27) you can add a `config.local.php` into the`
   proxy` folder and overwrite the `$wpRootDir`. Hope this helps.
    -  This reply was modified 4 years, 4 months ago by [braekling](https://wordpress.org/support/users/braekling/).

Viewing 1 replies (of 1 total)

The topic ‘Failed opening required ‘../../../../wp-load.php’`’ is closed to new 
replies.

 * ![](https://ps.w.org/wp-piwik/assets/icon-256x256.png?rev=3529668)
 * [Connect Matomo - Analytics Dashboard for WordPress](https://wordpress.org/plugins/wp-piwik/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-piwik/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-piwik/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-piwik/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-piwik/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-piwik/reviews/)

## Tags

 * [fatal](https://wordpress.org/support/topic-tag/fatal/)
 * [open](https://wordpress.org/support/topic-tag/open/)
 * [path](https://wordpress.org/support/topic-tag/path/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [require()](https://wordpress.org/support/topic-tag/require/)
 * [wp-load](https://wordpress.org/support/topic-tag/wp-load/)

 * 1 reply
 * 2 participants
 * Last reply from: [braekling](https://wordpress.org/support/users/braekling/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/failed-opening-required-wp-load-php/#post-15339344)
 * Status: resolved