lundi 23 septembre 2019

ReflectionException error appear at Drupal 8 project . When I am going to clear cache , error coming

When I going to clear cache from admin panel , error appear i.e

The website encountered an unexpected error. Please try again later.ReflectionException: Class Drupal\mymodule\Controller\MyClass does not exist in ReflectionMethod->__construct() (line 136 of core/lib/Drupal/Core/Entity/EntityResolverManager.php). Drupal\Core\Entity\EntityResolverManager->setParametersFromReflection(Array, Object) (Line: 221)

But at my local system there is no error.

I did some R & D with it. I found some difference between my local phpinfo and server phpinfo. Found different between. Different found at Reflection property.

For my local there display some version of Reflection , but at server no version found.

Local : enter image description here

Server :

enter image description here

Please provide me any solution.





Aucun commentaire:

Enregistrer un commentaire