Jump to content

Compile error on product edit page


Recommended Posts

Hi

I'm new to Prestashop, but have dealt with WooCommerce and OpenCart before. It turns out getting started with Prestashop is disappointingly difficult. I run my Prestashop inside a Docker container with PHP 7.0-apache image. I'm running Prestashop 1.7.3.3 and whenever I navigate to product edit page, I get the following fatal error. I've downgraded from PHP7.2 and 7.1, but still am getting the same message. Please advise, what's my next move here?

 

Compile Error: Symfony\Component\Debug\DebugClassLoader::loadClass(): Failed opening required '/var/www/html/vendor/composer/../symfony/symfony/src/Symfony/Component/Intl/Data/Provider/CurrencyDataProvider.php' (include_path='/var/www/html/tools/htmlpurifier/standalone:/var/www/html/vendor/pear/pear_exception:/var/www/html/vendor/pear/console_getopt:/var/www/html/vendor/pear/pear-core-minimal/src:/var/www/html/vendor/pear/archive_tar:.:/usr/local/lib/php')

500 Internal Server Error - FatalErrorException
image.gif.f56a40d60d50745d8b089c8c12ae28d1.gif

Stack Trace

  1. in vendor/symfony/symfony/src/Symfony/Component/Debug/DebugClassLoader.php at line 169  image.gif.4d3be2319e0e72a877f95bb32b396125.gif
    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  image.gif.9b8ff1804b294baa6b52f9291b5e7e54.gif

