Open maxleistner opened 6 years ago
I found the problem :) We have a vendor folder in our system, because we do as well have several dependencies. As require_once 'vendor/autoload.php';
loads the autoloader file relative to the file which calls the require, it searches in our vendor folder. Therefore you should change the call to a more save function, which looks for the file in the right folder ;)
I have the same issue.
I had the same problem... in my case only appeared when using OpCache... this fixed the issue.
Change
require_once 'vendor/autoload.php';
to
require_once __DIR__ . '/vendor/autoload.php';
in ApplicationInsightsPlugin.php
I have sent a PR request with that fix (and some other code) yesterday.... you are welcome to test it :)
Hope it helps.
I get the following error after activating the plugin:
Class 'ApplicationInsights\WordPress\Settings' not found on Line 13
WordPress 4.9.1 PHP 7.2.10-0ubuntu0.18.04.1 Apache/2.4.29 (Ubuntu)