Auto-Dress Posted February 6, 2018 Share Posted February 6, 2018 Hello! I have following issue: I was on the backend of my Presta Shop till I received a white clean page. Now, I can't login to my Backend. (cache is empty) To see what's going on, I enabled the debug mode. He told me following Message: Compile Error: Symfony\Component\Debug\DebugClassLoader::loadClass(): Failed opening required '/var/www/vhosts/hosting101292.af98b.netcup.net/httpdocs/tumatsch-leder/vendor/composer/../../src/PrestaShopBundle/Controller/Admin/AttachementProductController.php' (include_path='/var/www/vhosts/hosting101292.af98b.netcup.net/httpdocs/tumatsch-leder/tools/htmlpurifier/standalone:/var/www/vhosts/hosting101292.af98b.netcup.net/httpdocs/tumatsch-leder/vendor/pear/pear_exception:/var/www/vhosts/hosting101292.af98b.netcup.net/httpdocs/tumatsch-leder/vendor/pear/console_getopt:/var/www/vhosts/hosting101292.af98b.netcup.net/httpdocs/tumatsch-leder/vendor/pear/pear-core-minimal/src:/var/www/vhosts/hosting101292.af98b.netcup.net/httpdocs/tumatsch-leder/vendor/pear/archive_tar:.:/usr/share/php:/usr/share/pear') 500 Internal Server Error - FatalErrorException Stack Trace in vendor/symfony/symfony/src/Symfony/Component/Debug/DebugClassLoader.php at line 171 if ($this->isFinder && !isset($this->loaded[$class])) { $this->loaded[$class] = true; if ($file = $this->classLoader[0]->findFile($class)) { require $file; } } else { call_user_func($this->classLoader, $class); Logs 1 error INFO - The Sensio\Bundle\DistributionBundle\Controller\ConfiguratorController class extends Symfony\Component\DependencyInjection\ContainerAware that is deprecated since version 2.8, to be removed in 3.0. Use the ContainerAwareTrait instead. CRITICAL - Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalErrorException: "Compile Error: Symfony\Component\Debug\DebugClassLoader::loadClass(): Failed opening required '/var/www/vhosts/hosting101292.af98b.netcup.net/httpdocs/tumatsch-leder/vendor/composer/../../src/PrestaShopBundle/Controller/Admin/AttachementProductController.php' (include_path='/var/www/vhosts/hosting101292.af98b.netcup.net/httpdocs/tumatsch-leder/tools/htmlpurifier/standalone:/var/www/vhosts/hosting101292.af98b.netcup.net/httpdocs/tumatsch-leder/vendor/pear/pear_exception:/var/www/vhosts/hosting101292.af98b.netcup.net/httpdocs/tumatsch-leder/vendor/pear/console_getopt:/var/www/vhosts/hosting101292.af98b.netcup.net/httpdocs/tumatsch-leder/vendor/pear/pear-core-minimal/src:/var/www/vhosts/hosting101292.af98b.netcup.net/httpdocs/tumatsch-leder/vendor/pear/archive_tar:.:/usr/share/php:/usr/share/pear')" at /var/www/vhosts/hosting101292.af98b.netcup.net/httpdocs/tumatsch-leder/vendor/symfony/symfony/src/Symfony/Component/Debug/DebugClassLoader.php line 171 DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure". DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ProfilerListener::onKernelRequest". DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ValidateRequestListener::onKernelRequest". DEBUG - Notified event "kernel.request" to listener "Symfony\Bundle\FrameworkBundle\EventListener\SessionListener::onKernelRequest". DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\FragmentListener::onKernelRequest". DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest". DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest". DEBUG - Notified event "kernel.request" to listener "PrestaShopBundle\EventListener\UserLocaleListener::onKernelRequest". DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\TranslatorListener::onKernelRequest". DEBUG - Notified event "kernel.request" to listener "Symfony\Component\Security\Http\Firewall::onKernelRequest". DEBUG - Notified event "kernel.request" to listener "PrestaShop\PrestaShop\Adapter\Security\Admin::onKernelRequest". DEBUG - Notified event "kernel.request" to listener "PrestaShop\PrestaShop\Adapter\Security\SslMiddleware::onKernelRequest". DEBUG - Notified event "kernel.request" to listener "PrestaShopBundle\EventListener\TokenizedUrlsListener::onKernelRequest". WARNING - realpath(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/www/vhosts/hosting101292.af98b.netcup.net/:/tmp/) DEBUG - Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController". DEBUG - Notified event "kernel.controller" to listener "Symfony\Component\HttpKernel\DataCollector\RequestDataCollector::onKernelController". DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ControllerListener::onKernelController". DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener::onKernelController". DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\HttpCacheListener::onKernelController". DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::onKernelController". DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener::onKernelController". Stack Trace (Plain Text) [1] Symfony\Component\Debug\Exception\FatalErrorException: Compile Error: Symfony\Component\Debug\DebugClassLoader::loadClass(): Failed opening required '/var/www/vhosts/hosting101292.af98b.netcup.net/httpdocs/tumatsch-leder/vendor/composer/../../src/PrestaShopBundle/Controller/Admin/AttachementProductController.php' (include_path='/var/www/vhosts/hosting101292.af98b.netcup.net/httpdocs/tumatsch-leder/tools/htmlpurifier/standalone:/var/www/vhosts/hosting101292.af98b.netcup.net/httpdocs/tumatsch-leder/vendor/pear/pear_exception:/var/www/vhosts/hosting101292.af98b.netcup.net/httpdocs/tumatsch-leder/vendor/pear/console_getopt:/var/www/vhosts/hosting101292.af98b.netcup.net/httpdocs/tumatsch-leder/vendor/pear/pear-core-minimal/src:/var/www/vhosts/hosting101292.af98b.netcup.net/httpdocs/tumatsch-leder/vendor/pear/archive_tar:.:/usr/share/php:/usr/share/pear') at n/a in /var/www/vhosts/hosting101292.af98b.netcup.net/httpdocs/tumatsch-leder/vendor/symfony/symfony/src/Symfony/Component/Debug/DebugClassLoader.php line 171 I'm really confused right now. I'm not a pro and my English is also not the best. Can somebody explain me where is there problem and how I can fix it? Thank you! cheers. -Alex Link to comment Share on other sites More sharing options...
wowsushi Posted February 7, 2018 Share Posted February 7, 2018 Got same problem, debug message screenshots: https://imgur.com/a/YjZc8https://imgur.com/a/G4eU3 https://imgur.com/a/C17et https://imgur.com/a/lMOmK https://imgur.com/a/JrNRx https://imgur.com/a/qVfkQ https://imgur.com/a/sNAvA https://imgur.com/a/yq4iJ https://imgur.com/a/GKPpP Link to comment Share on other sites More sharing options...
Auto-Dress Posted February 8, 2018 Author Share Posted February 8, 2018 I fixed the problem. I don't know why, but the AttachementProductController.php was deleted. Download Prestashop and look after AttachementProductController.php in src/PrestaShopBundle/Controller/Admin/AttachementProductController.php paste the AttachementProductController.php in your folder on your host. (your shop/src/PrestaShopBundle/Controller/Admin/ I hope I could help. Link to comment Share on other sites More sharing options...
wowsushi Posted February 8, 2018 Share Posted February 8, 2018 Couldn't find any AttachementProductController.php I got there: AdminAttachmentsController.php Thats it. Wich version u got? Mine is 1.7.4.2 Link to comment Share on other sites More sharing options...
Auto-Dress Posted February 8, 2018 Author Share Posted February 8, 2018 my version is 1.7.4.2 too You can't find it cause it was deleted I think. here is my solution. you can see on the pictures where you have to go. On the last picture you see there have to be the AttachementProductController.php If not, you have to insert the AttachementProductController.php in the attachment down below. Hope it works. AttachementProductController.php 2 Link to comment Share on other sites More sharing options...
sergisala Posted December 26, 2019 Share Posted December 26, 2019 Hi, I have the same problem as you and I do have the AttachementProductController.php file. Is there any other solution? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now