Viewing 1 replies (of 1 total)
  • Plugin Author Presslabs

    (@presslabs)

    On a first note the url should be a simple nginx / apache -> php-fpm without passing through WordPress itself. Gitium will load all it needs as soon as it needs it.
    This is to make the request as fast / light as possible without having to bother about plugins running and obstructing its logic.

    The problem here is that because WordPress is not loaded we can’t use ABSPATH to determine the proper path-ings for files, to circumvent that we use $_SERVER["DOCUMENT_ROOT"] which I suspect in your case is not set thus we can’t load a part of WordPress in short init mode.
    We would not want to use relative imports with respect to the file as people can change the plugin dir through WordPress, thus making it hard to detect if we are loading the proper WordPress files, for shared / multi install architectures.

    Make sure the server variable is set in nginx similar to the fastcgi.conf found here
    https://serverfault.com/q/317641

    As for apache I’m certain there is something similar but I’m lacking experience in that domain.

    You can follow progress here https://github.com/PressLabs/gitium/issues/148
    as we could definitely find some more ways to pick up the proper path, at least doing it from more than one place..

    • This reply was modified 7 years, 7 months ago by Presslabs.
Viewing 1 replies (of 1 total)
  • The topic ‘wp-load.php won’t load on webhook’ is closed to new replies.