Jump to content

500 Internal Server Error - FatalErrorException with Symfony


Recommended Posts

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

  1. in vendor/symfony/symfony/src/Symfony/Component/Debug/DebugClassLoader.php at line 171  
    1.             if ($this->isFinder && !isset($this->loaded[$class])) {
    2.                 $this->loaded[$class] = true;
    3.                 if ($file $this->classLoader[0]->findFile($class)) {
    4.                     require $file;
    5.                 }
    6.             } else {
    7.                 call_user_func($this->classLoader$class);

Logs  

1 error
  1. 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.
  2. 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
  3. DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure".
  4. DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ProfilerListener::onKernelRequest".
  5. DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ValidateRequestListener::onKernelRequest".
  6. DEBUG - Notified event "kernel.request" to listener "Symfony\Bundle\FrameworkBundle\EventListener\SessionListener::onKernelRequest".
  7. DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\FragmentListener::onKernelRequest".
  8. DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest".
  9. DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest".
  10. DEBUG - Notified event "kernel.request" to listener "PrestaShopBundle\EventListener\UserLocaleListener::onKernelRequest".
  11. DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\TranslatorListener::onKernelRequest".
  12. DEBUG - Notified event "kernel.request" to listener "Symfony\Component\Security\Http\Firewall::onKernelRequest".
  13. DEBUG - Notified event "kernel.request" to listener "PrestaShop\PrestaShop\Adapter\Security\Admin::onKernelRequest".
  14. DEBUG - Notified event "kernel.request" to listener "PrestaShop\PrestaShop\Adapter\Security\SslMiddleware::onKernelRequest".
  15. DEBUG - Notified event "kernel.request" to listener "PrestaShopBundle\EventListener\TokenizedUrlsListener::onKernelRequest".
  16. WARNING - realpath(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/www/vhosts/hosting101292.af98b.netcup.net/:/tmp/)
  17. DEBUG - Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController".
  18. DEBUG - Notified event "kernel.controller" to listener "Symfony\Component\HttpKernel\DataCollector\RequestDataCollector::onKernelController".
  19. DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ControllerListener::onKernelController".
  20. DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener::onKernelController".
  21. DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\HttpCacheListener::onKernelController".
  22. DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::onKernelController".
  23. 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

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

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.


 

Bildschirmfoto 2018-02-08 um 12.34.58.png

Bildschirmfoto 2018-02-08 um 12.36.26.png

Bildschirmfoto 2018-02-08 um 12.36.41.png

Bildschirmfoto 2018-02-08 um 12.36.53.png

Bildschirmfoto 2018-02-08 um 12.37.06.png

AttachementProductController.php

  • Like 2
Link to comment
Share on other sites

  • 1 year later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...