Hi All,

Using Marco's tip, I've kept echoing $e->getPrevious() until it reached the 
first exception of the chain. This allowed me to get the origin error that 
was
 

object(stdClass)#368 (5) {  ["__CLASS__"]=>  string(25) 
"Doctrine\ORM\ORMException"  ["message"]=>  string(110) "It is not allowed to 
overwrite internal function 'DATE_DIFF' in the DQL parser through user-defined 
functions."  ["code"]=>  int(0)  ["file"]=>  string(81) 
"/var/www/plataforma_gta_web/vendor/doctrine/orm/lib/Doctrine/ORM/ORMException.php"
  ["line"]=>  int(307)}
I just stopped trying to overwrite this DQL function and the problem was 
solved. However, another error occurred.

PHP message: PHP Fatal error:  Uncaught exception 
'Zend\Di\Exception\RuntimeException' with message 'Invalid instantiator of type 
"NULL" for "Zend\I18n\Translator\TranslatorInterface".' in 
/var/www/plataforma_gta_web/vendor/zendframework/zendframework/library/Zend/Di/Di.php:311

I used the same strategy to discover the origin of the exception and I got

object(stdClass)#446 (5) {  ["__CLASS__"]=>  string(56) 
"Zend\ServiceManager\Exception\ServiceNotCreatedException"  ["message"]=>  
string(76) "An exception was raised while creating "MvcTranslator"; no instance 
returned"  ["code"]=>  int(0)  ["file"]=>  string(109) 
"/var/www/plataforma_gta_web/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php"
  ["line"]=>  int(909)}object(stdClass)#446 (5) {  ["__CLASS__"]=>  string(56) 
"Zend\ServiceManager\Exception\ServiceNotCreatedException"  ["message"]=>  
string(139) "An abstract factory could not create an instance of 
zendi18ntranslatortranslatorinterface(alias: 
Zend\I18n\Translator\TranslatorInterface)."  ["code"]=>  int(0)  ["file"]=>  
string(109) 
"/var/www/plataforma_gta_web/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php"
  ["line"]=>  int(1070)}object(stdClass)#446 (5) {  ["__CLASS__"]=>  string(56) 
"Zend\ServiceManager\Exception\ServiceNotCreatedException"  ["message"]=>  
string(103) "An exception was raised while creating 
"Zend\I18n\Translator\TranslatorInterface"; no instance returned"  ["code"]=>  
int(0)  ["file"]=>  string(109) 
"/var/www/plataforma_gta_web/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php"
  ["line"]=>  int(909)}object(stdClass)#446 (5) {  ["__CLASS__"]=>  string(34) 
"Zend\Di\Exception\RuntimeException"  ["message"]=>  string(83) "Invalid 
instantiator of type "NULL" for "Zend\I18n\Translator\TranslatorInterface"."  
["code"]=>  int(0)  ["file"]=>  string(85) 
"/var/www/plataforma_gta_web/vendor/zendframework/zendframework/library/Zend/Di/Di.php"
  ["line"]=>  int(311)}

Does anyone have any tip?

I thank everyone for the patience and willingness to help me.

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to