• Resolved strarsis

    (@strarsis)


    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 2 years, 11 months ago by strarsis.
    • This topic was modified 2 years, 11 months ago by strarsis.
Viewing 1 replies (of 1 total)
  • Plugin Author braekling

    (@braekling)

    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 2 years, 9 months ago by braekling.
Viewing 1 replies (of 1 total)
  • The topic ‘Failed opening required ‘../../../../wp-load.php’`’ is closed to new replies.