Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

500 error: Class 'ApplicationInsights\WordPress\Settings' not found  #21

Description

@maxleistner

I get the following error after activating the plugin:

Class 'ApplicationInsights\WordPress\Settings' not found on Line 13

 3:    Plugin Name: Application Insights
 4:    Description: Integrates a WordPress site with Microsoft Application Insights.
 5:    Version: 2.3
 6:    Author: ApplicationInsights
 7:    License:  MIT
 8:     */
 9:    
10:    require_once 'vendor/autoload.php';
11:    
12:    // Enables Admin configuration experience
13:    $mySettingsPage = new ApplicationInsights\WordPress\Settings();
14:    
15:    // Enables client-side instrumentation
16:    $clientInstrumentation = new ApplicationInsights\WordPress\Client_Instrumentation();
17:    add_action('wp_head', array($clientInstrumentation, 'addPrefix'));

WordPress 4.9.1
PHP 7.2.10-0ubuntu0.18.04.1
Apache/2.4.29 (Ubuntu)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions