Support » Plugin: APCu Manager » Plugin could not be activated because it triggered a fatal error.

  • Resolved alainmelsens

    (@alainmelsens)


    Hello,
    I try to install the “APCu Manager” plugin and when I want to activate it, I see the error “Plugin could not be activated because it triggered a fatal error.”.

    The full error list is the following:
    Fatal error: Uncaught Error: Class ‘APCuManager\System\Logger’ not found in C:\Sites\wptest.tst\wp-content\plugins\apcu-manager\apcu-manager.php:70 Stack trace: #0 C:\Sites\wptest.tst\wp-content\plugins\apcu-manager\apcu-manager.php(78): apcm_run() #1 C:\Sites\wptest.tst\wp-admin\includes\plugin.php(2255): include(‘C:\\Sites\\wptest…’) #2 C:\Sites\wptest.tst\wp-admin\plugins.php(177): plugin_sandbox_scrape(‘apcu-manager/ap…’) #3 {main} thrown in C:\Sites\wptest.tst\wp-content\plugins\apcu-manager\apcu-manager.php on line 70

    Sorry, but I will always first try plugins on my Windows 10 localhost platform.
    I can’t give an online web page link.
    But maybe you can see what the raison should be why I can’t activate the plugin.
    Thanks in advance for any help.

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author Pierre Lannoy

    (@pierrelannoy)

    Hello @alainmelsens !
    Sorry to hear you have this issue.
    I think it’s because the upload on your server is not complete. I’ve just tried to download the official 1.2.0 version (on this site) and the file marked as non existent in you error log is present in the released version.
    Could you try to delete it and retry a download/upload?

    alainmelsens

    (@alainmelsens)

    Hello Pierre,
    I have retried to download the same file and it’s completly the same size as yesterday. The donwloaded size is 498Kb.
    And I have retry to activated on a different WordPress website and I have exactly the same error when I want to activate the plugin. Nothing is changed.
    Sorry, but it is the same problem as before.

    Plugin Author Pierre Lannoy

    (@pierrelannoy)

    Hello Alain!
    That’s very strange: I’ve just tried now on fresh WP install and all is OK.
    Could you tell me your WP version and PHP version?
    Have you tried with the standard WP installer (Plugins > Add New then search for “APCu” then click on “install” button, then on “activate” button)? What is the result?

    alainmelsens

    (@alainmelsens)

    Hello,
    I use the latest WP version 5.4.1 with the latest PHP version 7.4.5 on Windows IIS 10 Pro.
    Yes, I use the WP plugin installer as usual. Then I want to Activate it in WP as usual. As all the other plugins. Nothing is working.

    Plugin Author Pierre Lannoy

    (@pierrelannoy)

    Hello,
    As I was testing on PHP 7.3, I’ve just set a site with 7.4.1 (in case I’ve made wrong dev tests) and, once again, all is ok. The only thing I can’t reproduce is Windows 10/IIS… I’m sorry I have not a win box on hand; do you know an online service to test WP on Windows?

    alainmelsens

    (@alainmelsens)

    Hello,
    Maybe there are some PHP commands or instructions in your plugin that not are compatible with Windows. I think specialy to the Windows file system or some write and read rights…
    I will look for you if there exits online on the Internet a free Windows hostings company who support WordPress. I will let you know if I find something useful.

    Plugin Author Pierre Lannoy

    (@pierrelannoy)

    Hello Alain!

    Good news: I’ve succeeded in setting up a Win10/IIS virtual machine and… you’re definitely right, there’s an error. The issue is coming from the way IIS “resolves” files and directories paths.
    It will be fixed in the next release of APCu Manager.

    Thanks for this excellent good catch 🙂

    Pierre

    alainmelsens

    (@alainmelsens)

    Hello Pierre,
    Thanks for your reply.
    After hours looking on the Internet, I didn’t found real good hostings solutions for free to test some WordPress plugins on Windows OS.
    Except with Amazon but it’s the same thing as you did. Using a virtual machine.
    And I have done it with a virtual machine with Windows Server with IIS 10 on it. Indeed, I have again the same errors.
    I’m glad that you did some tests on your own and could simulate the issues. I know that PHP, MySQL and WordPress are really famous on Linux servers etc. But there exists also a lot of Windows users and even also many Windows servers in companies who are doing there own website hosting with PHP and WordPress.
    I’m looking really forward to the next release of APCu Manager.
    Again, thanks for your time and expertise.
    Alain

    Plugin Author Pierre Lannoy

    (@pierrelannoy)

    Hello Alain.
    New version is released. It should fix this issue.
    Don’t hesitate to tell me if you have some other concerns…

    Pierre

    alainmelsens

    (@alainmelsens)

    Hello Pierre,
    Yes, thanks. Your plugin can be activated.
    But after a while, I get other really strange and bad errors as:
    HTTP-error 500.0 – Internal Server Error
    And a white page with many text that explain that there was a wrong call to some PHP procedures that not are not compatible and so PHP has been terminated totally unexpected.
    I have deactivated, delete it and reinstalled the plugin and immediatly I got the same HTTP-eror 500.0 – Internal Server Error.
    I’m really very disappointed. I don’t like such plugins that let crash my websites.
    I don’t think you have done many tests with it.
    I don’t want that you spending any more time with it. I don’t really need plugins like that. It certainly doesn’t add any value and if it crashes all the time, I don’t trust it anymore.
    I wish you good luck with it.

    alainmelsens

    (@alainmelsens)

    I simply want to add the following:
    I think that your plugin works fine only with Linux or such types of web servers.
    But not with Windows hosting systems. That’s my opinion.
    For PHP and also the extensons as APCu etc. is really a big difference, I guess…

    alainmelsens

    (@alainmelsens)

    I hate that! Really I do! 🙁
    Now, all my webites are crashed on my IIS webserver. PHP will not working anymore.
    Thanks to your stupid plugin. 🙁

    Allright, I have search myself what the hell was going on…?
    This is my conclusion after all because, nothing was working anymore. After displaying PHP errors, there were only Memory erors, or HTTP 500 errors.
    All the caches (Opcache, Wincache & APCu caches) were destroyed after using your APCu Manager plugin. And that’s not a joke.
    In fact, I have disabled the 3 PHP extensions Opcache, Wincache & APCu. And finally my WordPress website became alive again.
    Then, I have manually delete the cache files in seperated folders.
    At the end, I have re-enabled the 3 PHP extensions Opcache, Wincache & APCu.
    The only combination Opcache and APCu is not working anymore, but maybe this is not a good idea either? So far, so good.
    Anyway Opcache and APCu does approximately the same thing. I give the priority to Opcache. So APCu rest disabled.
    Now, everything is working as before, but after hours searching for the reason.
    Yes, again, your plugin is NOT working on Windows systems at all. It’s not fully compatible and that’s sad. All caches ware crashed or destroyed!
    It’s clear that with such plugins there are no guarantees at all that they will work properly. On the contrary, they can cause serious damage.
    Fortunately my websites were in development and not websites in a production environment. This would have been a real disaster.
    For me that was a good lesson and warning, not to trust some promises… 🙁

    Hello Pierre and others…
    I would like to apologize sincerely for my last replies here on this forum.
    I was indeed angry and frustrated because apparently bad things had happened to trial versions of WordPress websites under development. At the end everything turned out fine.
    I reacted very impulsive and if I could, then I definitely adjusted or even erase some of my previous replies.
    Nobody is perfect and nobody can know everything. We can learn everyday more and more.
    Once again, my sincere apologies.

Viewing 14 replies - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.