Closed Jared-Pooler closed 4 years ago
Looks like a problem with permissions on your cache directory. Check the permissions and ensure that Mautic is able to create the folder after it is cleared?
Also, please post support requests on the forum at https://forum.mautic.org in the future :)
Hello Team,
Bug Description
I am unable to successfully test email submission to individual through the send example functionality. This only occurred after upgrading to v 2.15.3 from 2.12.2. When attempting to send the example to a recipient, the action is met with 500 a generic error.
I have checked file permissions/ownership, cleared cache and verified that the update was processed correctly. I have toggled recommended settings like disable CORs and disable trackable URLs as some have reported successful sending after doing so. Not sure where to look now.
Info on this system, we are not in a position to upgrade to using the php 7 variants due to custom code needed for the main site. The mautic installation is located within subdirectory instead of a subdomain.
I appreciate any insight that can be provided!
Steps to reproduce
Log errors
[2019-12-06 00:36:30] mautic.WARNING: PHP Warning - require(/home/happy/public_html/mautic/app/cache/prod/doctrine/orm/Proxies/CGMauticLeadBundleEntityLead.php): failed to open stream: No such file or directory - in file /home/happy/public_html/mautic/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php - at line 209 {"className":"Mautic\LeadBundle\Entity\Lead","classMetadata":"[object] (Doctrine\ORM\Mapping\ClassMetadata: Doctrine\ORM\Mapping\ClassMetadataInfo@000000005eef70150000557db9ad7f83)","proxyClassName":"Proxies\CG\Mautic\LeadBundle\Entity\Lead","fileName":"/home/happy/public_html/mautic/app/cache/prod/doctrine/orm/Proxies/CGMauticLeadBundleEntityLead.php"} [] [2019-12-06 00:36:30] mautic.ERROR: PHP Notice: require(): Failed opening required '/home/happy/public_html/mautic/app/cache/prod/doctrine/orm/Proxies/CGMauticLeadBundleEntityLead.php' (include_path='.:/opt/cpanel/ea-php56/root/usr/share/pear') - in file /home/happy/public_html/mautic/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php - at line 209 [] [] [2019-12-06 00:36:30] mautic.ERROR: Symfony\Component\Debug\Exception\FatalErrorException: Notice: require(): Failed opening required '/home/happy/public_html/mautic/app/cache/prod/doctrine/orm/Proxies/CGMauticLeadBundleEntityLead.php' (include_path='.:/opt/cpanel/ea-php56/root/usr/share/pear') - in file /home/happy/public_html/mautic/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php - at line 209 [] [] [2019-12-06 00:36:30] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalErrorException: "Compile Error: require(): Failed opening required '/home/happy/public_html/mautic/app/cache/prod/doctrine/orm/Proxies/CGMauticLeadBundleEntityLead.php' (include_path='.:/opt/cpanel/ea-php56/root/usr/share/pear')" at /home/happy/public_html/mautic/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php line 209 {"exception":"[object] (Symfony\Component\Debug\Exception\FatalErrorException(code: 0): Compile Error: require(): Failed opening required '/home/happy/public_html/mautic/app/cache/prod/doctrine/orm/Proxies/CGMauticLeadBundleEntityLead.php' (include_path='.:/opt/cpanel/ea-php56/root/usr/share/pear') at /home/happy/public_html/mautic/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php:209)"} []
Corresponding Function and Comments for failed opening at Line 209: /**
@return ProxyDefinition */ private function getProxyDefinition($className) { $classMetadata = $this->metadataFactory->getMetadataFor($className); $className = $classMetadata->getName(); // aliases and case sensitivity
}