gitium icon indicating copy to clipboard operation
gitium copied to clipboard

Webhook not working when WordPress is installed in a subfolder

Open pdobrescu opened this issue 6 years ago • 1 comments

More details about the issues in the WordPress Support forums here:

https://wordpress.org/support/topic/webhook-not-working-on-site-in-subfolder/

In short, Gitium is trying to use the wp-load.php file from the root of the server and not from the folder where WordPress is installed.

pdobrescu avatar Jun 07 '19 11:06 pdobrescu

My last answer on Wordpress support:

My solution would be using a relative path starting from the __DIR__ or __FILE__ (dirname(__FILE__)) constant.

For example: $wordpress_loader = __DIR__ . ‘/../../../wp-load.php’; or $wordpress_loader = dirname(__FILE__) . ‘/../../../wp-load.php’;

Thanks for the quick responses.

gbruynseels avatar Jun 07 '19 13:06 gbruynseels