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

I cannot activate the plugin #22

Open
0GiS0 opened this issue Nov 1, 2018 · 6 comments
Open

I cannot activate the plugin #22

0GiS0 opened this issue Nov 1, 2018 · 6 comments

Comments

@0GiS0
Copy link

0GiS0 commented Nov 1, 2018

Hi,

I'm trying to using this plugin in my Wordpress but once is installed I cannot activate it. I click on Activate button but nothing happens.... It remains deactivated.

Any thoughts?

@dulfe
Copy link
Contributor

dulfe commented Nov 2, 2018

Hello,

PHP Version?
WordPress Version?
OS?
OS Version?
Plugin Version?

Do you see any errors on the top part of the screen when you try to enable it?... normally WordPress shows a message when there is an error activating a plugin.

If you do not see anything, Can you enable WordPress debugging (Codex)? and see what errors are shown in /wp-content/debug.log after you try to enable the plug in? (If you are in production, please select the correct debugging settings.)

@0GiS0
Copy link
Author

0GiS0 commented Nov 2, 2018

Hello,

PHP Version?
WordPress Version?
OS?
OS Version?
Plugin Version?

Do you see any errors on the top part of the screen when you try to enable it?... normally WordPress shows a message when there is an error activating a plugin.

If you do not see anything, Can you enable WordPress debugging (Codex)? and see what errors are shown in /wp-content/debug.log after you try to enable the plug in? (If you are in production, please select the correct debugging settings.)

Hi @dulfe

PHP Version: 7.2
Wordpress version: 4.9.8
OS: It's a hosting, I know that It's Linux but I don't know what distro is
OS version: It's a hosting, I know that It's Linux but I don't know what version is
Plugin version: the latest, 2.3

I don't see any errors but I activated the debug mode and this is the error in debug.log:

[02-Nov-2018 14:19:04 UTC] PHP Warning: require_once(vendor/autoload.php): failed to open stream: No such file or directory in /home/content/p3pnexwpnas06_data03/13/2462313/html/wp-content/plugins/ApplicationInsights-WordPress/ApplicationInsightsPlugin.php on line 10
[02-Nov-2018 14:19:04 UTC] PHP Fatal error: require_once(): Failed opening required 'vendor/autoload.php' (include_path='.:/opt/remi/php72/root/usr/share/pear:/opt/remi/php72/root/usr/share/php:/usr/share/pear:/usr/share/php') in /home/content/p3pnexwpnas06_data03/13/2462313/html/wp-content/plugins/ApplicationInsights-WordPress/ApplicationInsightsPlugin.php on line 10

Any thoughts?

Thanks!

@dulfe
Copy link
Contributor

dulfe commented Nov 2, 2018

@0GiS0 That seems to be related to #21

Please change:

require_once 'vendor/autoload.php';

to

require_once __DIR__ . '/vendor/autoload.php';

in ApplicationInsightsPlugin.php

And try again.

Hope it helps.

@0GiS0
Copy link
Author

0GiS0 commented Nov 2, 2018

Now I dont't get that error anymore but I cannot Active the plugin ... the behaviour is the same :(

@dulfe
Copy link
Contributor

dulfe commented Nov 2, 2018

No errors and it does not work... I am lost.

I am guessing you have another plugin that is blocking this one... Can you disable all your plugins and try to active just ApplicationInsights, please?.. if that works then there are some conflicts.... if it does not, then I have no idea what could be.

FYI, If this is a production site then you probably do not want to disable all the plugins... You could try this plugin for troubleshooting, documentation can be found here.

Out of ideas!
Sorry.

@0GiS0
Copy link
Author

0GiS0 commented Nov 20, 2018

Hi @dulfe !

Now it works. Instead of installing the plugin uploading the GitHub repo, I've installed from the plugins section in WordPress... and It worked.

Thanks for your help! we can close this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants