Jump to content

500 error when accessing Positions in backoffice


Santietsit

Recommended Posts

Hi,

I just moved my prestashop 8.1.0 from shared server to VPS, and I am experiencing one 500 error when accesing the position page under the design (want to optimize certain hooks).

There are several errors that are being thrown due to deprecations, but seems to me like one of those is too iterative and therefore causing the 500 error - but I am not able to find and fix it. can someone help me (pasting below some of the code and attaching the full error log).

Will appreciate a lot a bit of help here!

[2023-09-24 20:03:59] php.INFO: User Deprecated: Since api-platform/core 2.7: The service "ApiPlatform\Core\Bridge\Symfony\Routing\IriConverter" is deprecated, use ApiPlatform\Symfony\Routing\IriConverter instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since api-platform/core 2.7: The service \"ApiPlatform\\Core\\Bridge\\Symfony\\Routing\\IriConverter\" is deprecated, use ApiPlatform\\Symfony\\Routing\\IriConverter instead. at /var/www/vhosts/patitasco.com/httpdocs/vendor/symfony/deprecation-contracts/function.php:25)"} []
[2023-09-24 20:03:59] request.INFO: Matched route "admin_modules_positions". {"route":"admin_modules_positions","route_parameters":{"_route":"admin_modules_positions","_controller":"PrestaShopBundle\\Controller\\Admin\\Improve\\Design\\PositionsController::indexAction","_legacy_controller":"AdminModulesPositions","_legacy_link":"AdminModulesPositions"},"request_uri":"https://patitasco.com/yi8wroriurtrjtr5/index.php/improve/design/modules/positions/?_token=QjYs8J7hs_cV1ceA1OJdLJDdQ30hPCd1SPDdbJlO4eA","method":"GET"} []
[2023-09-24 20:03:59] doctrine.DEBUG: SELECT t0.id_lang AS id_lang_1, t0.name AS name_2, t0.active AS active_3, t0.iso_code AS iso_code_4, t0.language_code AS language_code_5, t0.locale AS locale_6, t0.date_format_lite AS date_format_lite_7, t0.date_format_full AS date_format_full_8, t0.is_rtl AS is_rtl_9 FROM pat_lang t0 WHERE t0.id_lang = ? ["2"] []
[2023-09-24 20:03:59] security.DEBUG: Read existing security token from the session. {"key":"_security_main","token_class":"Symfony\\Component\\Security\\Core\\Authentication\\Token\\UsernamePasswordToken"} []
[2023-09-24 20:03:59] security.DEBUG: User was reloaded from a user provider. {"provider":"PrestaShopBundle\\Security\\Admin\\EmployeeProvider","username":"[email protected]"} []
[2023-09-24 20:03:59] php.INFO: User Deprecated: __construct is deprecated since version 8.1 and will be removed in the next major version. {"exception":"[object] (ErrorException(code: 0): User Deprecated: __construct is deprecated since version 8.1 and will be removed in the next major version. at /var/www/vhosts/patitasco.com/httpdocs/src/PrestaShopBundle/Controller/Admin/FrameworkBundleAdminController.php:70)"} []
[2023-09-24 20:03:59] php.INFO: User Deprecated: Not specifying the optional ShopConstraint parameter is deprecated since version 1.7.8.0 {"exception":"[object] (ErrorException(code: 0): User Deprecated: Not specifying the optional ShopConstraint parameter is deprecated since version 1.7.8.0 at /var/www/vhosts/patitasco.com/httpdocs/src/Adapter/Configuration.php:427)"} []
[2023-09-24 20:03:59] php.INFO: User Deprecated: Not specifying the optional ShopConstraint parameter is deprecated since version 1.7.8.0 {"exception":"[object] (ErrorException(code: 0): User Deprecated: Not specifying the optional ShopConstraint parameter is deprecated since version 1.7.8.0 at /var/www/vhosts/patitasco.com/httpdocs/src/Adapter/Configuration.php:427)"} []
[2023-09-24 20:03:59] php.INFO: User Deprecated: Not specifying the optional ShopConstraint parameter is deprecated since version 1.7.8.0 {"exception":"[object] (ErrorException(code: 0): User Deprecated: Not specifying the optional ShopConstraint parameter is deprecated since version 1.7.8.0 at /var/www/vhosts/patitasco.com/httpdocs/src/Adapter/Configuration.php:427)"} []
[2023-09-24 20:03:59] php.INFO: User Deprecated: Not specifying the optional ShopConstraint parameter is deprecated since version 1.7.8.0 {"exception":"[object] (ErrorException(code: 0): User Deprecated: Not specifying the optional ShopConstraint parameter is deprecated since version 1.7.8.0 at /var/www/vhosts/patitasco.com/httpdocs/src/Adapter/Configuration.php:427)"} []
[2023-09-24 20:03:59] php.INFO: User Deprecated: The "PrestaShopBundle\Service\Hook\HookEvent" class extends "Symfony\Component\EventDispatcher\Event" that is deprecated since Symfony 4.3, use "Symfony\Contracts\EventDispatcher\Event" instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: The \"PrestaShopBundle\\Service\\Hook\\HookEvent\" class extends \"Symfony\\Component\\EventDispatcher\\Event\" that is deprecated since Symfony 4.3, use \"Symfony\\Contracts\\EventDispatcher\\Event\" instead. at /var/www/vhosts/patitasco.com/httpdocs/vendor/symfony/symfony/src/Symfony/Component/ErrorHandler/DebugClassLoader.php:392)"} []
[2023-09-24 20:04:00] php.INFO: User Deprecated: __construct is deprecated since version 8.1 and will be removed in the next major version. {"exception":"[object] (ErrorException(code: 0): User Deprecated: __construct is deprecated since version 8.1 and will be removed in the next major version. at /var/www/vhosts/patitasco.com/httpdocs/src/PrestaShopBundle/Controller/Admin/FrameworkBundleAdminController.php:70)"} []
[2023-09-24 20:04:00] php.INFO: User Deprecated: The _raw parameter is deprecated and will be removed in the next major version. {"exception":"[object] (ErrorException(code: 0): User Deprecated: The _raw parameter is deprecated and will be removed in the next major version. at /var/www/vhosts/patitasco.com/httpdocs/classes/controller/Controller.php:352)"} []
[2023-09-24 20:04:00] php.INFO: User Deprecated: The _raw parameter is deprecated and will be removed in the next major version. {"exception":"[object] (ErrorException(code: 0): User Deprecated: The _raw parameter is deprecated and will be removed in the next major version. at /var/www/vhosts/patitasco.com/httpdocs/classes/controller/Controller.php:352)"} []
[2023-09-24 20:04:00] php.INFO: User Deprecated: The _raw parameter is deprecated and will be removed in the next major version. {"exception":"[object] (ErrorException(code: 0): User Deprecated: The _raw parameter is deprecated and will be removed in the next major version. at /var/www/vhosts/patitasco.com/httpdocs/classes/controller/Controller.php:352)"} []
[2023-09-24 20:04:00] php.INFO: User Deprecated: The "prestashop.core.admin.feature_flag.repository" service alias is deprecated. You should stop using it, as it will be removed in the future. {"exception":"[object] (ErrorException(code: 0): User Deprecated: The \"prestashop.core.admin.feature_flag.repository\" service alias is deprecated. You should stop using it, as it will be removed in the future. at /var/www/vhosts/patitasco.com/httpdocs/var/cache/dev/ContainerX7DObv1/appAppKernelDevDebugContainer.php:5250)"} []
[2023-09-24 20:04:00] doctrine.DEBUG: SELECT t0.id_feature_flag AS id_feature_flag_1, t0.name AS name_2, t0.state AS state_3, t0.label_wording AS label_wording_4, t0.label_domain AS label_domain_5, t0.description_wording AS description_wording_6, t0.description_domain AS description_domain_7, t0.stability AS stability_8 FROM pat_feature_flag t0 WHERE t0.name = ? LIMIT 1 ["product_page_v2"] []
[2023-09-24 20:04:00] php.INFO: User Deprecated: Not specifying the optional ShopConstraint parameter is deprecated since version 1.7.8.0 {"exception":"[object] (ErrorException(code: 0): User Deprecated: Not specifying the optional ShopConstraint parameter is deprecated since version 1.7.8.0 at /var/www/vhosts/patitasco.com/httpdocs/src/Adapter/Configuration.php:427)"} []
[2023-09-24 20:04:00] php.INFO: User Deprecated: Not specifying the optional ShopConstraint parameter is deprecated since version 1.7.8.0 {"exception":"[object] (ErrorException(code: 0): User Deprecated: Not specifying the optional ShopConstraint parameter is deprecated since version 1.7.8.0 at /var/www/vhosts/patitasco.com/httpdocs/src/Adapter/Configuration.php:427)"} []
[2023-09-24 20:04:00] php.INFO: User Deprecated: The legacy parameter is deprecated and will be removed in the next major version. {"exception":"[object] (ErrorException(code: 0): User Deprecated: The legacy parameter is deprecated and will be removed in the next major version. at /var/www/vhosts/patitasco.com/httpdocs/src/PrestaShopBundle/Translation/PrestaShopTranslatorTrait.php:55)"} []
[2023-09-24 20:04:00] php.INFO: User Deprecated: The legacy parameter is deprecated and will be removed in the next major version. {"exception":"[object] (ErrorException(code: 0): User Deprecated: The legacy parameter is deprecated and will be removed in the next major version. at /var/www/vhosts/patitasco.com/httpdocs/src/PrestaShopBundle/Translation/c.php:55)"} []
[2023-09-24 20:04:00] php.INFO: User Deprecated: c.php:55)"} []
[2023-09-24 20:04:00] php.INFO: User Deprecated: The legacy parameter is deprecated and will be removed in the next major version. {"exception":"[object] (ErrorException(code: 0): User Deprecated: The legacy parameter is deprecated and will be removed in the next major version. at 

 

dev-2023-09-24.log

Link to comment
Share on other sites

  • 3 weeks later...

Hi,

Clear the cache once and try if that helps.

Else , Review the deprecation notices one by one and update your codebase to use the recommended replacements. For example, replace deprecated services or classes with their new equivalents.

Enable debug mode. After enabling debug mode, try accessing the position page again to trigger the 500 error and Check the PHP error log.

Thanks!

 

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