Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error with APC #9225

Closed
bronco0 opened this issue Nov 17, 2015 · 6 comments
Closed

Fatal error with APC #9225

bronco0 opened this issue Nov 17, 2015 · 6 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@bronco0
Copy link

bronco0 commented Nov 17, 2015

Hi,

When I turn on APC in php I get the following error in Piwik Version 2.15.0 :

PHP Fatal error: Call to undefined method ComposerAutoloaderInit3032eb0f643af862f66412785109e21c::getLoader() in /home/httpd_app/datas/var/www/html/piwik/vendor/autoload.php on line 7

I tried to clear the cache with './console cache: clear' reboot or reinstall APC, anything, I always this error.

Thanks

@tsteur
Copy link
Member

tsteur commented Nov 17, 2015

Did you install Piwik via git?

If so, you possibly have to run something like php composer.phar install --no-dev again see http://piwik.org/faq/how-to-install/faq_18271/

If not, I'd recommend to download the files of the Piwik version you are using from http://builds.piwik.org/ and copy them to your server. The instructions for this are in the manual three step update

@bronco0
Copy link
Author

bronco0 commented Nov 18, 2015

I installed piwik by achive version 2.15.0 from http://builds.piwik.org/.

I tried to reinstall piwik the same way but I still have the same problem when I APC active.

I did a update vendor with php composer.phar install --no-dev, still the same error.

@tsteur
Copy link
Member

tsteur commented Nov 18, 2015

Does it work when APC is disabled? Which version of PHP are you using?

@bronco0
Copy link
Author

bronco0 commented Nov 19, 2015

Yes it work when APN is disabled.

PHP 5.4 from repository remi for RedHat/CentOS.

  • php-5.4.45-2.el6.remi.x86_64
  • php-pecl-apc-3.1.15-0.4.20130912.el6.remi.5.4.x86_64

$ php --version
PHP 5.4.45 (cli) (built: Sep 30 2015 15:56:06)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies

@tsteur
Copy link
Member

tsteur commented Nov 22, 2015

Are there some other applications running on the same server? I reckon it must be some kind of APC misconfiguration. I think it's the first time I'm seeing such a problem. Maybe someone else has an idea?

Can you try to set the APC config setting

apc.stat=1
apc.include_once_override=0

@mattab
Copy link
Member

mattab commented Nov 25, 2015

Not a Piwik bug.

@mattab mattab closed this as completed Nov 25, 2015
@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Nov 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

3 participants