symfony - Issue with KnpPaginatorBundle\Helper\Processor router argument -
i have problem: cache file , knppaginatorbundle. getting weird error on prod server:
php catchable fatal error: argument 1 passed knp\bundle\paginatorbundle\helper\processor::__construct() must instance of symfony\bundle\frameworkbundle\templating\helper\routerhelper, instance of besimple\i18nroutingbundle\routing\router given, called in /.../app/cache/prod/appprodprojectcontainer.php on line 809 , defined in /.../vendor/knplabs/knp-paginator-bundle/knp/bundle/paginatorbundle/helper/processor.php on line 27
i got when installed new bundle via composer , did 'composer update -o'. before 'composer update' command, had in appprodprojectcontainer.php on line 809:
return $this->services['knp_paginator.helper.processor'] = new \knp\bundle\paginatorbundle\helper\processor($this->get('templating.helper.router'), $this->get('translator.default'));
and worked fine on localhost , on prod server. after 'composer update' have (the same line)
return $this->services['knp_paginator.helper.processor'] = new \knp\bundle\paginatorbundle\helper\processor($this->get('be_simple_i18n_routing.router'), $this->get('translator.default'));
it works fine on localhost (i have never got issue) error on prod server. cleaned cache many times, checked configuration in config.yml, no success. so, put comments on these lines , prod works now
// $apcloader = new apcclassloader('prniszone', $loader); // $loader->unregister(); // $apcloader->register(true);
what can fix issue on prod server?
prod : php 5.4.44, opcache + apcu, sf 2.4.1 (i have 2.4.1 on local,too , works there), same configuration on both servers.
Comments
Post a Comment