1 error
  1. INFO - Matched route "admin_product_form".
  2. DEBUG - Read existing security token from the session.
  3. DEBUG - User was reloaded from a user provider.
  4. DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure".
  5. DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ProfilerListener::onKernelRequest".
  6. DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ValidateRequestListener::onKernelRequest".
  7. DEBUG - Notified event "kernel.request" to listener "Symfony\Bundle\FrameworkBundle\EventListener\SessionListener::onKernelRequest".
  8. DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\FragmentListener::onKernelRequest".
  9. DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest".
  10. DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest".
  11. DEBUG - Notified event "kernel.request" to listener "PrestaShopBundle\EventListener\UserLocaleListener::onKernelRequest".
  12. DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\TranslatorListener::onKernelRequest".
  13. DEBUG - Notified event "kernel.request" to listener "Symfony\Component\Security\Http\Firewall::onKernelRequest".
  14. DEBUG - Notified event "kernel.request" to listener "PrestaShop\PrestaShop\Adapter\Security\Admin::onKernelRequest".
  15. DEBUG - Notified event "kernel.request" to listener "PrestaShop\PrestaShop\Adapter\Security\SslMiddleware::onKernelRequest".
  16. DEBUG - Notified event "kernel.request" to listener "PrestaShopBundle\EventListener\TokenizedUrlsListener::onKernelRequest".
  17. DEBUG - Notified event "kernel.controller" to listener "PrestaShopBundle\EventListener\ActionDispatcherLegacyHooksSubscriber::callActionDispatcherBeforeHook".
  18. DEBUG - Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController".
  19. DEBUG - Notified event "kernel.controller" to listener "Symfony\Component\HttpKernel\DataCollector\RequestDataCollector::onKernelController".
  20. DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ControllerListener::onKernelController".
  21. DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener::onKernelController".
  22. DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\HttpCacheListener::onKernelController".
  23. DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::onKernelController".
  24. DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener::onKernelController".
  25. INFO - The value "false" for the "choices_as_values" option of the "choice" form type (Symfony\Component\Form\Extension\Core\Type\ChoiceType) is deprecated since version 2.8 and will not be supported anymore in 3.0. Set this option to "true" and flip the contents of the "choices" option instead.
  26. INFO - The Symfony\Component\Form\ChoiceList\ArrayKeyChoiceList class is deprecated since version 2.8 and will be removed in 3.0. Use Symfony\Component\Form\ChoiceList\ArrayChoiceList instead.
  27. INFO - The form option "empty_value" of the "choice" form type (Symfony\Component\Form\Extension\Core\Type\ChoiceType) is deprecated since version 2.6 and will be removed in 3.0. Use "placeholder" instead.
  28. DEBUG - SELECT p0_.id_attribute AS id_attribute_0, p0_.color AS color_1, p0_.position AS position_2, p1_.id_attribute_group AS id_attribute_group_3, p1_.position AS position_4, p2_.name AS name_5, p2_.public_name AS public_name_6, p0_.id_attribute AS id_attribute_7, p0_.color AS color_8, p0_.position AS position_9, p3_.name AS name_10 FROM ps_attribute p0_ INNER JOIN ps_attribute_group p1_ ON p0_.id_attribute_group = p1_.id_attribute_group INNER JOIN ps_attribute_shop p5_ ON p0_.id_attribute = p5_.id_attribute INNER JOIN ps_shop p4_ ON p4_.id_shop = p5_.id_shop INNER JOIN ps_attribute_lang p3_ ON p0_.id_attribute = p3_.id_attribute INNER JOIN ps_attribute_group_lang p2_ ON p1_.id_attribute_group = p2_.id_attribute_group WHERE p3_.id_lang = ? AND p2_.id_lang = ? AND p4_.id_shop = ? ORDER BY position_9 ASC, position_4 ASC
  29. CRITICAL - Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalErrorException: "Compile Error: Symfony\Component\Debug\DebugClassLoader::loadClass(): Failed opening required '/var/www/html/vendor/composer/../symfony/symfony/src/Symfony/Component/Intl/Data/Provider/CurrencyDataProvider.php' (include_path='/var/www/html/tools/htmlpurifier/standalone:/var/www/html/vendor/pear/pear_exception:/var/www/html/vendor/pear/console_getopt:/var/www/html/vendor/pear/pear-core-minimal/src:/var/www/html/vendor/pear/archive_tar:.:/usr/local/lib/php')" at /var/www/html/vendor/symfony/symfony/src/Symfony/Component/Debug/DebugClassLoader.php line 169
  30. DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure".
  31. DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ProfilerListener::onKernelRequest".
  32. DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ValidateRequestListener::onKernelRequest".
  33. DEBUG - Notified event "kernel.request" to listener "Symfony\Bundle\FrameworkBundle\EventListener\SessionListener::onKernelRequest".
  34. DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\FragmentListener::onKernelRequest".
  35. DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest".
  36. DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest".
  37. DEBUG - Notified event "kernel.request" to listener "PrestaShopBundle\EventListener\UserLocaleListener::onKernelRequest".
  38. DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\TranslatorListener::onKernelRequest".
  39. DEBUG - Notified event "kernel.request" to listener "Symfony\Component\Security\Http\Firewall::onKernelRequest".
  40. DEBUG - Notified event "kernel.request" to listener "PrestaShop\PrestaShop\Adapter\Security\Admin::onKernelRequest".
  41. DEBUG - Notified event "kernel.request" to listener "PrestaShop\PrestaShop\Adapter\Security\SslMiddleware::onKernelRequest".
  42. DEBUG - Notified event "kernel.request" to listener "PrestaShopBundle\EventListener\TokenizedUrlsListener::onKernelRequest".
  43. DEBUG - SELECT name FROM ps_module WHERE active = 1
  44. DEBUG - Notified event "kernel.controller" to listener "PrestaShopBundle\EventListener\ActionDispatcherLegacyHooksSubscriber::callActionDispatcherBeforeHook".
  45. DEBUG - Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController".
  46. DEBUG - Notified event "kernel.controller" to listener "Symfony\Component\HttpKernel\DataCollector\RequestDataCollector::onKernelController".
  47. DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ControllerListener::onKernelController".
  48. DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener::onKernelController".
  49. DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\HttpCacheListener::onKernelController".
  50. DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::onKernelController".
  51. DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener::onKernelController".

 

[1] Symfony\Component\Debug\Exception\FatalErrorException: Compile Error: Symfony\Component\Debug\DebugClassLoader::loadClass(): Failed opening required '/var/www/html/vendor/composer/../symfony/symfony/src/Symfony/Component/Intl/Data/Provider/CurrencyDataProvider.php' (include_path='/var/www/html/tools/htmlpurifier/standalone:/var/www/html/vendor/pear/pear_exception:/var/www/html/vendor/pear/console_getopt:/var/www/html/vendor/pear/pear-core-minimal/src:/var/www/html/vendor/pear/archive_tar:.:/usr/local/lib/php')
    at n/a
        in /var/www/html/vendor/symfony/symfony/src/Symfony/Component/Debug/DebugClassLoader.php line 169

 

Link to comment
Share on other sites

  • 1 month later...

You might be interested in prestashop docker images : https://github.com/PrestaShop/docker
Maybe by comparing your docker image and these images you will find what is wrong.

The error says the file "/var/www/html/vendor/composer/../symfony/symfony/src/Symfony/Component/Intl/Data/Provider/CurrencyDataProvider.php" cannot be opened. Does it exists ? Does it have the right permissions ?

Link to comment
Share on other sites

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...